PKCS#7: Make the signature a pointer rather than embedding it
Point to the public_key_signature struct from the pkcs7_signed_info struct
rather than embedding it. This makes the code consistent with the X.509
signature handling and makes it possible to have a common cleanup function.
We also save a copy of the digest in the signature without sharing the
memory with the crypto layer metadata.
Signed-off-by:
David Howells <dhowells@redhat.com>
Showing
- crypto/asymmetric_keys/pkcs7_parser.c 23 additions, 15 deletionscrypto/asymmetric_keys/pkcs7_parser.c
- crypto/asymmetric_keys/pkcs7_parser.h 4 additions, 6 deletionscrypto/asymmetric_keys/pkcs7_parser.h
- crypto/asymmetric_keys/pkcs7_trust.c 2 additions, 2 deletionscrypto/asymmetric_keys/pkcs7_trust.c
- crypto/asymmetric_keys/pkcs7_verify.c 26 additions, 25 deletionscrypto/asymmetric_keys/pkcs7_verify.c
Loading
Please register or sign in to comment