KEYS: Allow the public_key struct to hold a private key
authorDavid Howells <dhowells@redhat.com>
Thu, 1 Sep 2016 10:13:13 +0000 (11:13 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 1 Sep 2016 10:13:13 +0000 (11:13 +0100)
commitb19b107b3dc35c9f442392957e39d28172a88e35
treef2d89faff59a5679512719abbd35ce97db0c55ac
parent3aa4e80d20089d324a9609cf579db40835aa7352
KEYS: Allow the public_key struct to hold a private key

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>
crypto/asymmetric_keys/public_key.c
include/crypto/public_key.h
This page took 0.026317 seconds and 5 git commands to generate.