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

crypto: kpp - add get/set_flags helpers

These helpers will be used for fallbacks to kpp software
implementations.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Tudor-Dan Ambarus and committed by
Herbert Xu
66d3994c b8ae5c73

+10
+10
include/crypto/kpp.h
··· 145 145 return __crypto_kpp_tfm(req->base.tfm); 146 146 } 147 147 148 + static inline u32 crypto_kpp_get_flags(struct crypto_kpp *tfm) 149 + { 150 + return crypto_tfm_get_flags(crypto_kpp_tfm(tfm)); 151 + } 152 + 153 + static inline void crypto_kpp_set_flags(struct crypto_kpp *tfm, u32 flags) 154 + { 155 + crypto_tfm_set_flags(crypto_kpp_tfm(tfm), flags); 156 + } 157 + 148 158 /** 149 159 * crypto_free_kpp() - free KPP tfm handle 150 160 *