Searched refs:sw_cipher (Results 1 – 6 of 6) sorted by relevance
/Linux-v4.19/drivers/crypto/amcc/ |
D | crypto4xx_alg.c | 264 skcipher_request_set_tfm(subreq, ctx->sw_cipher.cipher); in crypto4xx_ctr_crypt() 286 crypto_skcipher_clear_flags(ctx->sw_cipher.cipher, in crypto4xx_sk_setup_fallback() 288 crypto_skcipher_set_flags(ctx->sw_cipher.cipher, in crypto4xx_sk_setup_fallback() 290 rc = crypto_skcipher_setkey(ctx->sw_cipher.cipher, key, keylen); in crypto4xx_sk_setup_fallback() 293 crypto_skcipher_get_flags(ctx->sw_cipher.cipher) & in crypto4xx_sk_setup_fallback() 356 aead_request_set_tfm(subreq, ctx->sw_cipher.aead); in crypto4xx_aead_fallback() 373 crypto_aead_clear_flags(ctx->sw_cipher.aead, CRYPTO_TFM_REQ_MASK); in crypto4xx_aead_setup_fallback() 374 crypto_aead_set_flags(ctx->sw_cipher.aead, in crypto4xx_aead_setup_fallback() 376 rc = crypto_aead_setkey(ctx->sw_cipher.aead, key, keylen); in crypto4xx_aead_setup_fallback() 379 crypto_aead_get_flags(ctx->sw_cipher.aead) & in crypto4xx_aead_setup_fallback() [all …]
|
D | crypto4xx_core.c | 954 ctx->sw_cipher.cipher = in crypto4xx_sk_init() 958 if (IS_ERR(ctx->sw_cipher.cipher)) in crypto4xx_sk_init() 959 return PTR_ERR(ctx->sw_cipher.cipher); in crypto4xx_sk_init() 963 crypto_skcipher_reqsize(ctx->sw_cipher.cipher)); in crypto4xx_sk_init() 981 if (ctx->sw_cipher.cipher) in crypto4xx_sk_exit() 982 crypto_free_skcipher(ctx->sw_cipher.cipher); in crypto4xx_sk_exit() 991 ctx->sw_cipher.aead = crypto_alloc_aead(alg->base.cra_name, 0, in crypto4xx_aead_init() 994 if (IS_ERR(ctx->sw_cipher.aead)) in crypto4xx_aead_init() 995 return PTR_ERR(ctx->sw_cipher.aead); in crypto4xx_aead_init() 1000 crypto_aead_reqsize(ctx->sw_cipher.aead), in crypto4xx_aead_init() [all …]
|
D | crypto4xx_core.h | 133 } sw_cipher; member
|
/Linux-v4.19/drivers/crypto/ |
D | picoxcell_crypto.c | 174 struct crypto_skcipher *sw_cipher; member 184 struct crypto_aead *sw_cipher; member 477 crypto_aead_clear_flags(ctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in spacc_aead_setkey() 478 crypto_aead_set_flags(ctx->sw_cipher, crypto_aead_get_flags(tfm) & in spacc_aead_setkey() 480 err = crypto_aead_setkey(ctx->sw_cipher, key, keylen); in spacc_aead_setkey() 482 crypto_aead_set_flags(tfm, crypto_aead_get_flags(ctx->sw_cipher) & in spacc_aead_setkey() 516 return crypto_aead_setauthsize(ctx->sw_cipher, authsize); in spacc_aead_setauthsize() 551 aead_request_set_tfm(subreq, ctx->sw_cipher); in spacc_aead_do_fallback() 718 ctx->sw_cipher = crypto_alloc_aead(alg->base.cra_name, 0, in spacc_aead_cra_init() 720 if (IS_ERR(ctx->sw_cipher)) in spacc_aead_cra_init() [all …]
|
/Linux-v4.19/drivers/crypto/chelsio/ |
D | chcr_algo.c | 859 crypto_skcipher_clear_flags(ablkctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_cipher_fallback_setkey() 860 crypto_skcipher_set_flags(ablkctx->sw_cipher, cipher->base.crt_flags & in chcr_cipher_fallback_setkey() 862 err = crypto_skcipher_setkey(ablkctx->sw_cipher, key, keylen); in chcr_cipher_fallback_setkey() 865 crypto_skcipher_get_flags(ablkctx->sw_cipher) & in chcr_cipher_fallback_setkey() 1132 err = chcr_cipher_fallback(ablkctx->sw_cipher, in chcr_handle_cipher_resp() 1243 err = chcr_cipher_fallback(ablkctx->sw_cipher, in process_cipher() 1372 ablkctx->sw_cipher = crypto_alloc_skcipher(alg->cra_name, 0, in chcr_cra_init() 1374 if (IS_ERR(ablkctx->sw_cipher)) { in chcr_cra_init() 1376 return PTR_ERR(ablkctx->sw_cipher); in chcr_cra_init() 1402 ablkctx->sw_cipher = crypto_alloc_skcipher("ctr(aes)", 0, in chcr_rfc3686_init() [all …]
|
D | chcr_crypto.h | 173 struct crypto_skcipher *sw_cipher; member 233 struct crypto_aead *sw_cipher; member
|