Home
last modified time | relevance | path

Searched refs:crt_flags (Results 1 – 25 of 47) sorted by relevance

12

/Linux-v4.19/drivers/crypto/
Dgeode-aes.c133 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in geode_setkey_cip()
140 op->fallback.cip->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in geode_setkey_cip()
141 op->fallback.cip->base.crt_flags |= (tfm->crt_flags & CRYPTO_TFM_REQ_MASK); in geode_setkey_cip()
145 tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; in geode_setkey_cip()
146 tfm->crt_flags |= (op->fallback.cip->base.crt_flags & CRYPTO_TFM_RES_MASK); in geode_setkey_cip()
166 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in geode_setkey_blk()
173 op->fallback.blk->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in geode_setkey_blk()
174 op->fallback.blk->base.crt_flags |= (tfm->crt_flags & CRYPTO_TFM_REQ_MASK); in geode_setkey_blk()
178 tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; in geode_setkey_blk()
179 tfm->crt_flags |= (op->fallback.blk->base.crt_flags & CRYPTO_TFM_RES_MASK); in geode_setkey_blk()
Dmxs-dcp.c469 tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in mxs_dcp_aes_setkey()
475 tfm->base.crt_flags &= ~CRYPTO_TFM_RES_MASK; in mxs_dcp_aes_setkey()
476 tfm->base.crt_flags |= crypto_skcipher_get_flags(actx->fallback) & in mxs_dcp_aes_setkey()
Dpicoxcell_crypto.c763 tfm->crt_flags |= CRYPTO_TFM_RES_WEAK_KEY; in spacc_des_setkey()
805 cipher->base.crt_flags & in spacc_aes_setkey()
810 tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; in spacc_aes_setkey()
811 tfm->crt_flags |= in spacc_aes_setkey()
/Linux-v4.19/arch/s390/crypto/
Daes_s390.c77 sctx->fallback.cip->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in setkey_fallback_cip()
78 sctx->fallback.cip->base.crt_flags |= (tfm->crt_flags & in setkey_fallback_cip()
83 tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; in setkey_fallback_cip()
84 tfm->crt_flags |= (sctx->fallback.cip->base.crt_flags & in setkey_fallback_cip()
188 crypto_skcipher_set_flags(sctx->fallback.blk, tfm->crt_flags & in setkey_fallback_blk()
193 tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; in setkey_fallback_blk()
194 tfm->crt_flags |= crypto_skcipher_get_flags(sctx->fallback.blk) & in setkey_fallback_blk()
457 crypto_skcipher_set_flags(xts_ctx->fallback, tfm->crt_flags & in xts_fallback_setkey()
462 tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; in xts_fallback_setkey()
463 tfm->crt_flags |= crypto_skcipher_get_flags(xts_ctx->fallback) & in xts_fallback_setkey()
[all …]
Ddes_s390.c41 (tfm->crt_flags & CRYPTO_TFM_REQ_WEAK_KEY)) { in des_setkey()
42 tfm->crt_flags |= CRYPTO_TFM_RES_WEAK_KEY; in des_setkey()
231 (tfm->crt_flags & CRYPTO_TFM_REQ_WEAK_KEY)) { in des3_setkey()
232 tfm->crt_flags |= CRYPTO_TFM_RES_WEAK_KEY; in des3_setkey()
242 tfm->crt_flags |= CRYPTO_TFM_RES_WEAK_KEY; in des3_setkey()
Dpaes_s390.c88 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in ecb_paes_set_key()
184 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in cbc_paes_set_key()
295 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in xts_paes_set_key()
425 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in ctr_paes_set_key()
/Linux-v4.19/crypto/
Dcipher.c52 tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; in setkey()
54 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in setkey()
Dsm4_generic.c160 u32 *flags = &tfm->crt_flags; in crypto_sm4_set_key()
Danubis.c467 u32 *flags = &tfm->crt_flags; in anubis_setkey()
Dcast6_generic.c159 &tfm->crt_flags); in cast6_setkey()
/Linux-v4.19/include/crypto/
Dxts.h16 u32 *flags = &tfm->crt_flags; in xts_check_key()
/Linux-v4.19/include/linux/
Dcrypto.h595 u32 crt_flags; member
702 return tfm->crt_flags; in crypto_tfm_get_flags()
707 tfm->crt_flags |= flags; in crypto_tfm_set_flags()
712 tfm->crt_flags &= ~flags; in crypto_tfm_clear_flags()
/Linux-v4.19/arch/x86/crypto/
Dcamellia_aesni_avx_glue.c158 &tfm->base.crt_flags); in camellia_setkey()
191 u32 *flags = &tfm->base.crt_flags; in xts_camellia_setkey()
Dcamellia_aesni_avx2_glue.c154 &tfm->base.crt_flags); in camellia_setkey()
Dcast6_avx_glue.c195 u32 *flags = &tfm->base.crt_flags; in xts_cast6_setkey()
Dtwofish_avx_glue.c88 u32 *flags = &tfm->base.crt_flags; in xts_twofish_setkey()
/Linux-v4.19/arch/arm64/crypto/
Daes-ce-glue.c157 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in ce_aes_setkey()
Daes-ce-ccm-glue.c60 tfm->base.crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in ccm_setkey()
/Linux-v4.19/arch/powerpc/crypto/
Daes-spe-glue.c102 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in ppc_aes_setkey()
141 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in ppc_xts_setkey()
/Linux-v4.19/drivers/crypto/rockchip/
Drk3288_crypto_ablkcipher.c63 (tfm->crt_flags & CRYPTO_TFM_REQ_WEAK_KEY)) { in rk_tdes_setkey()
64 tfm->crt_flags |= CRYPTO_TFM_RES_WEAK_KEY; in rk_tdes_setkey()
/Linux-v4.19/arch/sparc/crypto/
Ddes_glue.c47 u32 *flags = &tfm->crt_flags; in des_set_key()
205 u32 *flags = &tfm->crt_flags; in des3_ede_set_key()
Dcamellia_glue.c40 u32 *flags = &tfm->crt_flags; in camellia_set_key()
/Linux-v4.19/drivers/crypto/bcm/
Dcipher.c2956 ctx->fallback_cipher->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in aead_authenc_setkey()
2957 ctx->fallback_cipher->base.crt_flags |= in aead_authenc_setkey()
2958 tfm->crt_flags & CRYPTO_TFM_REQ_MASK; in aead_authenc_setkey()
2964 tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; in aead_authenc_setkey()
2965 tfm->crt_flags |= in aead_authenc_setkey()
2966 (ctx->fallback_cipher->base.crt_flags & in aead_authenc_setkey()
3030 ctx->fallback_cipher->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in aead_gcm_ccm_setkey()
3031 ctx->fallback_cipher->base.crt_flags |= in aead_gcm_ccm_setkey()
3032 tfm->crt_flags & CRYPTO_TFM_REQ_MASK; in aead_gcm_ccm_setkey()
3037 tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; in aead_gcm_ccm_setkey()
[all …]
/Linux-v4.19/drivers/crypto/ccp/
Dccp-crypto-des3.c45 u32 *flags = &tfm->base.crt_flags; in ccp_des3_setkey()
/Linux-v4.19/drivers/crypto/marvell/
Dcipher.c289 if (!ret && (tfm->crt_flags & CRYPTO_TFM_REQ_WEAK_KEY)) { in mv_cesa_des_setkey()
290 tfm->crt_flags |= CRYPTO_TFM_RES_WEAK_KEY; in mv_cesa_des_setkey()

12