Home
last modified time | relevance | path

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

/linux/drivers/crypto/intel/keembay/
H A Dkeembay-ocs-aes-core.c55 } sw_cipher; member
194 crypto_sync_skcipher_clear_flags(tctx->sw_cipher.sk, in kmb_ocs_sk_set_key()
196 crypto_sync_skcipher_set_flags(tctx->sw_cipher.sk, in kmb_ocs_sk_set_key()
200 return crypto_sync_skcipher_setkey(tctx->sw_cipher.sk, in_key, key_len); in kmb_ocs_sk_set_key()
216 crypto_aead_clear_flags(tctx->sw_cipher.aead, CRYPTO_TFM_REQ_MASK); in kmb_ocs_aead_set_key()
217 crypto_aead_set_flags(tctx->sw_cipher.aead, in kmb_ocs_aead_set_key()
220 return crypto_aead_setkey(tctx->sw_cipher.aead, in_key, key_len); in kmb_ocs_aead_set_key()
320 SYNC_SKCIPHER_REQUEST_ON_STACK(subreq, tctx->sw_cipher.sk); in kmb_ocs_sk_common()
322 skcipher_request_set_sync_tfm(subreq, tctx->sw_cipher.sk); in kmb_ocs_sk_common()
648 aead_request_set_tfm(subreq, tctx->sw_cipher.aead); in kmb_ocs_aead_common()
[all …]
/linux/drivers/crypto/amcc/
H A Dcrypto4xx_alg.c252 SYNC_SKCIPHER_REQUEST_ON_STACK(subreq, ctx->sw_cipher.cipher); in crypto4xx_ctr_crypt()
255 skcipher_request_set_sync_tfm(subreq, ctx->sw_cipher.cipher); in crypto4xx_ctr_crypt()
275 crypto_sync_skcipher_clear_flags(ctx->sw_cipher.cipher, in crypto4xx_sk_setup_fallback()
277 crypto_sync_skcipher_set_flags(ctx->sw_cipher.cipher, in crypto4xx_sk_setup_fallback()
279 return crypto_sync_skcipher_setkey(ctx->sw_cipher.cipher, key, keylen); in crypto4xx_sk_setup_fallback()
339 aead_request_set_tfm(subreq, ctx->sw_cipher.aead); in crypto4xx_aead_fallback()
354 crypto_aead_clear_flags(ctx->sw_cipher.aead, CRYPTO_TFM_REQ_MASK); in crypto4xx_aead_setup_fallback()
355 crypto_aead_set_flags(ctx->sw_cipher.aead, in crypto4xx_aead_setup_fallback()
357 return crypto_aead_setkey(ctx->sw_cipher.aead, key, keylen); in crypto4xx_aead_setup_fallback()
472 return crypto_aead_setauthsize(ctx->sw_cipher.aead, authsize); in crypto4xx_setauthsize_aead()
H A Dcrypto4xx_core.c913 ctx->sw_cipher.cipher = in crypto4xx_sk_init()
916 if (IS_ERR(ctx->sw_cipher.cipher)) in crypto4xx_sk_init()
917 return PTR_ERR(ctx->sw_cipher.cipher); in crypto4xx_sk_init()
935 if (ctx->sw_cipher.cipher) in crypto4xx_sk_exit()
936 crypto_free_sync_skcipher(ctx->sw_cipher.cipher); in crypto4xx_sk_exit()
945 ctx->sw_cipher.aead = crypto_alloc_aead(alg->base.cra_name, 0, in crypto4xx_aead_init()
948 if (IS_ERR(ctx->sw_cipher.aead)) in crypto4xx_aead_init()
949 return PTR_ERR(ctx->sw_cipher.aead); in crypto4xx_aead_init()
954 crypto_aead_reqsize(ctx->sw_cipher.aead), in crypto4xx_aead_init()
964 crypto_free_aead(ctx->sw_cipher.aead); in crypto4xx_aead_exit()
H A Dcrypto4xx_core.h126 } sw_cipher; member
/linux/drivers/crypto/chelsio/
H A Dchcr_algo.c890 crypto_skcipher_clear_flags(ablkctx->sw_cipher, in chcr_cipher_fallback_setkey()
892 crypto_skcipher_set_flags(ablkctx->sw_cipher, in chcr_cipher_fallback_setkey()
894 return crypto_skcipher_setkey(ablkctx->sw_cipher, key, keylen); in chcr_cipher_fallback_setkey()
1172 err = chcr_cipher_fallback(ablkctx->sw_cipher, req, req->iv, in chcr_handle_cipher_resp()
1302 err = chcr_cipher_fallback(ablkctx->sw_cipher, req, in process_cipher()
1443 ablkctx->sw_cipher = crypto_alloc_skcipher(alg->base.cra_name, 0, in chcr_init_tfm()
1445 if (IS_ERR(ablkctx->sw_cipher)) { in chcr_init_tfm()
1447 return PTR_ERR(ablkctx->sw_cipher); in chcr_init_tfm()
1451 crypto_skcipher_reqsize(ablkctx->sw_cipher)); in chcr_init_tfm()
1465 ablkctx->sw_cipher = crypto_alloc_skcipher("ctr(aes)", 0, in chcr_rfc3686_init()
[all …]
H A Dchcr_crypto.h174 struct crypto_skcipher *sw_cipher; member
234 struct crypto_aead *sw_cipher; member