]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfa38bdaecbcf587a8fe040310312cafc537804ab
treea1fd9fd869d32125134630d3c3b88c6ae6223f81
parent223d1aab167308088052ef4fcad94ccd19358db7
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