Skip to content

Commit 66d3994

Browse files
ambarusherbertx
authored andcommitted
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>
1 parent b8ae5c7 commit 66d3994

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎include/crypto/kpp.h‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,16 @@ static inline struct crypto_kpp *crypto_kpp_reqtfm(struct kpp_request *req)
145145
return __crypto_kpp_tfm(req->base.tfm);
146146
}
147147

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+
148158
/**
149159
* crypto_free_kpp() - free KPP tfm handle
150160
*

0 commit comments

Comments
 (0)