Thread (28 messages) 28 messages, 2 authors, 2019-05-28

Re: [PATCH v10 03/12] PKCS#7: Introduce pkcs7_get_digest()

From: Mimi Zohar <zohar@linux.ibm.com>
Date: 2019-05-09 15:42:49
Also in: keyrings, linux-crypto, linux-doc, linux-integrity, linux-security-module, lkml

On Thu, 2019-04-18 at 00:51 -0300, Thiago Jung Bauermann wrote:
IMA will need to access the digest of the PKCS7 message (as calculated by
the kernel) before the signature is verified, so introduce
pkcs7_get_digest() for that purpose.

Also, modify pkcs7_digest() to detect when the digest was already
calculated so that it doesn't have to do redundant work. Verifying that
sinfo->sig->digest isn't NULL is sufficient because both places which
allocate sinfo->sig (pkcs7_parse_message() and pkcs7_note_signed_info())
use kzalloc() so sig->digest is always initialized to zero.

Signed-off-by: Thiago Jung Bauermann <redacted>
Cc: David Howells <dhowells@redhat.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net>
Reviewed-by: Mimi Zohar <zohar@linux.ibm.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help