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:
parent
506b45ed22
commit
3f4ed97a70
5 changed files with 336 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue