From 9f5b5fc96913e2a17573287e8aa88f0510d52c1b Mon Sep 17 00:00:00 2001 From: René Korthaus Date: Mon, 5 Dec 2016 10:20:06 +0100 Subject: Add Private_Key::private_key_info() Adds new Private_Key::private_key_info() that returns a PKCS#8 PrivateKeyInfo structure. Renames the current Private_Key::pkcs8_private_key() to private_key_bits(). BER_encode() just invokes private_key_info(). --- src/lib/pubkey/ecc_key/ecc_key.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/pubkey/ecc_key/ecc_key.cpp') diff --git a/src/lib/pubkey/ecc_key/ecc_key.cpp b/src/lib/pubkey/ecc_key/ecc_key.cpp index 95427c487..195da0a63 100644 --- a/src/lib/pubkey/ecc_key/ecc_key.cpp +++ b/src/lib/pubkey/ecc_key/ecc_key.cpp @@ -110,7 +110,7 @@ EC_PrivateKey::EC_PrivateKey(RandomNumberGenerator& rng, "Generated public key point was on the curve"); } -secure_vector EC_PrivateKey::pkcs8_private_key() const +secure_vector EC_PrivateKey::private_key_bits() const { return DER_Encoder() .start_cons(SEQUENCE) -- cgit v1.2.3