Home
last modified time | relevance | path

Searched refs:sw_cipher (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.4/drivers/crypto/amcc/
Dcrypto4xx_alg.c272 SYNC_SKCIPHER_REQUEST_ON_STACK(subreq, ctx->sw_cipher.cipher); in crypto4xx_ctr_crypt()
275 skcipher_request_set_sync_tfm(subreq, ctx->sw_cipher.cipher); in crypto4xx_ctr_crypt()
297 crypto_sync_skcipher_clear_flags(ctx->sw_cipher.cipher, in crypto4xx_sk_setup_fallback()
299 crypto_sync_skcipher_set_flags(ctx->sw_cipher.cipher, in crypto4xx_sk_setup_fallback()
301 rc = crypto_sync_skcipher_setkey(ctx->sw_cipher.cipher, key, keylen); in crypto4xx_sk_setup_fallback()
304 crypto_sync_skcipher_get_flags(ctx->sw_cipher.cipher) & in crypto4xx_sk_setup_fallback()
367 aead_request_set_tfm(subreq, ctx->sw_cipher.aead); in crypto4xx_aead_fallback()
384 crypto_aead_clear_flags(ctx->sw_cipher.aead, CRYPTO_TFM_REQ_MASK); in crypto4xx_aead_setup_fallback()
385 crypto_aead_set_flags(ctx->sw_cipher.aead, in crypto4xx_aead_setup_fallback()
387 rc = crypto_aead_setkey(ctx->sw_cipher.aead, key, keylen); in crypto4xx_aead_setup_fallback()
[all …]
Dcrypto4xx_core.c955 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()
977 if (ctx->sw_cipher.cipher) in crypto4xx_sk_exit()
978 crypto_free_sync_skcipher(ctx->sw_cipher.cipher); in crypto4xx_sk_exit()
987 ctx->sw_cipher.aead = crypto_alloc_aead(alg->base.cra_name, 0, in crypto4xx_aead_init()
990 if (IS_ERR(ctx->sw_cipher.aead)) in crypto4xx_aead_init()
991 return PTR_ERR(ctx->sw_cipher.aead); in crypto4xx_aead_init()
996 crypto_aead_reqsize(ctx->sw_cipher.aead), in crypto4xx_aead_init()
1006 crypto_free_aead(ctx->sw_cipher.aead); in crypto4xx_aead_exit()
Dcrypto4xx_core.h126 } sw_cipher; member
/Linux-v5.4/drivers/crypto/
Dpicoxcell_crypto.c161 struct crypto_sync_skcipher *sw_cipher; member
171 struct crypto_aead *sw_cipher; member
464 crypto_aead_clear_flags(ctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in spacc_aead_setkey()
465 crypto_aead_set_flags(ctx->sw_cipher, crypto_aead_get_flags(tfm) & in spacc_aead_setkey()
467 err = crypto_aead_setkey(ctx->sw_cipher, key, keylen); in spacc_aead_setkey()
469 crypto_aead_set_flags(tfm, crypto_aead_get_flags(ctx->sw_cipher) & in spacc_aead_setkey()
503 return crypto_aead_setauthsize(ctx->sw_cipher, authsize); in spacc_aead_setauthsize()
538 aead_request_set_tfm(subreq, ctx->sw_cipher); in spacc_aead_do_fallback()
705 ctx->sw_cipher = crypto_alloc_aead(alg->base.cra_name, 0, in spacc_aead_cra_init()
707 if (IS_ERR(ctx->sw_cipher)) in spacc_aead_cra_init()
[all …]
/Linux-v5.4/drivers/crypto/chelsio/
Dchcr_algo.c877 crypto_sync_skcipher_clear_flags(ablkctx->sw_cipher, in chcr_cipher_fallback_setkey()
879 crypto_sync_skcipher_set_flags(ablkctx->sw_cipher, in chcr_cipher_fallback_setkey()
881 err = crypto_sync_skcipher_setkey(ablkctx->sw_cipher, key, keylen); in chcr_cipher_fallback_setkey()
884 crypto_sync_skcipher_get_flags(ablkctx->sw_cipher) & in chcr_cipher_fallback_setkey()
1152 err = chcr_cipher_fallback(ablkctx->sw_cipher, in chcr_handle_cipher_resp()
1267 err = chcr_cipher_fallback(ablkctx->sw_cipher, in process_cipher()
1407 ablkctx->sw_cipher = crypto_alloc_sync_skcipher(alg->cra_name, 0, in chcr_cra_init()
1409 if (IS_ERR(ablkctx->sw_cipher)) { in chcr_cra_init()
1411 return PTR_ERR(ablkctx->sw_cipher); in chcr_cra_init()
1427 ablkctx->sw_cipher = crypto_alloc_sync_skcipher("ctr(aes)", 0, in chcr_rfc3686_init()
[all …]
Dchcr_crypto.h174 struct crypto_sync_skcipher *sw_cipher; member
230 struct crypto_aead *sw_cipher; member