Add test vectors for ECDH groups 19, 20 and 21.
Signed-off-by: Gowrishankar Muthukrishnan
---
app/test/test_cryptodev_asym.c | 39 ++-
app/test/test_cryptodev_ecdh_test_vectors.h | 344 +++
app/test/test_cryptodev_ecdsa_test_vectors.h | 6 +
3 files changed
to op always succeed irrespective of whether decrypt op succeeds or not.
> This patch fixes this issue with a local buffer for crypto op.
>
> Fixes: 5ae36995f10 ("test/crypto: move RSA enqueue/dequeue into
> functions")
> Cc: sta...@dpdk.org
>
> Signed-off-by: Gowrishankar Muthukrishnan
445390
> Fixes: a8ebe94f8cc ("crypto/cnxk: support EdDSA")
> Cc: sta...@dpdk.org
>
> Signed-off-by: Gowrishankar Muthukrishnan
Fix coverity issue on out-of-bounds access.
Coverity-issue: 403166, 403171, 403172
Fixes: 5686b573e4b ("crypto/cnxk: support SM2")
Cc: sta...@dpdk.org
Signed-off-by: Gowrishankar Muthukrishnan
---
drivers/crypto/cnxk/cnxk_ae.h | 9 +
1 file changed, 9 insertions(+)
di
Fix uninitialized variable as reported in coverity scan.
Coverity-issue: 457449
Fixes: d1b484bf187 ("vhost/crypto: support asymmetric RSA")
Signed-off-by: Gowrishankar Muthukrishnan
---
lib/vhost/vhost_crypto.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a
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
This change fixes an uninitialized local variable as reported
in coverity issue 445390.
Coverity-issue: 445390
Fixes: a8ebe94f8cc ("crypto/cnxk: support EdDSA")
Cc: sta...@dpdk.org
Signed-off-by: Gowrishankar Muthukrishnan
---
drivers/crypto/cnxk/cnxk_ae.h | 2 +-
1 file changed, 1
This change fixes coverity issue on overflowed constant.
Bad phys address should be checked before using it in
descriptor.
Coverity issue: 457462, 457465
Fixes: 10702138f1a ("crypto/virtio: support asymmetric RSA")
Signed-off-by: Gowrishankar Muthukrishnan
---
drivers/cry
Increment dequeue timeout to allow implementations taking
longer cycles.
Signed-off-by: Gowrishankar Muthukrishnan
---
v2:
- no changes. only for CI.
---
app/test/test_cryptodev_asym.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/test/test_cryptodev_asym.c b/app/test
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
.
Fixes: 5ae36995f10 ("test/crypto: move RSA enqueue/dequeue into functions")
Cc: sta...@dpdk.org
Signed-off-by: Gowrishankar Muthukrishnan
---
app/test/test_cryptodev_asym.c | 21 +
1 file changed, 17 insertions(+), 4 deletions(-)
diff --git a/app/test/test_cryptodev_as
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_crypto
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/cry
Increment dequeue timeout to allow implementations taking
longer cycles.
Signed-off-by: Gowrishankar Muthukrishnan
---
v2:
- no changes. only for CI.
---
app/test/test_cryptodev_asym.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/test/test_cryptodev_asym.c b/app/test
Add test vectors to benchmark larger RSA modulus.
Signed-off-by: Gowrishankar Muthukrishnan
---
app/test-crypto-perf/cperf_options.h |3 +
app/test-crypto-perf/cperf_options_parsing.c | 132 +-
app/test-crypto-perf/cperf_test_vectors.c| 1386 +-
app/test-crypto
Support RSA 8K mod ops in virtio PMD.
Signed-off-by: Gowrishankar Muthukrishnan
---
drivers/crypto/virtio/virtio_cryptodev.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/crypto/virtio/virtio_cryptodev.h
b/drivers/crypto/virtio/virtio_cryptodev.h
index
Increment dequeue timeout to allow implementations taking
longer cycles.
Signed-off-by: Gowrishankar Muthukrishnan
---
app/test/test_cryptodev_asym.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/test/test_cryptodev_asym.c b/app/test/test_cryptodev_asym.c
index
Add test case for modex group 24.
Signed-off-by: Gowrishankar Muthukrishnan
---
app/test/test_cryptodev_asym.c | 16 ++
app/test/test_cryptodev_mod_test_vectors.h | 227 +
2 files changed, 243 insertions(+)
diff --git a/app/test/test_cryptodev_asym.c b/app/test
Skip asymmetric test when virtio PMD is not loaded.
Fixes: 7e2e9d5f3227 ("test/crypto: add asymmetric cases for virtio")
Fixes: a8f3d4f5b547 ("test/crypto: add cases for virtio-user")
Signed-off-by: Gowrishankar Muthukrishnan
---
app/test/test_cryptodev_asym.c | 4 ++-
t; Fixes: 88c73b5434e6 ("vhost/crypto: fix thread safety check")
>
> Signed-off-by: David Marchand
Tested-by: Gowrishankar Muthukrishnan
Thanks,
Gowrishankar
>
> Fixes: d1b484bf1876 ("vhost/crypto: support asymmetric RSA")
>
> Signed-off-by: David Marchand
Tested-by: Gowrishankar Muthukrishnan
Add vDPA backend to virtio_user crypto.
Signed-off-by: Gowrishankar Muthukrishnan
---
drivers/crypto/virtio/meson.build | 7 +
drivers/crypto/virtio/virtio_cryptodev.c | 57 +-
drivers/crypto/virtio/virtio_cryptodev.h | 3 +
drivers/crypto/virtio/virtio_logs.h
Add packed ring support.
Signed-off-by: Gowrishankar Muthukrishnan
---
drivers/crypto/virtio/virtio_cryptodev.c | 125 +++
drivers/crypto/virtio/virtio_cryptodev.h | 13 +-
drivers/crypto/virtio/virtio_cvq.c | 103 +-
drivers/crypto/virtio/virtio_pci.h | 25 ++
drivers
Reuse virtio_crypto tests for testing virtio_crypto_user PMD.
Signed-off-by: Gowrishankar Muthukrishnan
---
app/test/test_cryptodev.c | 7 +++
app/test/test_cryptodev.h | 1 +
app/test/test_cryptodev_asym.c | 15 +++
3 files changed, 23 insertions(+)
diff --git a
Add asymmetric tests for Virtio PMD.
Signed-off-by: Gowrishankar Muthukrishnan
---
app/test/test_cryptodev_asym.c | 28
1 file changed, 28 insertions(+)
diff --git a/app/test/test_cryptodev_asym.c b/app/test/test_cryptodev_asym.c
index 9b5f3c545e..ac47be724f 100644
Move existing control queue operations into a common place
that would be shared with other virtio type of devices.
Signed-off-by: Gowrishankar Muthukrishnan
---
drivers/crypto/virtio/meson.build | 1 +
drivers/crypto/virtio/virtio_crypto_algs.h | 2 +-
drivers/crypto/virtio
This patch series enhances virtio crypto PMD to:
* support RSA
* support packed virtio ring
* support vDPA backend
v6:
- patches rebased.
Gowrishankar Muthukrishnan (6):
crypto/virtio: add asymmetric RSA support
crypto/virtio: refactor queue operations
crypto/virtio: add packed ring
Asymmetric RSA operations (SIGN, VERIFY, ENCRYPT and DECRYPT) are
supported in virtio PMD.
Signed-off-by: Gowrishankar Muthukrishnan
---
doc/guides/cryptodevs/features/virtio.ini | 4 +
doc/guides/rel_notes/release_25_03.rst| 4 +
.../virtio/virtio_crypto_capabilities.h
Hi David,
> >
> > It is due to local vc_req that is passed to func that requires iotlb
> > lock In vc_req->vq. Even though vc_req->vq is locked vq, GCC does not allow
> > it,
> as I understand.
>
> *cough* clang.
>
> >
> > vc_req = &data_req;
> > vc_req->desc_idx = desc_idx;
> >
Hi Maxime,
>
> Before your series arrived, we were wondering if we should not deprecate Vhost
> crypto as it was not really maintained and we had no identified user.
>
> Since it seems you are going to use it, which is great, would you commit to
> make
> the necessary changes to make it reliabl
Support asymmetric RSA crypto operations in vhost-user.
Signed-off-by: Gowrishankar Muthukrishnan
Acked-by: Akhil Goyal
---
doc/guides/rel_notes/release_25_03.rst | 3 +
lib/vhost/vhost_crypto.c | 484 +++--
lib/vhost/virtio_crypto.h | 67
Support asymmetric crypto operations.
Signed-off-by: Gowrishankar Muthukrishnan
Acked-by: Akhil Goyal
---
doc/guides/sample_app_ug/vhost_crypto.rst | 5 +++
examples/vhost_crypto/main.c | 50 +--
2 files changed, 43 insertions(+), 12 deletions(-)
diff --git a
In order to handle new vhost user connection, use new_connection
and destroy_connection callbacks.
Fixes: f5188211c721 ("examples/vhost_crypto: add sample application")
Cc: sta...@dpdk.org
Signed-off-by: Gowrishankar Muthukrishnan
Acked-by: Akhil Goyal
---
examples/vhost_crypto/
Until virtio avail ring is initialized (by VHOST_USER_SET_VRING_ADDR),
worker thread should not try to fetch crypto op, which would lead to
memory fault.
Fixes: 939066d96563 ("vhost/crypto: add public function implementation")
Cc: sta...@dpdk.org
Signed-off-by: Gowrishankar Muthukrish
.
Hence, it would break parsing vhost_user messages.
This patch addresses both of the above problems.
Signed-off-by: Gowrishankar Muthukrishnan
Acked-by: Akhil Goyal
---
lib/vhost/vhost_crypto.c | 12 ++--
lib/vhost/vhost_user.h | 33 +
2 files changed, 35
not recognise this inherited lock and
stops compilation. This patch explicitly uses vhost_virtqueue
where ever required and fulfills thread safety checks.
Signed-off-by: Gowrishankar Muthukrishnan
---
lib/vhost/vhost_crypto.c | 76 ++--
1 file changed, 41 inserti
This patch series supports asymmetric RSA in vhost crypto library.
It also includes changes to improve vhost crypto library:
* support newer QEMU versions.
* fix broken vhost_crypto example application.
* stabilize crypto fastpath operations.
v9:
- new patch 1/6
Gowrishankar Muthukrishnan (6
From: Akhil Goyal
Add RSA support in crypto-perf application.
Signed-off-by: Akhil Goyal
---
v2:
- fixed RSA padding type.
---
app/test-crypto-perf/cperf_ops.c | 69
app/test-crypto-perf/cperf_options.h | 4 +
app/test-crypto-perf/cperf_options_parsing.c | 38
In order to handle new vhost user connection, use new_connection
and destroy_connection callbacks.
Fixes: f5188211c721 ("examples/vhost_crypto: add sample application")
Cc: sta...@dpdk.org
Signed-off-by: Gowrishankar Muthukrishnan
Acked-by: Akhil Goyal
---
examples/vhost_crypto/
.
Hence, it would break parsing vhost_user messages.
This patch addresses both of the above problems.
Signed-off-by: Gowrishankar Muthukrishnan
Acked-by: Akhil Goyal
---
lib/vhost/vhost_crypto.c | 12 ++--
lib/vhost/vhost_user.h | 33 +
2 files changed, 35
Support asymmetric RSA crypto operations in vhost-user.
Signed-off-by: Gowrishankar Muthukrishnan
Acked-by: Akhil Goyal
---
doc/guides/rel_notes/release_25_03.rst | 3 +
lib/vhost/vhost_crypto.c | 486 +++--
lib/vhost/virtio_crypto.h | 67
Support asymmetric crypto operations.
Signed-off-by: Gowrishankar Muthukrishnan
Acked-by: Akhil Goyal
---
doc/guides/sample_app_ug/vhost_crypto.rst | 5 +++
examples/vhost_crypto/main.c | 50 +--
2 files changed, 43 insertions(+), 12 deletions(-)
diff --git a
Until virtio avail ring is initialized (by VHOST_USER_SET_VRING_ADDR),
worker thread should not try to fetch crypto op, which would lead to
memory fault.
Fixes: 939066d96563 ("vhost/crypto: add public function implementation")
Cc: sta...@dpdk.org
Signed-off-by: Gowrishankar Muthukrish
This patch series supports asymmetric RSA in vhost crypto library.
It also includes changes to improve vhost crypto library:
* support newer QEMU versions.
* fix broken vhost_crypto example application.
* stabilize crypto fastpath operations.
Gowrishankar Muthukrishnan (5):
vhost: skip
> >
> > Ha, and also you should be able to remove:
> > __rte_no_thread_safety_analysis /* FIXME: requires iotlb_lock? */ in
> > vhost_crypto_process_one_req() once implemented.
> >
>
Removing it would break compilation for thread safety flag.
http://mails.dpdk.org/archives/test-report/2025-Februar
Support asymmetric crypto operations.
Signed-off-by: Gowrishankar Muthukrishnan
Acked-by: Akhil Goyal
---
doc/guides/sample_app_ug/vhost_crypto.rst | 5 +++
examples/vhost_crypto/main.c | 50 +--
2 files changed, 43 insertions(+), 12 deletions(-)
diff --git a
Support asymmetric RSA crypto operations in vhost-user.
Signed-off-by: Gowrishankar Muthukrishnan
Acked-by: Akhil Goyal
---
doc/guides/rel_notes/release_25_03.rst | 3 +
lib/vhost/vhost_crypto.c | 486 +++--
lib/vhost/virtio_crypto.h | 67
In order to handle new vhost user connection, use new_connection
and destroy_connection callbacks.
Fixes: f5188211c721 ("examples/vhost_crypto: add sample application")
Cc: sta...@dpdk.org
Signed-off-by: Gowrishankar Muthukrishnan
Acked-by: Akhil Goyal
---
examples/vhost_crypto/
.
Hence, it would break parsing vhost_user messages.
This patch addresses both of the above problems.
Signed-off-by: Gowrishankar Muthukrishnan
Acked-by: Akhil Goyal
---
lib/vhost/vhost_crypto.c | 12 ++--
lib/vhost/vhost_user.h | 33 +
2 files changed, 35
Until virtio avail ring is initialized (by VHOST_USER_SET_VRING_ADDR),
worker thread should not try to fetch crypto op, which would lead to
memory fault.
Fixes: 939066d96563 ("vhost/crypto: add public function implementation")
Cc: sta...@dpdk.org
Signed-off-by: Gowrishankar Muthukrish
This patch series supports asymmetric RSA in vhost crypto library.
It also includes changes to improve vhost crypto library:
* support newer QEMU versions.
* fix broken vhost_crypto example application.
* stabilize crypto fastpath operations.
Gowrishankar Muthukrishnan (5):
vhost: skip
Hi Maxime,
> >
> > You should only unlock at the end of the function, otherwise there is
> > not much protection.
>
> Ha, and also you should be able to remove:
> __rte_no_thread_safety_analysis /* FIXME: requires iotlb_lock? */ in
> vhost_crypto_process_one_req() once implemented.
>
Ack.
Thank
Add packed ring support.
Signed-off-by: Gowrishankar Muthukrishnan
---
drivers/crypto/virtio/virtio_cryptodev.c | 125 +++
drivers/crypto/virtio/virtio_cryptodev.h | 13 +-
drivers/crypto/virtio/virtio_cvq.c | 103 +-
drivers/crypto/virtio/virtio_pci.h | 25 ++
drivers
Asymmetric RSA operations (SIGN, VERIFY, ENCRYPT and DECRYPT) are
supported in virtio PMD.
Signed-off-by: Gowrishankar Muthukrishnan
---
Depends-on: patch-152109 ("vhost: support asymmetric RSA crypto ops")
v5:
- fixed asym enqueue xmit func for correct head idx.
- release not
This patch series enhances virtio crypto PMD to:
* support RSA
* support packed virtio ring
* support vDPA backend
Depends-on: patch-152109 ("vhost: support asymmetric RSA crypto ops")
Gowrishankar Muthukrishnan (6):
crypto/virtio: add asymmetric RSA support
crypto/virtio: refa
Move existing control queue operations into a common place
that would be shared with other virtio type of devices.
Signed-off-by: Gowrishankar Muthukrishnan
---
drivers/crypto/virtio/meson.build | 1 +
drivers/crypto/virtio/virtio_crypto_algs.h | 2 +-
drivers/crypto/virtio
Add asymmetric tests for Virtio PMD.
Signed-off-by: Gowrishankar Muthukrishnan
---
app/test/test_cryptodev_asym.c | 28
1 file changed, 28 insertions(+)
diff --git a/app/test/test_cryptodev_asym.c b/app/test/test_cryptodev_asym.c
index 9b5f3c545e..ac47be724f 100644
Reuse virtio_crypto tests for testing virtio_crypto_user PMD.
Signed-off-by: Gowrishankar Muthukrishnan
---
app/test/test_cryptodev.c | 7 +++
app/test/test_cryptodev.h | 1 +
app/test/test_cryptodev_asym.c | 15 +++
3 files changed, 23 insertions(+)
diff --git a
Add vDPA backend to virtio_user crypto.
Signed-off-by: Gowrishankar Muthukrishnan
---
drivers/crypto/virtio/meson.build | 7 +
drivers/crypto/virtio/virtio_cryptodev.c | 57 +-
drivers/crypto/virtio/virtio_cryptodev.h | 3 +
drivers/crypto/virtio/virtio_logs.h
Support asymmetric crypto operations.
Signed-off-by: Gowrishankar Muthukrishnan
Acked-by: Akhil Goyal
---
doc/guides/sample_app_ug/vhost_crypto.rst | 5 +++
examples/vhost_crypto/main.c | 50 +--
2 files changed, 43 insertions(+), 12 deletions(-)
diff --git a
Support asymmetric RSA crypto operations in vhost-user.
Signed-off-by: Gowrishankar Muthukrishnan
Acked-by: Akhil Goyal
---
doc/guides/rel_notes/release_25_03.rst | 3 +
lib/vhost/vhost_crypto.c | 486 +++--
lib/vhost/virtio_crypto.h | 67
In order to handle new vhost user connection, use new_connection
and destroy_connection callbacks.
Fixes: f5188211c721 ("examples/vhost_crypto: add sample application")
Cc: sta...@dpdk.org
Signed-off-by: Gowrishankar Muthukrishnan
Acked-by: Akhil Goyal
---
examples/vhost_crypto/
.
Hence, it would break parsing vhost_user messages.
This patch addresses both of the above problems.
Signed-off-by: Gowrishankar Muthukrishnan
Acked-by: Akhil Goyal
---
lib/vhost/vhost_crypto.c | 12 ++--
lib/vhost/vhost_user.h | 33 +
2 files changed, 35
Until virtio avail ring is initialized (by VHOST_USER_SET_VRING_ADDR),
worker thread should not try to fetch crypto op, which would lead to
memory fault.
Fixes: 939066d96563 ("vhost/crypto: add public function implementation")
Cc: sta...@dpdk.org
Signed-off-by: Gowrishankar Muthukrish
This patch series supports asymmetric RSA in vhost crypto library.
It also includes changes to improve vhost crypto library:
* support newer QEMU versions.
* fix broken vhost_crypto example application.
* stabilize crypto fastpath operations.
Gowrishankar Muthukrishnan (5):
vhost: skip
Hi Maxime,
> >
> > + if (unlikely(vq == NULL)) {
> > + VC_LOG_ERR("Invalid virtqueue %u", qid);
> > + return 0;
> > + }
> > +
> > + if (unlikely(vq->avail == NULL)) {
> > + VC_LOG_DBG("Virtqueue ring not yet initialized %u", qid);
> > + return 0;
> > +
Support asymmetric crypto operations.
Signed-off-by: Gowrishankar Muthukrishnan
Acked-by: Akhil Goyal
---
v5:
- doc update
---
doc/guides/sample_app_ug/vhost_crypto.rst | 5 +++
examples/vhost_crypto/main.c | 50 +--
2 files changed, 43 insertions(+), 12
Support asymmetric RSA crypto operations in vhost-user.
Signed-off-by: Gowrishankar Muthukrishnan
Acked-by: Akhil Goyal
---
v5:
- release notes
---
doc/guides/rel_notes/release_25_03.rst | 3 +
lib/vhost/vhost_crypto.c | 486 +++--
lib/vhost/virtio_crypto.h
In order to handle new vhost user connection, use new_connection
and destroy_connection callbacks.
Fixes: f5188211c721 ("examples/vhost_crypto: add sample application")
Cc: sta...@dpdk.org
Signed-off-by: Gowrishankar Muthukrishnan
Acked-by: Akhil Goyal
---
examples/vhost_crypto/
.
Hence, it would break parsing vhost_user messages.
This patch addresses both of the above problems.
Signed-off-by: Gowrishankar Muthukrishnan
Acked-by: Akhil Goyal
---
v5:
- updated patch description for QEMU version.
---
lib/vhost/vhost_crypto.c | 12 ++--
lib/vhost/vhost_user.h | 33
Until virtio avail ring is initialized (by VHOST_USER_SET_VRING_ADDR),
worker thread should not try to fetch crypto op, which would lead to
memory fault.
Fixes: 939066d96563 ("vhost/crypto: add public function implementation")
Cc: sta...@dpdk.org
Signed-off-by: Gowrishankar Muthukrish
This patch series supports asymmetric RSA in vhost crypto library.
It also includes changes to improve vhost crypto library:
* support newer QEMU versions.
* fix broken vhost_crypto example application.
* stabilize crypto fastpath operations.
v5:
- added docs.
Gowrishankar Muthukrishnan (5
Add negative test for RSA verify operation to check if incorrect
signature is validated.
Signed-off-by: Gowrishankar Muthukrishnan
---
v2:
- no changes, but added openssl pmd patch for CI.
---
app/test/test_cryptodev_asym.c | 27 +--
1 file changed, 25 insertions(+), 2
Return correct error status when incorrect signature is
used in RSA verify op.
Fixes: d7bd42f6db19 ("crypto/openssl: update RSA routine with 3.0 EVP API")
Cc: sta...@dpdk.org
Signed-off-by: Gowrishankar Muthukrishnan
---
v2:
- clubbed with test patch
---
drivers/cryp
Move existing control queue operations into a common place
that would be shared with other virtio type of devices.
Signed-off-by: Gowrishankar Muthukrishnan
---
Depends-on: series-34682 ("vhost: add RSA support")
---
drivers/crypto/virtio/meson.build | 1 +
drivers/cry
Add vDPA backend to virtio_user crypto.
Signed-off-by: Gowrishankar Muthukrishnan
---
Depends-on: series-34682 ("vhost: add RSA support")
v4:
- fixed CI issue.
---
drivers/crypto/virtio/meson.build | 7 +
drivers/crypto/virtio/virtio_cryptodev.c | 57 +-
driv
Add asymmetric tests for Virtio PMD.
Signed-off-by: Gowrishankar Muthukrishnan
---
app/test/test_cryptodev_asym.c | 28
1 file changed, 28 insertions(+)
diff --git a/app/test/test_cryptodev_asym.c b/app/test/test_cryptodev_asym.c
index 9b5f3c545e..ac47be724f 100644
Support asymmetric crypto operations.
Signed-off-by: Gowrishankar Muthukrishnan
---
examples/vhost_crypto/main.c | 50 +++-
1 file changed, 38 insertions(+), 12 deletions(-)
diff --git a/examples/vhost_crypto/main.c b/examples/vhost_crypto/main.c
index
Reuse virtio_crypto tests for testing virtio_crypto_user PMD.
Signed-off-by: Gowrishankar Muthukrishnan
---
app/test/test_cryptodev.c | 7 +++
app/test/test_cryptodev.h | 1 +
app/test/test_cryptodev_asym.c | 15 +++
3 files changed, 23 insertions(+)
diff --git a
parsing
vhost_user message.
This patch addresses both of the above problems.
Signed-off-by: Gowrishankar Muthukrishnan
---
lib/vhost/vhost_crypto.c | 12 ++--
lib/vhost/vhost_user.h | 33 +
2 files changed, 35 insertions(+), 10 deletions(-)
diff --git a/lib
Add packed ring support.
Signed-off-by: Gowrishankar Muthukrishnan
---
Depends-on: series-34682 ("vhost: add RSA support")
---
drivers/crypto/virtio/virtio_cryptodev.c | 125 +++
drivers/crypto/virtio/virtio_cryptodev.h | 13 +-
drivers/crypto/virtio/virtio_cvq.c
Asymmetric RSA operations (SIGN, VERIFY, ENCRYPT and DECRYPT) are
supported in virtio PMD.
Signed-off-by: Gowrishankar Muthukrishnan
---
Depends-on: series-34682 ("vhost: add RSA support")
---
.../virtio/virtio_crypto_capabilities.h | 19 +
drivers/crypto/virtio/virtio_c
This patch series enhances virtio crypto PMD to:
* support RSA
* support packed virtio ring
* support vDPA backend
v4:
- CI issue fixed.
Depends-on: series-34682 ("vhost: add RSA support")
Gowrishankar Muthukrishnan (6):
crypto/virtio: add asymmetric RSA support
crypto/virtio
Support asymmetric RSA crypto operations in vhost-user.
Signed-off-by: Gowrishankar Muthukrishnan
---
v4:
- fixed CI issue.
---
lib/vhost/vhost_crypto.c | 486 +++---
lib/vhost/virtio_crypto.h | 67 ++
2 files changed, 518 insertions(+), 35 deletions
In order to handle new vhost user connection, use new_connection
and destroy_connection callbacks.
Fixes: f5188211c721 ("examples/vhost_crypto: add sample application")
Cc: sta...@dpdk.org
Signed-off-by: Gowrishankar Muthukrishnan
---
examples/vhost_crypto/main.c | 4 ++--
1 file
This patch series supports asymmetric RSA in vhost crypto library.
It also includes changes to improve vhost crypto library:
* support newer QEMU versions.
* fix broken vhost_crypto example application.
* stabilize crypto fastpath operations.
v4:
- fixed CI issues.
Gowrishankar Muthukrishnan
Until virtio avail ring is initialized (by VHOST_USER_SET_VRING_ADDR),
worker thread should not try to fetch crypto op, which would lead to
memory fault.
Fixes: 939066d96563 ("vhost/crypto: add public function implementation")
Cc: sta...@dpdk.org
Signed-off-by: Gowrishankar Mut
Add packed ring support.
Signed-off-by: Gowrishankar Muthukrishnan
---
drivers/crypto/virtio/virtio_cryptodev.c | 125 +++
drivers/crypto/virtio/virtio_cryptodev.h | 13 +-
drivers/crypto/virtio/virtio_cvq.c | 103 +-
drivers/crypto/virtio/virtio_pci.h | 25 ++
drivers
Return correct error status when incorrect signature is
used in RSA verify op.
Fixes: d7bd42f6db19 ("crypto/openssl: update RSA routine with 3.0 EVP API")
Cc: sta...@dpdk.org
Signed-off-by: Gowrishankar Muthukrishnan
---
v2:
- added comments.
---
drivers/crypto/openssl/rte_openssl_
From: Akhil Goyal
Add RSA support in crypto-perf application.
Signed-off-by: Akhil Goyal
---
app/test-crypto-perf/cperf_ops.c | 68
app/test-crypto-perf/cperf_options.h | 4 +
app/test-crypto-perf/cperf_options_parsing.c | 38 +++-
app/test-crypto-perf/cperf_te
parsing
vhost_user message.
This patch addresses both of the above problems.
Signed-off-by: Gowrishankar Muthukrishnan
---
v3:
- decoupled originally from v2 series single patch.
---
lib/vhost/vhost_crypto.c | 12 ++--
lib/vhost/vhost_user.h | 33 +
2
Asymmetric RSA operations (SIGN, VERIFY, ENCRYPT and DECRYPT) are
supported in virtio PMD.
Signed-off-by: Gowrishankar Muthukrishnan
---
Depends-on: series-34674 ("vhost: add RSA support")
v3:
- fast path optimizations.
---
.../virtio/virtio_crypto_capabilities.h | 19 +
driv
Add asymmetric tests for Virtio PMD.
Signed-off-by: Gowrishankar Muthukrishnan
---
app/test/test_cryptodev_asym.c | 28
1 file changed, 28 insertions(+)
diff --git a/app/test/test_cryptodev_asym.c b/app/test/test_cryptodev_asym.c
index 9b5f3c545e..ac47be724f 100644
Reuse virtio_crypto tests for testing virtio_crypto_user PMD.
Signed-off-by: Gowrishankar Muthukrishnan
---
app/test/test_cryptodev.c | 7 +++
app/test/test_cryptodev.h | 1 +
app/test/test_cryptodev_asym.c | 15 +++
3 files changed, 23 insertions(+)
diff --git a
Add vDPA backend to virtio_user crypto.
Signed-off-by: Gowrishankar Muthukrishnan
---
drivers/crypto/virtio/meson.build | 7 +
drivers/crypto/virtio/virtio_cryptodev.c | 57 +-
drivers/crypto/virtio/virtio_cryptodev.h | 3 +
drivers/crypto/virtio/virtio_logs.h
Move existing control queue operations into a common place
that would be shared with other virtio type of devices.
Signed-off-by: Gowrishankar Muthukrishnan
---
drivers/crypto/virtio/meson.build | 1 +
drivers/crypto/virtio/virtio_crypto_algs.h | 2 +-
drivers/crypto/virtio
This patch series enhances virtio crypto PMD to:
* support RSA
* support packed virtio ring
* support vDPA backend
v3:
- vDPA backend code majorly sourced from virtio net.
Gowrishankar Muthukrishnan (6):
crypto/virtio: add asymmetric RSA support
crypto/virtio: refactor queue operations
In order to handle new vhost user connection, use new_connection
and destroy_connection callbacks.
Fixes: f5188211c721 ("examples/vhost_crypto: add sample application")
Cc: sta...@dpdk.org
Signed-off-by: Gowrishankar Muthukrishnan
---
v3:
- decoupled from v2 single patch.
---
Support asymmetric crypto operations.
Signed-off-by: Gowrishankar Muthukrishnan
---
examples/vhost_crypto/main.c | 50 +++-
1 file changed, 38 insertions(+), 12 deletions(-)
diff --git a/examples/vhost_crypto/main.c b/examples/vhost_crypto/main.c
index
Support asymmetric RSA crypto operations in vhost-user.
Signed-off-by: Gowrishankar Muthukrishnan
---
v3:
- TLV decode optimization for fast path.
- virtio_crypto.h changes moved from virtio PMD patch series into this series
as asymmetric support starts essentially from library.
---
lib
1 - 100 of 808 matches
Mail list logo