Lines Matching refs:sw_cipher

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