Searched refs:sw_cipher (Results 1 – 6 of 6) sorted by relevance
/Linux-v5.10/drivers/crypto/ |
D | picoxcell_crypto.c | 162 struct crypto_skcipher *sw_cipher; member 172 struct crypto_aead *sw_cipher; member 465 crypto_aead_clear_flags(ctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in spacc_aead_setkey() 466 crypto_aead_set_flags(ctx->sw_cipher, crypto_aead_get_flags(tfm) & in spacc_aead_setkey() 468 err = crypto_aead_setkey(ctx->sw_cipher, key, keylen); in spacc_aead_setkey() 500 return crypto_aead_setauthsize(ctx->sw_cipher, authsize); in spacc_aead_setauthsize() 535 aead_request_set_tfm(subreq, ctx->sw_cipher); in spacc_aead_do_fallback() 702 ctx->sw_cipher = crypto_alloc_aead(alg->base.cra_name, 0, in spacc_aead_cra_init() 704 if (IS_ERR(ctx->sw_cipher)) in spacc_aead_cra_init() 705 return PTR_ERR(ctx->sw_cipher); in spacc_aead_cra_init() [all …]
|
/Linux-v5.10/drivers/crypto/amcc/ |
D | crypto4xx_alg.c | 269 SYNC_SKCIPHER_REQUEST_ON_STACK(subreq, ctx->sw_cipher.cipher); in crypto4xx_ctr_crypt() 272 skcipher_request_set_sync_tfm(subreq, ctx->sw_cipher.cipher); in crypto4xx_ctr_crypt() 292 crypto_sync_skcipher_clear_flags(ctx->sw_cipher.cipher, in crypto4xx_sk_setup_fallback() 294 crypto_sync_skcipher_set_flags(ctx->sw_cipher.cipher, in crypto4xx_sk_setup_fallback() 296 return crypto_sync_skcipher_setkey(ctx->sw_cipher.cipher, key, keylen); in crypto4xx_sk_setup_fallback() 356 aead_request_set_tfm(subreq, ctx->sw_cipher.aead); in crypto4xx_aead_fallback() 371 crypto_aead_clear_flags(ctx->sw_cipher.aead, CRYPTO_TFM_REQ_MASK); in crypto4xx_aead_setup_fallback() 372 crypto_aead_set_flags(ctx->sw_cipher.aead, in crypto4xx_aead_setup_fallback() 374 return crypto_aead_setkey(ctx->sw_cipher.aead, key, keylen); in crypto4xx_aead_setup_fallback() 489 return crypto_aead_setauthsize(ctx->sw_cipher.aead, authsize); in crypto4xx_setauthsize_aead()
|
D | crypto4xx_core.c | 952 ctx->sw_cipher.cipher = in crypto4xx_sk_init() 955 if (IS_ERR(ctx->sw_cipher.cipher)) in crypto4xx_sk_init() 956 return PTR_ERR(ctx->sw_cipher.cipher); in crypto4xx_sk_init() 974 if (ctx->sw_cipher.cipher) in crypto4xx_sk_exit() 975 crypto_free_sync_skcipher(ctx->sw_cipher.cipher); in crypto4xx_sk_exit() 984 ctx->sw_cipher.aead = crypto_alloc_aead(alg->base.cra_name, 0, in crypto4xx_aead_init() 987 if (IS_ERR(ctx->sw_cipher.aead)) in crypto4xx_aead_init() 988 return PTR_ERR(ctx->sw_cipher.aead); in crypto4xx_aead_init() 993 crypto_aead_reqsize(ctx->sw_cipher.aead), in crypto4xx_aead_init() 1003 crypto_free_aead(ctx->sw_cipher.aead); in crypto4xx_aead_exit()
|
D | crypto4xx_core.h | 127 } sw_cipher; member
|
/Linux-v5.10/drivers/crypto/chelsio/ |
D | chcr_algo.c | 923 crypto_skcipher_clear_flags(ablkctx->sw_cipher, in chcr_cipher_fallback_setkey() 925 crypto_skcipher_set_flags(ablkctx->sw_cipher, in chcr_cipher_fallback_setkey() 927 return crypto_skcipher_setkey(ablkctx->sw_cipher, key, keylen); in chcr_cipher_fallback_setkey() 1205 err = chcr_cipher_fallback(ablkctx->sw_cipher, req, req->iv, in chcr_handle_cipher_resp() 1335 err = chcr_cipher_fallback(ablkctx->sw_cipher, req, in process_cipher() 1476 ablkctx->sw_cipher = crypto_alloc_skcipher(alg->base.cra_name, 0, in chcr_init_tfm() 1478 if (IS_ERR(ablkctx->sw_cipher)) { in chcr_init_tfm() 1480 return PTR_ERR(ablkctx->sw_cipher); in chcr_init_tfm() 1484 crypto_skcipher_reqsize(ablkctx->sw_cipher)); in chcr_init_tfm() 1498 ablkctx->sw_cipher = crypto_alloc_skcipher("ctr(aes)", 0, in chcr_rfc3686_init() [all …]
|
D | chcr_crypto.h | 174 struct crypto_skcipher *sw_cipher; member 232 struct crypto_aead *sw_cipher; member
|