diff options
Diffstat (limited to 'src/pubkey/pk_keys.cpp')
-rw-r--r-- | src/pubkey/pk_keys.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/pubkey/pk_keys.cpp b/src/pubkey/pk_keys.cpp index c7ca9673e..c19c676ab 100644 --- a/src/pubkey/pk_keys.cpp +++ b/src/pubkey/pk_keys.cpp @@ -25,19 +25,6 @@ OID Public_Key::get_oid() const } } -SecureVector<byte> Private_Key::PKCS8_BER_encode() const - { - const u32bit PKCS8_VERSION = 0; - - return DER_Encoder() - .start_cons(SEQUENCE) - .encode(PKCS8_VERSION) - .encode(this->pkcs8_algorithm_identifier()) - .encode(this->pkcs8_private_key(), OCTET_STRING) - .end_cons() - .get_contents(); - } - /* * Run checks on a loaded public key */ |