X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=crypto%2Fshash.c;h=359754591653c7b265a5e6b89d70e9a9d16d33e3;hb=0e7d2a179dd2945ef0f91db0ac24ba78781fb1cc;hp=ecb1e3d39bf0776a0d8805a9f8fadd3ec288bcb0;hpb=6361c845ceab326a306412349fa6b125700b2cec;p=firefly-linux-kernel-4.4.55.git diff --git a/crypto/shash.c b/crypto/shash.c index ecb1e3d39bf0..359754591653 100644 --- a/crypto/shash.c +++ b/crypto/shash.c @@ -354,9 +354,10 @@ int crypto_init_shash_ops_async(struct crypto_tfm *tfm) crt->final = shash_async_final; crt->finup = shash_async_finup; crt->digest = shash_async_digest; + crt->setkey = shash_async_setkey; + + crt->has_setkey = alg->setkey != shash_no_setkey; - if (alg->setkey) - crt->setkey = shash_async_setkey; if (alg->export) crt->export = shash_async_export; if (alg->import)