1 // Copyright (c) 2012 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 bool ECPrivateKey::IsSupported() {
19 ECPrivateKey
* ECPrivateKey::Create() {
25 ECPrivateKey
* ECPrivateKey::CreateSensitive() {
31 ECPrivateKey
* ECPrivateKey::CreateFromEncryptedPrivateKeyInfo(
32 const std::string
& password
,
33 const std::vector
<uint8
>& encrypted_private_key_info
,
34 const std::vector
<uint8
>& subject_public_key_info
) {
40 ECPrivateKey
* ECPrivateKey::CreateSensitiveFromEncryptedPrivateKeyInfo(
41 const std::string
& password
,
42 const std::vector
<uint8
>& encrypted_private_key_info
,
43 const std::vector
<uint8
>& subject_public_key_info
) {
48 bool ECPrivateKey::ExportEncryptedPrivateKey(
49 const std::string
& password
,
51 std::vector
<uint8
>* output
) {
56 bool ECPrivateKey::ExportPublicKey(std::vector
<uint8
>* output
) {
61 bool ECPrivateKey::ExportValue(std::vector
<uint8
>* output
) {
66 bool ECPrivateKey::ExportECParams(std::vector
<uint8
>* output
) {