mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
crypto: hash - Removed vestigial ahash fields
The base field in ahash_tfm appears to have been cut-n-pasted from ablkcipher. It isn't needed here at all. Similarly, the info field in ahash_request also appears to have originated from its cipher counter-part and is vestigial. Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
ca786dc738
commit
166247f46a
4 changed files with 2 additions and 8 deletions
|
|
@ -76,7 +76,6 @@ static int crypto_init_ahash_ops(struct crypto_tfm *tfm, u32 type, u32 mask)
|
|||
crt->final = alg->final;
|
||||
crt->digest = alg->digest;
|
||||
crt->setkey = ahash_setkey;
|
||||
crt->base = __crypto_ahash_cast(tfm);
|
||||
crt->digestsize = alg->digestsize;
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -234,7 +234,6 @@ int crypto_init_digest_ops_async(struct crypto_tfm *tfm)
|
|||
crt->setkey = dalg->dia_setkey ? digest_async_setkey :
|
||||
digest_async_nosetkey;
|
||||
crt->digestsize = dalg->dia_digestsize;
|
||||
crt->base = __crypto_ahash_cast(tfm);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -128,7 +128,6 @@ static int crypto_init_hash_ops_async(struct crypto_tfm *tfm)
|
|||
crt->digest = hash_async_digest;
|
||||
crt->setkey = hash_async_setkey;
|
||||
crt->digestsize = alg->digestsize;
|
||||
crt->base = __crypto_ahash_cast(tfm);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue