certs: Factor out the blacklist hash creation
authorMickaël Salaün <mic@linux.microsoft.com>
Mon, 12 Jul 2021 17:03:12 +0000 (19:03 +0200)
committerJarkko Sakkinen <jarkko@kernel.org>
Wed, 23 Feb 2022 15:49:06 +0000 (16:49 +0100)
commit42150fc845358c59f5d4e6fcd296d241d17b88e4
tree3bfc0a13e30665bd0c2d621f17de4d97f0624660
parente1448ba111be90a5111cba233f6ebf1d10e45a30
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>
certs/blacklist.c
crypto/asymmetric_keys/x509_public_key.c
include/keys/system_keyring.h
security/integrity/platform_certs/keyring_handler.c