summaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
authorVitaly Chikunov2019-04-11 17:51:16 +0200
committerHerbert Xu2019-04-18 16:15:02 +0200
commit83bc0299960477a4b99d9ad11b766d63c0dfaf60 (patch)
tree4f444c5f25cdbe1137d2e95508ccefd27233facc /include/crypto
parentcrypto: akcipher - new verify API for public key algorithms (diff)
downloadkernel-qcow2-linux-83bc0299960477a4b99d9ad11b766d63c0dfaf60.tar.gz
kernel-qcow2-linux-83bc0299960477a4b99d9ad11b766d63c0dfaf60.tar.xz
kernel-qcow2-linux-83bc0299960477a4b99d9ad11b766d63c0dfaf60.zip
KEYS: do not kmemdup digest in {public,tpm}_key_verify_signature
Treat (struct public_key_signature)'s digest same as its signature (s). Since digest should be already in the kmalloc'd memory do not kmemdup digest value before calling {public,tpm}_key_verify_signature. Patch is split from the previous as suggested by Herbert Xu. Suggested-by: David Howells <dhowells@redhat.com> Cc: David Howells <dhowells@redhat.com> Cc: keyrings@vger.kernel.org Signed-off-by: Vitaly Chikunov <vt@altlinux.org> Reviewed-by: Denis Kenzior <denkenz@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
0 files changed, 0 insertions, 0 deletions