Lines Matching refs:sw_cipher
919 crypto_skcipher_clear_flags(ablkctx->sw_cipher,
921 crypto_skcipher_set_flags(ablkctx->sw_cipher,
923 return crypto_skcipher_setkey(ablkctx->sw_cipher, key, keylen);
1201 err = chcr_cipher_fallback(ablkctx->sw_cipher, req, req->iv,
1331 err = chcr_cipher_fallback(ablkctx->sw_cipher, req,
1472 ablkctx->sw_cipher = crypto_alloc_skcipher(alg->base.cra_name, 0,
1474 if (IS_ERR(ablkctx->sw_cipher)) {
1476 return PTR_ERR(ablkctx->sw_cipher);
1480 crypto_skcipher_reqsize(ablkctx->sw_cipher));
1494 ablkctx->sw_cipher = crypto_alloc_skcipher("ctr(aes)", 0,
1496 if (IS_ERR(ablkctx->sw_cipher)) {
1498 return PTR_ERR(ablkctx->sw_cipher);
1501 crypto_skcipher_reqsize(ablkctx->sw_cipher));
1511 crypto_free_skcipher(ablkctx->sw_cipher);
2423 aead_request_set_tfm(subreq, aeadctx->sw_cipher);
3254 aeadctx->sw_cipher = crypto_alloc_aead(alg->base.cra_name, 0,
3257 if (IS_ERR(aeadctx->sw_cipher))
3258 return PTR_ERR(aeadctx->sw_cipher);
3262 crypto_aead_reqsize(aeadctx->sw_cipher)));
3270 crypto_free_aead(aeadctx->sw_cipher);
3280 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize);
3317 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize);
3354 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize);
3378 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize);
3418 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize);
3458 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK);
3459 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(aead) &
3461 error = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen);
3477 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK);
3478 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(aead) &
3480 error = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen);
3498 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK);
3499 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(aead)
3501 ret = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen);
3563 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK);
3564 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(authenc)
3566 err = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen);
3686 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK);
3687 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(authenc)
3689 err = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen);