Re: [PATCH] rust: RFC/demo of safe API for Dpdk Eal, Eth and Rxq

2025-05-10 Thread Owen Hilyard
> ‎From: Van Haaren, Harry > Sent: Friday, May 9, 2025 12:24 PM > To: Owen Hilyard ; Etelson, Gregory > ; Richardson, Bruce > Cc: dev@dpdk.org > Subject: Re: [PATCH] rust: RFC/demo of safe API for Dpdk Eal, Eth and Rxq > > > From: Owen Hilyard > > Sent: Friday, May 09, 2025 12:53 AM > > To: Va

[PATCH] test/crypto: fix return value in RSA verify test

2025-05-10 Thread Gowrishankar Muthukrishnan
This patch fixes incorrect return value when RSA negative test scenario is validated. Coverity-issue: 457463 Fixes: 9682e8246ae ("test/crypto: add negative case for RSA verification") Signed-off-by: Gowrishankar Muthukrishnan --- app/test/test_cryptodev_asym.c | 1 + 1 file changed, 1 insertion

[PATCH] test/crypto: fix RSA decrypt op validation

2025-05-10 Thread Gowrishankar Muthukrishnan
Following RSA encrypt op, same plaintext buffer is used as output buffer for decrypt op, hence comparing plaintext buffer against same buffer pointer in crypto op always succeed irrespective of whether decrypt op succeeds or not. This patch fixes this issue with a local buffer for crypto op. Fixes

[PATCH] crypto/virtio: fix DER encoding for positive RSA param

2025-05-10 Thread Gowrishankar Muthukrishnan
As per RFC 8017, RSA parameter needs to be positive integer. This patch fixes TLV encoding function appropriately. Fixes: 6fe6a7f7bcf ("crypto/virtio: add asymmetric RSA support") Signed-off-by: Gowrishankar Muthukrishnan --- drivers/crypto/virtio/virtio_cryptodev.c | 30 ---

[PATCH] crypto/virtio: fix DER encoding of RSA public key

2025-05-10 Thread Gowrishankar Muthukrishnan
As per RFC 8017, RSA public key in ASN.1 should have only modulus and exponent values. Add a separate encoding function to follow this standard. Fixes: 6fe6a7f7bcf ("crypto/virtio: add asymmetric RSA support") Signed-off-by: Gowrishankar Muthukrishnan --- drivers/crypto/virtio/virtio_cryptodev.