Lines Matching refs:sw_cipher
919 crypto_skcipher_clear_flags(ablkctx->sw_cipher, in chcr_cipher_fallback_setkey()
921 crypto_skcipher_set_flags(ablkctx->sw_cipher, in chcr_cipher_fallback_setkey()
923 return crypto_skcipher_setkey(ablkctx->sw_cipher, key, keylen); in chcr_cipher_fallback_setkey()
1201 err = chcr_cipher_fallback(ablkctx->sw_cipher, req, req->iv, in chcr_handle_cipher_resp()
1331 err = chcr_cipher_fallback(ablkctx->sw_cipher, req, in process_cipher()
1472 ablkctx->sw_cipher = crypto_alloc_skcipher(alg->base.cra_name, 0, in chcr_init_tfm()
1474 if (IS_ERR(ablkctx->sw_cipher)) { in chcr_init_tfm()
1476 return PTR_ERR(ablkctx->sw_cipher); in chcr_init_tfm()
1480 crypto_skcipher_reqsize(ablkctx->sw_cipher)); in chcr_init_tfm()
1494 ablkctx->sw_cipher = crypto_alloc_skcipher("ctr(aes)", 0, in chcr_rfc3686_init()
1496 if (IS_ERR(ablkctx->sw_cipher)) { in chcr_rfc3686_init()
1498 return PTR_ERR(ablkctx->sw_cipher); in chcr_rfc3686_init()
1501 crypto_skcipher_reqsize(ablkctx->sw_cipher)); in chcr_rfc3686_init()
1511 crypto_free_skcipher(ablkctx->sw_cipher); in chcr_exit_tfm()
2422 aead_request_set_tfm(subreq, aeadctx->sw_cipher); in chcr_aead_fallback()
3253 aeadctx->sw_cipher = crypto_alloc_aead(alg->base.cra_name, 0, in chcr_aead_cra_init()
3256 if (IS_ERR(aeadctx->sw_cipher)) in chcr_aead_cra_init()
3257 return PTR_ERR(aeadctx->sw_cipher); in chcr_aead_cra_init()
3260 crypto_aead_reqsize(aeadctx->sw_cipher))); in chcr_aead_cra_init()
3268 crypto_free_aead(aeadctx->sw_cipher); in chcr_aead_cra_exit()
3278 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_authenc_null_setauthsize()
3315 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_authenc_setauthsize()
3352 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_gcm_setauthsize()
3376 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_4106_4309_setauthsize()
3416 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_ccm_setauthsize()
3456 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_aead_ccm_setkey()
3457 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(aead) & in chcr_aead_ccm_setkey()
3459 error = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); in chcr_aead_ccm_setkey()
3475 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_aead_rfc4309_setkey()
3476 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(aead) & in chcr_aead_rfc4309_setkey()
3478 error = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); in chcr_aead_rfc4309_setkey()
3496 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_gcm_setkey()
3497 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(aead) in chcr_gcm_setkey()
3499 ret = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); in chcr_gcm_setkey()
3561 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_authenc_setkey()
3562 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(authenc) in chcr_authenc_setkey()
3564 err = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); in chcr_authenc_setkey()
3684 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_aead_digest_null_setkey()
3685 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(authenc) in chcr_aead_digest_null_setkey()
3687 err = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); in chcr_aead_digest_null_setkey()