xref: /aosp_15_r20/external/cronet/crypto/ec_signature_creator.cc (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1*6777b538SAndroid Build Coastguard Worker // Copyright 2012 The Chromium Authors
2*6777b538SAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be
3*6777b538SAndroid Build Coastguard Worker // found in the LICENSE file.
4*6777b538SAndroid Build Coastguard Worker 
5*6777b538SAndroid Build Coastguard Worker #include "crypto/ec_signature_creator.h"
6*6777b538SAndroid Build Coastguard Worker 
7*6777b538SAndroid Build Coastguard Worker #include "base/check.h"
8*6777b538SAndroid Build Coastguard Worker #include "base/memory/ptr_util.h"
9*6777b538SAndroid Build Coastguard Worker #include "crypto/ec_signature_creator_impl.h"
10*6777b538SAndroid Build Coastguard Worker 
11*6777b538SAndroid Build Coastguard Worker namespace crypto {
12*6777b538SAndroid Build Coastguard Worker 
13*6777b538SAndroid Build Coastguard Worker // static
Create(ECPrivateKey * key)14*6777b538SAndroid Build Coastguard Worker std::unique_ptr<ECSignatureCreator> ECSignatureCreator::Create(
15*6777b538SAndroid Build Coastguard Worker     ECPrivateKey* key) {
16*6777b538SAndroid Build Coastguard Worker   return std::make_unique<ECSignatureCreatorImpl>(key);
17*6777b538SAndroid Build Coastguard Worker }
18*6777b538SAndroid Build Coastguard Worker 
19*6777b538SAndroid Build Coastguard Worker }  // namespace crypto
20