]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit - certs/blacklist.c
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>
Mon, 23 May 2022 15:47:49 +0000 (18:47 +0300)
commit141e523914f72575915dd334fce3cef4fb0f1e91
treea1fd9fd869d32125134630d3c3b88c6ae6223f81
parent58d416351e6df1a41d415958ccdd8eb9c2173fed
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