diff options
author | René Korthaus <[email protected]> | 2016-12-05 10:20:06 +0100 |
---|---|---|
committer | René Korthaus <[email protected]> | 2016-12-05 10:28:42 +0100 |
commit | 9f5b5fc96913e2a17573287e8aa88f0510d52c1b (patch) | |
tree | 2b64a243ea3c5ae73eace781279d0af582148ac6 /src/lib/pubkey/rsa | |
parent | 8690e4e616367c12412fb56bc1826be203a4614b (diff) |
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().
Diffstat (limited to 'src/lib/pubkey/rsa')
-rw-r--r-- | src/lib/pubkey/rsa/rsa.cpp | 2 | ||||
-rw-r--r-- | src/lib/pubkey/rsa/rsa.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/pubkey/rsa/rsa.cpp b/src/lib/pubkey/rsa/rsa.cpp index 039627806..59f3ed142 100644 --- a/src/lib/pubkey/rsa/rsa.cpp +++ b/src/lib/pubkey/rsa/rsa.cpp @@ -72,7 +72,7 @@ bool RSA_PublicKey::check_key(RandomNumberGenerator&, bool) const return true; } -secure_vector<byte> RSA_PrivateKey::pkcs8_private_key() const +secure_vector<byte> RSA_PrivateKey::private_key_bits() const { return DER_Encoder() .start_cons(SEQUENCE) diff --git a/src/lib/pubkey/rsa/rsa.h b/src/lib/pubkey/rsa/rsa.h index 83b43a9ad..0a779b56a 100644 --- a/src/lib/pubkey/rsa/rsa.h +++ b/src/lib/pubkey/rsa/rsa.h @@ -138,7 +138,7 @@ class BOTAN_DLL RSA_PrivateKey : public Private_Key, public RSA_PublicKey const BigInt& get_d1() const { return m_d1; } const BigInt& get_d2() const { return m_d2; } - secure_vector<byte> pkcs8_private_key() const override; + secure_vector<byte> private_key_bits() const override; std::unique_ptr<PK_Ops::Decryption> create_decryption_op(RandomNumberGenerator& rng, |