diff options
author | Vitaly Chikunov | 2019-04-11 18:51:16 +0300 |
---|---|---|
committer | Herbert Xu | 2019-04-18 22:15:02 +0800 |
commit | 83bc0299960477a4b99d9ad11b766d63c0dfaf60 (patch) | |
tree | 4f444c5f25cdbe1137d2e95508ccefd27233facc /crypto/rmd320.c | |
parent | c7381b01287240abe942a081729203e26782d981 (diff) |
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 'crypto/rmd320.c')
0 files changed, 0 insertions, 0 deletions