Lines Matching refs:sw_cipher

174 	struct crypto_skcipher		*sw_cipher;  member
184 struct crypto_aead *sw_cipher; member
477 crypto_aead_clear_flags(ctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in spacc_aead_setkey()
478 crypto_aead_set_flags(ctx->sw_cipher, crypto_aead_get_flags(tfm) & in spacc_aead_setkey()
480 err = crypto_aead_setkey(ctx->sw_cipher, key, keylen); in spacc_aead_setkey()
482 crypto_aead_set_flags(tfm, crypto_aead_get_flags(ctx->sw_cipher) & in spacc_aead_setkey()
516 return crypto_aead_setauthsize(ctx->sw_cipher, authsize); in spacc_aead_setauthsize()
551 aead_request_set_tfm(subreq, ctx->sw_cipher); in spacc_aead_do_fallback()
718 ctx->sw_cipher = crypto_alloc_aead(alg->base.cra_name, 0, in spacc_aead_cra_init()
720 if (IS_ERR(ctx->sw_cipher)) in spacc_aead_cra_init()
721 return PTR_ERR(ctx->sw_cipher); in spacc_aead_cra_init()
729 crypto_aead_reqsize(ctx->sw_cipher))); in spacc_aead_cra_init()
742 crypto_free_aead(ctx->sw_cipher); in spacc_aead_cra_exit()
795 if (!ctx->sw_cipher) in spacc_aes_setkey()
802 crypto_skcipher_clear_flags(ctx->sw_cipher, in spacc_aes_setkey()
804 crypto_skcipher_set_flags(ctx->sw_cipher, in spacc_aes_setkey()
808 err = crypto_skcipher_setkey(ctx->sw_cipher, key, len); in spacc_aes_setkey()
812 crypto_skcipher_get_flags(ctx->sw_cipher) & in spacc_aes_setkey()
917 SKCIPHER_REQUEST_ON_STACK(subreq, ctx->sw_cipher); in spacc_ablk_do_fallback()
925 skcipher_request_set_tfm(subreq, ctx->sw_cipher); in spacc_ablk_do_fallback()
1023 ctx->sw_cipher = crypto_alloc_skcipher( in spacc_ablk_cra_init()
1026 if (IS_ERR(ctx->sw_cipher)) { in spacc_ablk_cra_init()
1029 return PTR_ERR(ctx->sw_cipher); in spacc_ablk_cra_init()
1044 crypto_free_skcipher(ctx->sw_cipher); in spacc_ablk_cra_exit()