Lines Matching defs:sw_cipher
162 struct crypto_skcipher *sw_cipher;
172 struct crypto_aead *sw_cipher;
465 crypto_aead_clear_flags(ctx->sw_cipher, CRYPTO_TFM_REQ_MASK);
466 crypto_aead_set_flags(ctx->sw_cipher, crypto_aead_get_flags(tfm) &
468 err = crypto_aead_setkey(ctx->sw_cipher, key, keylen);
500 return crypto_aead_setauthsize(ctx->sw_cipher, authsize);
535 aead_request_set_tfm(subreq, ctx->sw_cipher);
702 ctx->sw_cipher = crypto_alloc_aead(alg->base.cra_name, 0,
704 if (IS_ERR(ctx->sw_cipher))
705 return PTR_ERR(ctx->sw_cipher);
713 crypto_aead_reqsize(ctx->sw_cipher)));
726 crypto_free_aead(ctx->sw_cipher);
789 if (!ctx->sw_cipher)
796 crypto_skcipher_clear_flags(ctx->sw_cipher,
798 crypto_skcipher_set_flags(ctx->sw_cipher,
802 err = crypto_skcipher_setkey(ctx->sw_cipher, key, len);
912 skcipher_request_set_tfm(&dev_req->fallback_req, ctx->sw_cipher);
1011 ctx->sw_cipher = crypto_alloc_skcipher(alg->base.cra_name, 0,
1013 if (IS_ERR(ctx->sw_cipher)) {
1016 return PTR_ERR(ctx->sw_cipher);
1019 crypto_skcipher_reqsize(ctx->sw_cipher));
1036 crypto_free_skcipher(ctx->sw_cipher);