aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/pk_keys.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-06-15 01:49:04 +0000
committerlloyd <[email protected]>2010-06-15 01:49:04 +0000
commit7573a3442d39044073a1794d7cc86cac935c4720 (patch)
treedfcadd8fe5004ba1424aafecf403575084189f81 /src/pubkey/pk_keys.cpp
parente9e13fcf62ef8c71576d6bebaa3e8c6b361ec935 (diff)
New BER encoding funcs for PKCS and X.509. Remove Private_Key dep here
Diffstat (limited to 'src/pubkey/pk_keys.cpp')
-rw-r--r--src/pubkey/pk_keys.cpp13
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
*/