Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: ahash - Add crypto_ahash_tested() helper function

Add a little inline helper function
crypto_ahash_tested()
to the internal/hash.h header file to retrieve the tested
status (that is the CRYPTO_ALG_TESTED bit in the cra_flags).

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Suggested-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewed-by: Holger Dengler <dengler@linux.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Harald Freudenberger and committed by
Herbert Xu
d0da164b cbbc6755

+7
+7
include/crypto/internal/hash.h
··· 196 196 tfm->reqsize = reqsize; 197 197 } 198 198 199 + static inline bool crypto_ahash_tested(struct crypto_ahash *tfm) 200 + { 201 + struct crypto_tfm *tfm_base = crypto_ahash_tfm(tfm); 202 + 203 + return tfm_base->__crt_alg->cra_flags & CRYPTO_ALG_TESTED; 204 + } 205 + 199 206 static inline void crypto_ahash_set_reqsize_dma(struct crypto_ahash *ahash, 200 207 unsigned int reqsize) 201 208 {