From ca95c2531f7ff68c95cfa205623e157e720615f0 Mon Sep 17 00:00:00 2001 From: Jean-Christophe PLAGNIOL-VILLARD Date: Wed, 18 Mar 2015 10:37:53 +0100 Subject: crypto: digest: speficied when a digest need a key to be used such as for hmac(xxx) you must provide a key This will allow to enforce the correct parameter at digest command sum is not impacted Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Sascha Hauer --- crypto/hmac.c | 1 + 1 file changed, 1 insertion(+) (limited to 'crypto') diff --git a/crypto/hmac.c b/crypto/hmac.c index c2195d972e..4c6a703e5e 100644 --- a/crypto/hmac.c +++ b/crypto/hmac.c @@ -145,6 +145,7 @@ err: } struct digest_algo hmac_algo = { + .flags = DIGEST_ALGO_NEED_KEY, .alloc = digest_hmac_alloc, .init = digest_hmac_init, .update = digest_hmac_update, -- cgit v1.2.3