Add support for PKCS #5 encrypted PKCS #8 keys with internal crypto

Private keys can now be used in either unencrypted or encrypted
PKCS #8 encoding. Only the pbeWithMD5AndDES-CBC algorithm (PKCS #5)
is currently supported.
This commit is contained in:
Jouni Malinen 2009-10-17 12:06:36 +03:00
parent 506b45ed22
commit 3f4ed97a70
5 changed files with 336 additions and 11 deletions

View file

@ -453,7 +453,8 @@ struct crypto_public_key * crypto_public_key_import(const u8 *key, size_t len)
struct crypto_private_key * crypto_private_key_import(const u8 *key,
size_t len)
size_t len,
const char *passwd)
{
int res;
struct crypto_private_key *pk;