HomePhabricator

pki_crypto: Added pki_sign_data() and pki_verify_data_signature()

Authored by Anderson Toshiyuki Sasaki <ansasaki@redhat.com> on Thu, May 2, 1:56 PM.

Description

pki_crypto: Added pki_sign_data() and pki_verify_data_signature()

pki_sign_data() uses the given private key and hash algorithm to sign
the data using the OpenSSL EVP interface. The corresponding function
pki_verify_data_signature() receives the signature, the signed data, and
the public key to verify the signature.

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>

Details

Committed
asnMon, May 13, 4:37 PM
Parents
rLIBSSH33af73655575: pki_crypto: Store ECDSA raw signature in ssh_signature
Branches
Unknown
Tags
Unknown