u-boot/lib/crypto
Sughosh Ganu 4366a2440a crypto: Fix the logic to calculate hash with authattributes set
RFC 2315 Section 9.3 describes the message digesting process. The
digest calculated depends on whether the authenticated attributes are
present. In case of a scenario where the authenticated attributes are
present, the message digest that gets signed and is part of the pkcs7
message is computed from the auth attributes rather than the contents
field.

Check if the auth attributes are present, and if set, use the auth
attributes to compute the hash that would be compared with the
encrypted hash on the pkcs7 message.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
2020-12-31 14:41:31 +01:00
..
asymmetric_type.c common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
Kconfig lib: crypto: import pkcs7_verify.c from linux 2020-07-22 12:35:45 +02:00
Makefile lib: crypto: import pkcs7_verify.c from linux 2020-07-22 12:35:45 +02:00
pkcs7_parser.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pkcs7_verify.c crypto: Fix the logic to calculate hash with authattributes set 2020-12-31 14:41:31 +01:00
pkcs7.asn1 lib: crypto: add pkcs7 message parser 2019-12-06 16:44:20 -05:00
public_key.c lib/crypto: simplify public_key_verify_signature 2020-08-08 19:03:12 +02:00
rsa_helper.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
rsapubkey.asn1 lib: crypto: add rsa public key parser 2019-12-06 16:44:20 -05:00
x509_akid.asn1 lib: crypto: add x509 parser 2019-12-06 16:44:20 -05:00
x509_cert_parser.c lib: crypto: enable x509_check_for_self_signed() 2020-07-22 12:35:04 +02:00
x509_public_key.c lib: crypto: enable x509_check_for_self_signed() 2020-07-22 12:35:04 +02:00
x509.asn1 lib: crypto: add x509 parser 2019-12-06 16:44:20 -05:00