diff options
author | David Howells <dhowells@redhat.com> | 2018-10-09 17:47:46 +0100 |
---|---|---|
committer | James Morris <james.morris@microsoft.com> | 2018-10-26 09:30:46 +0100 |
commit | 16d2436e8d9cc08edca8def00b6b1f01eb57f5b7 (patch) | |
tree | 54a69915f6be97d3c4761da49bff3e6cdb951ed3 /crypto/xts.c | |
parent | 62e395f6b1be80c435b81a51dc11c792f8eb032d (diff) | |
download | linux-crypto-16d2436e8d9cc08edca8def00b6b1f01eb57f5b7.tar.gz linux-crypto-16d2436e8d9cc08edca8def00b6b1f01eb57f5b7.zip |
KEYS: Implement PKCS#8 RSA Private Key parser [ver #2]
Implement PKCS#8 RSA Private Key format [RFC 5208] parser for the
asymmetric key type. For the moment, this will only support unencrypted
DER blobs. PEM and decryption can be added later.
PKCS#8 keys can be loaded like this:
openssl pkcs8 -in private_key.pem -topk8 -nocrypt -outform DER | \
keyctl padd asymmetric foo @s
Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: Marcel Holtmann <marcel@holtmann.org>
Reviewed-by: Marcel Holtmann <marcel@holtmann.org>
Reviewed-by: Denis Kenzior <denkenz@gmail.com>
Tested-by: Denis Kenzior <denkenz@gmail.com>
Signed-off-by: James Morris <james.morris@microsoft.com>
Diffstat (limited to 'crypto/xts.c')
0 files changed, 0 insertions, 0 deletions