Lines Matching refs:vc_sym_req
54 struct virtio_crypto_sym_request *vc_sym_req,
61 struct virtio_crypto_sym_request *vc_sym_req = in virtio_crypto_dataq_sym_callback() local
67 if (vc_sym_req->type == VIRTIO_CRYPTO_SYM_OP_CIPHER) { in virtio_crypto_dataq_sym_callback()
83 ablk_req = vc_sym_req->skcipher_req; in virtio_crypto_dataq_sym_callback()
84 virtio_crypto_skcipher_finalize_req(vc_sym_req, in virtio_crypto_dataq_sym_callback()
325 __virtio_crypto_skcipher_do_req(struct virtio_crypto_sym_request *vc_sym_req, in __virtio_crypto_skcipher_do_req() argument
330 struct virtio_crypto_skcipher_ctx *ctx = vc_sym_req->skcipher_ctx; in __virtio_crypto_skcipher_do_req()
331 struct virtio_crypto_request *vc_req = &vc_sym_req->base; in __virtio_crypto_skcipher_do_req()
371 vc_sym_req->type = VIRTIO_CRYPTO_SYM_OP_CIPHER; in __virtio_crypto_skcipher_do_req()
373 if (vc_sym_req->encrypt) { in __virtio_crypto_skcipher_do_req()
427 if (!vc_sym_req->encrypt) in __virtio_crypto_skcipher_do_req()
434 vc_sym_req->iv = iv; in __virtio_crypto_skcipher_do_req()
472 struct virtio_crypto_sym_request *vc_sym_req = in virtio_crypto_skcipher_encrypt() local
474 struct virtio_crypto_request *vc_req = &vc_sym_req->base; in virtio_crypto_skcipher_encrypt()
486 vc_sym_req->skcipher_ctx = ctx; in virtio_crypto_skcipher_encrypt()
487 vc_sym_req->skcipher_req = req; in virtio_crypto_skcipher_encrypt()
488 vc_sym_req->encrypt = true; in virtio_crypto_skcipher_encrypt()
497 struct virtio_crypto_sym_request *vc_sym_req = in virtio_crypto_skcipher_decrypt() local
499 struct virtio_crypto_request *vc_req = &vc_sym_req->base; in virtio_crypto_skcipher_decrypt()
511 vc_sym_req->skcipher_ctx = ctx; in virtio_crypto_skcipher_decrypt()
512 vc_sym_req->skcipher_req = req; in virtio_crypto_skcipher_decrypt()
513 vc_sym_req->encrypt = false; in virtio_crypto_skcipher_decrypt()
548 struct virtio_crypto_sym_request *vc_sym_req = in virtio_crypto_skcipher_crypt_req() local
550 struct virtio_crypto_request *vc_req = &vc_sym_req->base; in virtio_crypto_skcipher_crypt_req()
554 ret = __virtio_crypto_skcipher_do_req(vc_sym_req, req, data_vq); in virtio_crypto_skcipher_crypt_req()
564 struct virtio_crypto_sym_request *vc_sym_req, in virtio_crypto_skcipher_finalize_req() argument
568 if (vc_sym_req->encrypt) in virtio_crypto_skcipher_finalize_req()
572 kfree_sensitive(vc_sym_req->iv); in virtio_crypto_skcipher_finalize_req()
573 virtcrypto_clear_request(&vc_sym_req->base); in virtio_crypto_skcipher_finalize_req()
575 crypto_finalize_skcipher_request(vc_sym_req->base.dataq->engine, in virtio_crypto_skcipher_finalize_req()