Home
last modified time | relevance | path

Searched refs:is_decrypt (Results 1 – 5 of 5) sorted by relevance

/optee_os/core/drivers/crypto/stm32/
H A Dcipher.c48 TEE_Result (*init)(union ip_ctx *ctx, bool is_decrypt,
63 static TEE_Result cryp_init(union ip_ctx *ip_ctx, bool is_decrypt, in cryp_init() argument
82 return stm32_cryp_init(&ip_ctx->cryp.ctx, is_decrypt, ip_ctx->cryp.algo, in cryp_init()
106 static TEE_Result saes_init(union ip_ctx *ip_ctx, bool is_decrypt, in saes_init() argument
126 if (is_decrypt) in saes_init()
143 return stm32_saes_init(&ip_ctx->saes.ctx, is_decrypt, ip_ctx->saes.algo, in saes_init()
H A Dstm32_cryp.h64 TEE_Result stm32_cryp_init(struct stm32_cryp_context *ctx, bool is_decrypt,
H A Dstm32_saes.h46 TEE_Result stm32_saes_init(struct stm32_saes_context *ctx, bool is_decrypt,
H A Dstm32_cryp.c201 static bool is_decrypt(uint32_t cr) in is_decrypt() function
208 return !is_decrypt(cr); in is_encrypt()
214 (IS_ALGOMODE(cr, AES_CCM) && is_decrypt(cr)); in does_need_npblb()
421 if (is_decrypt(ctx->cr) && (IS_ALGOMODE(ctx->cr, AES_ECB) || in cryp_prepare_key()
H A Dstm32_saes.c161 static bool is_decrypt(uint32_t cr) in is_decrypt() function
170 (IS_CHAINING_MODE(CCM, cr) && is_decrypt(cr)); in does_need_npblb()
370 IS_CHAINING_MODE(CBC, ctx->cr)) && is_decrypt(ctx->cr)) { in saes_prepare_key()