certs: Factor out the blacklist hash creation
Factor out the blacklist hash creation with the get_raw_hash() helper. This also centralize the "tbs" and "bin" prefixes and make them private, which help to manage them consistently. Cc: David Howells <dhowells@redhat.com> Cc: David S. Miller <davem@davemloft.net> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Eric Snowberg <eric.snowberg@oracle.com> Cc: Herbert Xu <herbert@gondor.apana.org.au> Cc: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by:Mickaël Salaün <mic@linux.microsoft.com> Link: https://lore.kernel.org/r/20210712170313.884724-5-mic@digikod.net Signed-off-by:
Jarkko Sakkinen <jarkko@kernel.org>
Showing
- certs/blacklist.c 58 additions, 18 deletionscerts/blacklist.c
- crypto/asymmetric_keys/x509_public_key.c 2 additions, 1 deletioncrypto/asymmetric_keys/x509_public_key.c
- include/keys/system_keyring.h 11 additions, 3 deletionsinclude/keys/system_keyring.h
- security/integrity/platform_certs/keyring_handler.c 2 additions, 24 deletionssecurity/integrity/platform_certs/keyring_handler.c
Please register or sign in to comment