1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "crypto/ec_private_key.h"
7 #include "base/logging.h"
11 ECPrivateKey::~ECPrivateKey() {}
14 ECPrivateKey
* ECPrivateKey::Create() {
20 ECPrivateKey
* ECPrivateKey::CreateSensitive() {
26 ECPrivateKey
* ECPrivateKey::CreateFromEncryptedPrivateKeyInfo(
27 const std::string
& password
,
28 const std::vector
<uint8
>& encrypted_private_key_info
,
29 const std::vector
<uint8
>& subject_public_key_info
) {
35 ECPrivateKey
* ECPrivateKey::CreateSensitiveFromEncryptedPrivateKeyInfo(
36 const std::string
& password
,
37 const std::vector
<uint8
>& encrypted_private_key_info
,
38 const std::vector
<uint8
>& subject_public_key_info
) {
43 bool ECPrivateKey::ExportEncryptedPrivateKey(
44 const std::string
& password
,
46 std::vector
<uint8
>* output
) {
51 bool ECPrivateKey::ExportPublicKey(std::vector
<uint8
>* output
) {
56 bool ECPrivateKey::ExportValue(std::vector
<uint8
>* output
) {
61 bool ECPrivateKey::ExportECParams(std::vector
<uint8
>* output
) {