summaryrefslogtreecommitdiff
path: root/crypto/asymmetric_keys/verify_pefile.c
diff options
context:
space:
mode:
authorRich Felker <dalias@libc.org>2016-03-29 21:53:03 +0000
committerRich Felker <dalias@libc.org>2016-03-29 21:53:03 +0000
commited8b19a674c67e1007990991d4e02c02da07c952 (patch)
tree230d118992bfd9ac76f80822d34c2f4ea9819a44 /crypto/asymmetric_keys/verify_pefile.c
parent5da64d0814134dc3542fb314a66dcdf74e8553bd (diff)
parentf349a25c7c6b753176540d10e6c243047faefa3a (diff)
downloadlinux-crypto-ed8b19a674c67e1007990991d4e02c02da07c952.tar.gz
linux-crypto-ed8b19a674c67e1007990991d4e02c02da07c952.zip
Merge tag 'v4.6-rc1'
Linux 4.6-rc1
Diffstat (limited to 'crypto/asymmetric_keys/verify_pefile.c')
-rw-r--r--crypto/asymmetric_keys/verify_pefile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/asymmetric_keys/verify_pefile.c b/crypto/asymmetric_keys/verify_pefile.c
index 897b734d..7e8c2338 100644
--- a/crypto/asymmetric_keys/verify_pefile.c
+++ b/crypto/asymmetric_keys/verify_pefile.c
@@ -328,12 +328,12 @@ static int pefile_digest_pe(const void *pebuf, unsigned int pelen,
void *digest;
int ret;
- kenter(",%u", ctx->digest_algo);
+ kenter(",%s", ctx->digest_algo);
/* Allocate the hashing algorithm we're going to need and find out how
* big the hash operational data will be.
*/
- tfm = crypto_alloc_shash(hash_algo_name[ctx->digest_algo], 0, 0);
+ tfm = crypto_alloc_shash(ctx->digest_algo, 0, 0);
if (IS_ERR(tfm))
return (PTR_ERR(tfm) == -ENOENT) ? -ENOPKG : PTR_ERR(tfm);