Lines Matching refs:sw_cipher
926 crypto_skcipher_clear_flags(ablkctx->sw_cipher, in chcr_cipher_fallback_setkey()
928 crypto_skcipher_set_flags(ablkctx->sw_cipher, in chcr_cipher_fallback_setkey()
930 return crypto_skcipher_setkey(ablkctx->sw_cipher, key, keylen); in chcr_cipher_fallback_setkey()
1208 err = chcr_cipher_fallback(ablkctx->sw_cipher, req, req->iv, in chcr_handle_cipher_resp()
1338 err = chcr_cipher_fallback(ablkctx->sw_cipher, req, in process_cipher()
1479 ablkctx->sw_cipher = crypto_alloc_skcipher(alg->base.cra_name, 0, in chcr_init_tfm()
1481 if (IS_ERR(ablkctx->sw_cipher)) { in chcr_init_tfm()
1483 return PTR_ERR(ablkctx->sw_cipher); in chcr_init_tfm()
1487 crypto_skcipher_reqsize(ablkctx->sw_cipher)); in chcr_init_tfm()
1501 ablkctx->sw_cipher = crypto_alloc_skcipher("ctr(aes)", 0, in chcr_rfc3686_init()
1503 if (IS_ERR(ablkctx->sw_cipher)) { in chcr_rfc3686_init()
1505 return PTR_ERR(ablkctx->sw_cipher); in chcr_rfc3686_init()
1508 crypto_skcipher_reqsize(ablkctx->sw_cipher)); in chcr_rfc3686_init()
1518 crypto_free_skcipher(ablkctx->sw_cipher); in chcr_exit_tfm()
2428 aead_request_set_tfm(subreq, aeadctx->sw_cipher); in chcr_aead_fallback()
3259 aeadctx->sw_cipher = crypto_alloc_aead(alg->base.cra_name, 0, in chcr_aead_cra_init()
3262 if (IS_ERR(aeadctx->sw_cipher)) in chcr_aead_cra_init()
3263 return PTR_ERR(aeadctx->sw_cipher); in chcr_aead_cra_init()
3266 crypto_aead_reqsize(aeadctx->sw_cipher))); in chcr_aead_cra_init()
3274 crypto_free_aead(aeadctx->sw_cipher); in chcr_aead_cra_exit()
3284 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_authenc_null_setauthsize()
3321 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_authenc_setauthsize()
3358 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_gcm_setauthsize()
3382 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_4106_4309_setauthsize()
3422 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_ccm_setauthsize()
3462 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_aead_ccm_setkey()
3463 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(aead) & in chcr_aead_ccm_setkey()
3465 error = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); in chcr_aead_ccm_setkey()
3481 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_aead_rfc4309_setkey()
3482 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(aead) & in chcr_aead_rfc4309_setkey()
3484 error = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); in chcr_aead_rfc4309_setkey()
3502 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_gcm_setkey()
3503 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(aead) in chcr_gcm_setkey()
3505 ret = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); in chcr_gcm_setkey()
3567 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_authenc_setkey()
3568 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(authenc) in chcr_authenc_setkey()
3570 err = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); in chcr_authenc_setkey()
3690 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_aead_digest_null_setkey()
3691 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(authenc) in chcr_aead_digest_null_setkey()
3693 err = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); in chcr_aead_digest_null_setkey()