summaryrefslogtreecommitdiff
path: root/crypto/blkcipher.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2018-10-09 17:47:31 +0100
committerJames Morris <james.morris@microsoft.com>2018-10-26 09:30:46 +0100
commit3d15628104a715f5950bf7b4c4fe35d1472d0413 (patch)
tree9ef6dfa3fbab0cbb40911f11b95a5329f3fd00bc /crypto/blkcipher.c
parent88fba5b0283fe9b53c77791a0e33ebb2ca3b9e3f (diff)
downloadlinux-crypto-3d15628104a715f5950bf7b4c4fe35d1472d0413.tar.gz
linux-crypto-3d15628104a715f5950bf7b4c4fe35d1472d0413.zip
KEYS: Allow the public_key struct to hold a private key [ver #2]
Put a flag in the public_key struct to indicate if the structure is holding a private key. The private key must be held ASN.1 encoded in the format specified in RFC 3447 A.1.2. This is the form required by crypto/rsa.c. The software encryption subtype's verification and query functions then need to select the appropriate crypto function to set the key. 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/blkcipher.c')
0 files changed, 0 insertions, 0 deletions