Lines Matching refs:sw_cipher

161 	struct crypto_sync_skcipher	*sw_cipher;  member
171 struct crypto_aead *sw_cipher; member
464 crypto_aead_clear_flags(ctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in spacc_aead_setkey()
465 crypto_aead_set_flags(ctx->sw_cipher, crypto_aead_get_flags(tfm) & in spacc_aead_setkey()
467 err = crypto_aead_setkey(ctx->sw_cipher, key, keylen); in spacc_aead_setkey()
469 crypto_aead_set_flags(tfm, crypto_aead_get_flags(ctx->sw_cipher) & in spacc_aead_setkey()
503 return crypto_aead_setauthsize(ctx->sw_cipher, authsize); in spacc_aead_setauthsize()
538 aead_request_set_tfm(subreq, ctx->sw_cipher); in spacc_aead_do_fallback()
705 ctx->sw_cipher = crypto_alloc_aead(alg->base.cra_name, 0, in spacc_aead_cra_init()
707 if (IS_ERR(ctx->sw_cipher)) in spacc_aead_cra_init()
708 return PTR_ERR(ctx->sw_cipher); in spacc_aead_cra_init()
716 crypto_aead_reqsize(ctx->sw_cipher))); in spacc_aead_cra_init()
729 crypto_free_aead(ctx->sw_cipher); in spacc_aead_cra_exit()
794 if (!ctx->sw_cipher) in spacc_aes_setkey()
801 crypto_sync_skcipher_clear_flags(ctx->sw_cipher, in spacc_aes_setkey()
803 crypto_sync_skcipher_set_flags(ctx->sw_cipher, in spacc_aes_setkey()
807 err = crypto_sync_skcipher_setkey(ctx->sw_cipher, key, len); in spacc_aes_setkey()
811 crypto_sync_skcipher_get_flags(ctx->sw_cipher) & in spacc_aes_setkey()
916 SYNC_SKCIPHER_REQUEST_ON_STACK(subreq, ctx->sw_cipher); in spacc_ablk_do_fallback()
924 skcipher_request_set_sync_tfm(subreq, ctx->sw_cipher); in spacc_ablk_do_fallback()
1022 ctx->sw_cipher = crypto_alloc_sync_skcipher( in spacc_ablk_cra_init()
1024 if (IS_ERR(ctx->sw_cipher)) { in spacc_ablk_cra_init()
1027 return PTR_ERR(ctx->sw_cipher); in spacc_ablk_cra_init()
1042 crypto_free_sync_skcipher(ctx->sw_cipher); in spacc_ablk_cra_exit()