Lines Matching refs:sw_cipher
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()
1500 if (IS_ERR(ablkctx->sw_cipher)) { in chcr_rfc3686_init()
1502 return PTR_ERR(ablkctx->sw_cipher); in chcr_rfc3686_init()
1505 crypto_skcipher_reqsize(ablkctx->sw_cipher)); in chcr_rfc3686_init()
1515 crypto_free_skcipher(ablkctx->sw_cipher); in chcr_exit_tfm()
2424 aead_request_set_tfm(subreq, aeadctx->sw_cipher); in chcr_aead_fallback()
3244 aeadctx->sw_cipher = crypto_alloc_aead(alg->base.cra_name, 0, in chcr_aead_cra_init()
3247 if (IS_ERR(aeadctx->sw_cipher)) in chcr_aead_cra_init()
3248 return PTR_ERR(aeadctx->sw_cipher); in chcr_aead_cra_init()
3251 crypto_aead_reqsize(aeadctx->sw_cipher))); in chcr_aead_cra_init()
3259 crypto_free_aead(aeadctx->sw_cipher); in chcr_aead_cra_exit()
3269 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_authenc_null_setauthsize()
3306 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_authenc_setauthsize()
3343 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_gcm_setauthsize()
3367 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_4106_4309_setauthsize()
3407 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_ccm_setauthsize()
3447 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_aead_ccm_setkey()
3448 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(aead) & in chcr_aead_ccm_setkey()
3450 error = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); in chcr_aead_ccm_setkey()
3466 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_aead_rfc4309_setkey()
3467 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(aead) & in chcr_aead_rfc4309_setkey()
3469 error = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); in chcr_aead_rfc4309_setkey()
3487 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_gcm_setkey()
3488 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(aead) in chcr_gcm_setkey()
3490 ret = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); in chcr_gcm_setkey()
3552 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_authenc_setkey()
3553 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(authenc) in chcr_authenc_setkey()
3555 err = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); in chcr_authenc_setkey()
3675 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_aead_digest_null_setkey()
3676 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(authenc) in chcr_aead_digest_null_setkey()
3678 err = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); in chcr_aead_digest_null_setkey()