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