/Linux-v4.19/drivers/crypto/ |
D | geode-aes.c | 133 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()
|
D | mxs-dcp.c | 469 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()
|
D | picoxcell_crypto.c | 763 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/ |
D | aes_s390.c | 77 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 …]
|
D | des_s390.c | 41 (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()
|
D | paes_s390.c | 88 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/ |
D | cipher.c | 52 tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; in setkey() 54 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in setkey()
|
D | sm4_generic.c | 160 u32 *flags = &tfm->crt_flags; in crypto_sm4_set_key()
|
D | anubis.c | 467 u32 *flags = &tfm->crt_flags; in anubis_setkey()
|
D | cast6_generic.c | 159 &tfm->crt_flags); in cast6_setkey()
|
/Linux-v4.19/include/crypto/ |
D | xts.h | 16 u32 *flags = &tfm->crt_flags; in xts_check_key()
|
/Linux-v4.19/include/linux/ |
D | crypto.h | 595 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/ |
D | camellia_aesni_avx_glue.c | 158 &tfm->base.crt_flags); in camellia_setkey() 191 u32 *flags = &tfm->base.crt_flags; in xts_camellia_setkey()
|
D | camellia_aesni_avx2_glue.c | 154 &tfm->base.crt_flags); in camellia_setkey()
|
D | cast6_avx_glue.c | 195 u32 *flags = &tfm->base.crt_flags; in xts_cast6_setkey()
|
D | twofish_avx_glue.c | 88 u32 *flags = &tfm->base.crt_flags; in xts_twofish_setkey()
|
/Linux-v4.19/arch/arm64/crypto/ |
D | aes-ce-glue.c | 157 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in ce_aes_setkey()
|
D | aes-ce-ccm-glue.c | 60 tfm->base.crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in ccm_setkey()
|
/Linux-v4.19/arch/powerpc/crypto/ |
D | aes-spe-glue.c | 102 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/ |
D | rk3288_crypto_ablkcipher.c | 63 (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/ |
D | des_glue.c | 47 u32 *flags = &tfm->crt_flags; in des_set_key() 205 u32 *flags = &tfm->crt_flags; in des3_ede_set_key()
|
D | camellia_glue.c | 40 u32 *flags = &tfm->crt_flags; in camellia_set_key()
|
/Linux-v4.19/drivers/crypto/bcm/ |
D | cipher.c | 2956 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/ |
D | ccp-crypto-des3.c | 45 u32 *flags = &tfm->base.crt_flags; in ccp_des3_setkey()
|
/Linux-v4.19/drivers/crypto/marvell/ |
D | cipher.c | 289 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()
|