mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:24:47 +01:00
pkcs7, x509: Rename ->digest to ->m
Rename ->digest and ->digest_len to ->m and ->m_size to represent the input to the signature verification algorithm, reflecting that ->digest may no longer actually *be* a digest. Signed-off-by: David Howells <dhowells@redhat.com> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> cc: Lukas Wunner <lukas@wunner.de> cc: Ignat Korchagin <ignat@cloudflare.com> cc: Stephan Mueller <smueller@chronox.de> cc: Eric Biggers <ebiggers@kernel.org> cc: Herbert Xu <herbert@gondor.apana.org.au> cc: keyrings@vger.kernel.org cc: linux-crypto@vger.kernel.org
This commit is contained in:
parent
2c62068ac8
commit
f728074f1f
7 changed files with 26 additions and 29 deletions
|
|
@ -121,8 +121,8 @@ int asymmetric_verify(struct key *keyring, const char *sig,
|
|||
goto out;
|
||||
}
|
||||
|
||||
pks.digest = (u8 *)data;
|
||||
pks.digest_size = datalen;
|
||||
pks.m = (u8 *)data;
|
||||
pks.m_size = datalen;
|
||||
pks.s = hdr->sig;
|
||||
pks.s_size = siglen;
|
||||
ret = verify_signature(key, &pks);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue