* [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag
@ 2019-03-28 10:27 Ayuj Verma
2019-03-28 10:27 ` Ayuj Verma
` (6 more replies)
0 siblings, 7 replies; 20+ messages in thread
From: Ayuj Verma @ 2019-03-28 10:27 UTC (permalink / raw)
To: akhil.goyal
Cc: arkadiuszx.kusztal, Shally Verma, Sunila Sahu,
Kanaka Durga Kotamarthy, Arvind Desai, dev, Ayuj Verma
Some PMDs can support RSA private key operations using CRT
(quintuple) or exponent key only. Thus add a feature flag
RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP and
RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT in PMD to reflect which key
type is supported to perform rsa private key op.
App should query PMD feature flag to check if specific
key type is supported and call operation with relevant key type.
Changes in v3:
- Rebase changes on top of latest unit test application
- add feature flag description in documentation
Changes in v2:
- RSA key type feature flags exponenet and quintuple,
in place of making them part of xform capabilities.
Ayuj Verma (4):
lib/cryptodev: add rsa priv key feature flag
crypto/openssl: set rsa private op feature flag
app/test: check for key type ff in asym unit test
doc: add rsa key type to feature list
app/test/test_cryptodev_asym.c | 26 ++++++++++++++++++++++++++
doc/guides/cryptodevs/features/openssl.ini | 2 ++
doc/guides/cryptodevs/overview.rst | 6 ++++++
drivers/crypto/openssl/rte_openssl_pmd.c | 4 +++-
lib/librte_cryptodev/rte_cryptodev.c | 4 ++++
lib/librte_cryptodev/rte_cryptodev.h | 4 ++++
6 files changed, 45 insertions(+), 1 deletion(-)
--
1.8.3.1
^ permalink raw reply [flat|nested] 20+ messages in thread
* [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag
2019-03-28 10:27 [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag Ayuj Verma
@ 2019-03-28 10:27 ` Ayuj Verma
2019-03-28 10:28 ` [dpdk-dev] [PATCH v3 1/4] lib/cryptodev: add " Ayuj Verma
` (5 subsequent siblings)
6 siblings, 0 replies; 20+ messages in thread
From: Ayuj Verma @ 2019-03-28 10:27 UTC (permalink / raw)
To: akhil.goyal
Cc: arkadiuszx.kusztal, Shally Verma, Sunila Sahu,
Kanaka Durga Kotamarthy, Arvind Desai, dev, Ayuj Verma
Some PMDs can support RSA private key operations using CRT
(quintuple) or exponent key only. Thus add a feature flag
RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP and
RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT in PMD to reflect which key
type is supported to perform rsa private key op.
App should query PMD feature flag to check if specific
key type is supported and call operation with relevant key type.
Changes in v3:
- Rebase changes on top of latest unit test application
- add feature flag description in documentation
Changes in v2:
- RSA key type feature flags exponenet and quintuple,
in place of making them part of xform capabilities.
Ayuj Verma (4):
lib/cryptodev: add rsa priv key feature flag
crypto/openssl: set rsa private op feature flag
app/test: check for key type ff in asym unit test
doc: add rsa key type to feature list
app/test/test_cryptodev_asym.c | 26 ++++++++++++++++++++++++++
doc/guides/cryptodevs/features/openssl.ini | 2 ++
doc/guides/cryptodevs/overview.rst | 6 ++++++
drivers/crypto/openssl/rte_openssl_pmd.c | 4 +++-
lib/librte_cryptodev/rte_cryptodev.c | 4 ++++
lib/librte_cryptodev/rte_cryptodev.h | 4 ++++
6 files changed, 45 insertions(+), 1 deletion(-)
--
1.8.3.1
^ permalink raw reply [flat|nested] 20+ messages in thread
* [dpdk-dev] [PATCH v3 1/4] lib/cryptodev: add rsa priv key feature flag
2019-03-28 10:27 [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag Ayuj Verma
2019-03-28 10:27 ` Ayuj Verma
@ 2019-03-28 10:28 ` Ayuj Verma
2019-03-28 10:28 ` Ayuj Verma
2019-03-28 10:28 ` [dpdk-dev] [PATCH v3 2/4] crypto/openssl: set rsa private op " Ayuj Verma
` (4 subsequent siblings)
6 siblings, 1 reply; 20+ messages in thread
From: Ayuj Verma @ 2019-03-28 10:28 UTC (permalink / raw)
To: akhil.goyal
Cc: arkadiuszx.kusztal, Shally Verma, Sunila Sahu,
Kanaka Durga Kotamarthy, Arvind Desai, dev, Ayuj Verma
Add feature flag to reflect RSA private key
operation support using quintuple (crt) or
exponent type key. if PMD support both,
then it should set both.
App should query cryptodev feature flag to check
if Sign and Decryt with CRT keys or exponent is
supported, thus call operation with relevant
key type.
Signed-off-by: Ayuj Verma <ayverma@marvell.com>
Signed-off-by: Shally Verma <shallyv@marvell.com>
---
lib/librte_cryptodev/rte_cryptodev.c | 4 ++++
lib/librte_cryptodev/rte_cryptodev.h | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/lib/librte_cryptodev/rte_cryptodev.c b/lib/librte_cryptodev/rte_cryptodev.c
index 871d7dd..cdc586a 100644
--- a/lib/librte_cryptodev/rte_cryptodev.c
+++ b/lib/librte_cryptodev/rte_cryptodev.c
@@ -486,6 +486,10 @@ struct rte_cryptodev_sym_session_pool_private_data {
return "CPU_ARM_CE";
case RTE_CRYPTODEV_FF_SECURITY:
return "SECURITY_PROTOCOL";
+ case RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP:
+ return "RSA_PRIV_OP_KEY_EXP";
+ case RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT:
+ return "RSA_PRIV_OP_KEY_QT";
default:
return NULL;
}
diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h
index a0bbcf9..298b352 100644
--- a/lib/librte_cryptodev/rte_cryptodev.h
+++ b/lib/librte_cryptodev/rte_cryptodev.h
@@ -438,6 +438,10 @@ struct rte_cryptodev_asym_capability_idx {
/**< Utilises ARM CPU Cryptographic Extensions */
#define RTE_CRYPTODEV_FF_SECURITY (1ULL << 16)
/**< Support Security Protocol Processing */
+#define RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP (1ULL << 17)
+/**< Support RSA Private Key OP with exponent */
+#define RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT (1ULL << 18)
+/**< Support RSA Private Key OP with CRT (quintuple) Keys */
/**
--
1.8.3.1
^ permalink raw reply [flat|nested] 20+ messages in thread
* [dpdk-dev] [PATCH v3 1/4] lib/cryptodev: add rsa priv key feature flag
2019-03-28 10:28 ` [dpdk-dev] [PATCH v3 1/4] lib/cryptodev: add " Ayuj Verma
@ 2019-03-28 10:28 ` Ayuj Verma
0 siblings, 0 replies; 20+ messages in thread
From: Ayuj Verma @ 2019-03-28 10:28 UTC (permalink / raw)
To: akhil.goyal
Cc: arkadiuszx.kusztal, Shally Verma, Sunila Sahu,
Kanaka Durga Kotamarthy, Arvind Desai, dev, Ayuj Verma
Add feature flag to reflect RSA private key
operation support using quintuple (crt) or
exponent type key. if PMD support both,
then it should set both.
App should query cryptodev feature flag to check
if Sign and Decryt with CRT keys or exponent is
supported, thus call operation with relevant
key type.
Signed-off-by: Ayuj Verma <ayverma@marvell.com>
Signed-off-by: Shally Verma <shallyv@marvell.com>
---
lib/librte_cryptodev/rte_cryptodev.c | 4 ++++
lib/librte_cryptodev/rte_cryptodev.h | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/lib/librte_cryptodev/rte_cryptodev.c b/lib/librte_cryptodev/rte_cryptodev.c
index 871d7dd..cdc586a 100644
--- a/lib/librte_cryptodev/rte_cryptodev.c
+++ b/lib/librte_cryptodev/rte_cryptodev.c
@@ -486,6 +486,10 @@ struct rte_cryptodev_sym_session_pool_private_data {
return "CPU_ARM_CE";
case RTE_CRYPTODEV_FF_SECURITY:
return "SECURITY_PROTOCOL";
+ case RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP:
+ return "RSA_PRIV_OP_KEY_EXP";
+ case RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT:
+ return "RSA_PRIV_OP_KEY_QT";
default:
return NULL;
}
diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h
index a0bbcf9..298b352 100644
--- a/lib/librte_cryptodev/rte_cryptodev.h
+++ b/lib/librte_cryptodev/rte_cryptodev.h
@@ -438,6 +438,10 @@ struct rte_cryptodev_asym_capability_idx {
/**< Utilises ARM CPU Cryptographic Extensions */
#define RTE_CRYPTODEV_FF_SECURITY (1ULL << 16)
/**< Support Security Protocol Processing */
+#define RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP (1ULL << 17)
+/**< Support RSA Private Key OP with exponent */
+#define RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT (1ULL << 18)
+/**< Support RSA Private Key OP with CRT (quintuple) Keys */
/**
--
1.8.3.1
^ permalink raw reply [flat|nested] 20+ messages in thread
* [dpdk-dev] [PATCH v3 2/4] crypto/openssl: set rsa private op feature flag
2019-03-28 10:27 [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag Ayuj Verma
2019-03-28 10:27 ` Ayuj Verma
2019-03-28 10:28 ` [dpdk-dev] [PATCH v3 1/4] lib/cryptodev: add " Ayuj Verma
@ 2019-03-28 10:28 ` Ayuj Verma
2019-03-28 10:28 ` Ayuj Verma
2019-03-28 10:28 ` [dpdk-dev] [PATCH v3 3/4] app/test: check for key type ff in asym unit test Ayuj Verma
` (3 subsequent siblings)
6 siblings, 1 reply; 20+ messages in thread
From: Ayuj Verma @ 2019-03-28 10:28 UTC (permalink / raw)
To: akhil.goyal
Cc: arkadiuszx.kusztal, Shally Verma, Sunila Sahu,
Kanaka Durga Kotamarthy, Arvind Desai, dev, Ayuj Verma
openssl PMD support RSA private key operation
using both qt and exp key type.
Set rsa key type feature flag
Signed-off-by: Ayuj Verma <ayverma@marvell.com>
Signed-off-by: Shally Verma <shallyv@marvell.com>
---
drivers/crypto/openssl/rte_openssl_pmd.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/crypto/openssl/rte_openssl_pmd.c b/drivers/crypto/openssl/rte_openssl_pmd.c
index 93cd73e..6504959 100644
--- a/drivers/crypto/openssl/rte_openssl_pmd.c
+++ b/drivers/crypto/openssl/rte_openssl_pmd.c
@@ -2125,7 +2125,9 @@ static void HMAC_CTX_free(HMAC_CTX *ctx)
RTE_CRYPTODEV_FF_CPU_AESNI |
RTE_CRYPTODEV_FF_OOP_SGL_IN_LB_OUT |
RTE_CRYPTODEV_FF_OOP_LB_IN_LB_OUT |
- RTE_CRYPTODEV_FF_ASYMMETRIC_CRYPTO;
+ RTE_CRYPTODEV_FF_ASYMMETRIC_CRYPTO |
+ RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP |
+ RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT;
/* Set vector instructions mode supported */
internals = dev->data->dev_private;
--
1.8.3.1
^ permalink raw reply [flat|nested] 20+ messages in thread
* [dpdk-dev] [PATCH v3 2/4] crypto/openssl: set rsa private op feature flag
2019-03-28 10:28 ` [dpdk-dev] [PATCH v3 2/4] crypto/openssl: set rsa private op " Ayuj Verma
@ 2019-03-28 10:28 ` Ayuj Verma
0 siblings, 0 replies; 20+ messages in thread
From: Ayuj Verma @ 2019-03-28 10:28 UTC (permalink / raw)
To: akhil.goyal
Cc: arkadiuszx.kusztal, Shally Verma, Sunila Sahu,
Kanaka Durga Kotamarthy, Arvind Desai, dev, Ayuj Verma
openssl PMD support RSA private key operation
using both qt and exp key type.
Set rsa key type feature flag
Signed-off-by: Ayuj Verma <ayverma@marvell.com>
Signed-off-by: Shally Verma <shallyv@marvell.com>
---
drivers/crypto/openssl/rte_openssl_pmd.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/crypto/openssl/rte_openssl_pmd.c b/drivers/crypto/openssl/rte_openssl_pmd.c
index 93cd73e..6504959 100644
--- a/drivers/crypto/openssl/rte_openssl_pmd.c
+++ b/drivers/crypto/openssl/rte_openssl_pmd.c
@@ -2125,7 +2125,9 @@ static void HMAC_CTX_free(HMAC_CTX *ctx)
RTE_CRYPTODEV_FF_CPU_AESNI |
RTE_CRYPTODEV_FF_OOP_SGL_IN_LB_OUT |
RTE_CRYPTODEV_FF_OOP_LB_IN_LB_OUT |
- RTE_CRYPTODEV_FF_ASYMMETRIC_CRYPTO;
+ RTE_CRYPTODEV_FF_ASYMMETRIC_CRYPTO |
+ RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP |
+ RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT;
/* Set vector instructions mode supported */
internals = dev->data->dev_private;
--
1.8.3.1
^ permalink raw reply [flat|nested] 20+ messages in thread
* [dpdk-dev] [PATCH v3 3/4] app/test: check for key type ff in asym unit test
2019-03-28 10:27 [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag Ayuj Verma
` (2 preceding siblings ...)
2019-03-28 10:28 ` [dpdk-dev] [PATCH v3 2/4] crypto/openssl: set rsa private op " Ayuj Verma
@ 2019-03-28 10:28 ` Ayuj Verma
2019-03-28 10:28 ` Ayuj Verma
2019-03-28 10:28 ` [dpdk-dev] [PATCH v3 4/4] doc: add rsa key type to feature list Ayuj Verma
` (2 subsequent siblings)
6 siblings, 1 reply; 20+ messages in thread
From: Ayuj Verma @ 2019-03-28 10:28 UTC (permalink / raw)
To: akhil.goyal
Cc: arkadiuszx.kusztal, Shally Verma, Sunila Sahu,
Kanaka Durga Kotamarthy, Arvind Desai, dev, Ayuj Verma
Signed-off-by: Ayuj Verma <ayverma@marvell.com>
Signed-off-by: Shally Verma <shallyv@marvell.com>
---
app/test/test_cryptodev_asym.c | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/app/test/test_cryptodev_asym.c b/app/test/test_cryptodev_asym.c
index a779e8f..539eda1 100644
--- a/app/test/test_cryptodev_asym.c
+++ b/app/test/test_cryptodev_asym.c
@@ -49,6 +49,7 @@ struct crypto_unittest_params {
struct rte_mempool *op_mpool = ts_params->op_mpool;
struct rte_mempool *sess_mpool = ts_params->session_mpool;
uint8_t dev_id = ts_params->valid_devs[0];
+ struct rte_cryptodev_info dev_info;
struct rte_crypto_asym_op *asym_op = NULL;
struct rte_crypto_op *op = NULL, *result_op = NULL;
struct rte_cryptodev_asym_session *sess = NULL;
@@ -56,6 +57,18 @@ struct crypto_unittest_params {
uint8_t output_buf[TEST_DATA_SIZE] = {0};
uint8_t input_buf[TEST_DATA_SIZE] = {0};
+ /* test case supports op with exponent key only,
+ * Check in PMD feature flag for RSA exponent key type support.
+ */
+ rte_cryptodev_info_get(dev_id, &dev_info);
+ if (!(dev_info.feature_flags &
+ RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP)) {
+ RTE_LOG(INFO, USER1,
+ "Device doesn't support sign op with "
+ "exponent key type. Test Skipped\n");
+ return TEST_SKIPPED;
+ }
+
sess = rte_cryptodev_asym_session_create(sess_mpool);
if (!sess) {
@@ -183,12 +196,25 @@ struct crypto_unittest_params {
struct rte_mempool *op_mpool = ts_params->op_mpool;
struct rte_mempool *sess_mpool = ts_params->session_mpool;
uint8_t dev_id = ts_params->valid_devs[0];
+ struct rte_cryptodev_info dev_info;
struct rte_crypto_asym_op *asym_op = NULL;
struct rte_crypto_op *op = NULL, *result_op = NULL;
struct rte_cryptodev_asym_session *sess = NULL;
int status = TEST_SUCCESS;
uint8_t input_buf[TEST_DATA_SIZE] = {0};
+ /* test case supports op with exponent key only,
+ * Check in PMD feature flag for RSA exponent key type support.
+ */
+ rte_cryptodev_info_get(dev_id, &dev_info);
+ if (!(dev_info.feature_flags &
+ RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP)) {
+ RTE_LOG(INFO, USER1,
+ "Device doesn't support sign op with "
+ "exponent key type. Test Skipped\n");
+ return TEST_SKIPPED;
+ }
+
sess = rte_cryptodev_asym_session_create(sess_mpool);
if (!sess) {
--
1.8.3.1
^ permalink raw reply [flat|nested] 20+ messages in thread
* [dpdk-dev] [PATCH v3 3/4] app/test: check for key type ff in asym unit test
2019-03-28 10:28 ` [dpdk-dev] [PATCH v3 3/4] app/test: check for key type ff in asym unit test Ayuj Verma
@ 2019-03-28 10:28 ` Ayuj Verma
0 siblings, 0 replies; 20+ messages in thread
From: Ayuj Verma @ 2019-03-28 10:28 UTC (permalink / raw)
To: akhil.goyal
Cc: arkadiuszx.kusztal, Shally Verma, Sunila Sahu,
Kanaka Durga Kotamarthy, Arvind Desai, dev, Ayuj Verma
Signed-off-by: Ayuj Verma <ayverma@marvell.com>
Signed-off-by: Shally Verma <shallyv@marvell.com>
---
app/test/test_cryptodev_asym.c | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/app/test/test_cryptodev_asym.c b/app/test/test_cryptodev_asym.c
index a779e8f..539eda1 100644
--- a/app/test/test_cryptodev_asym.c
+++ b/app/test/test_cryptodev_asym.c
@@ -49,6 +49,7 @@ struct crypto_unittest_params {
struct rte_mempool *op_mpool = ts_params->op_mpool;
struct rte_mempool *sess_mpool = ts_params->session_mpool;
uint8_t dev_id = ts_params->valid_devs[0];
+ struct rte_cryptodev_info dev_info;
struct rte_crypto_asym_op *asym_op = NULL;
struct rte_crypto_op *op = NULL, *result_op = NULL;
struct rte_cryptodev_asym_session *sess = NULL;
@@ -56,6 +57,18 @@ struct crypto_unittest_params {
uint8_t output_buf[TEST_DATA_SIZE] = {0};
uint8_t input_buf[TEST_DATA_SIZE] = {0};
+ /* test case supports op with exponent key only,
+ * Check in PMD feature flag for RSA exponent key type support.
+ */
+ rte_cryptodev_info_get(dev_id, &dev_info);
+ if (!(dev_info.feature_flags &
+ RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP)) {
+ RTE_LOG(INFO, USER1,
+ "Device doesn't support sign op with "
+ "exponent key type. Test Skipped\n");
+ return TEST_SKIPPED;
+ }
+
sess = rte_cryptodev_asym_session_create(sess_mpool);
if (!sess) {
@@ -183,12 +196,25 @@ struct crypto_unittest_params {
struct rte_mempool *op_mpool = ts_params->op_mpool;
struct rte_mempool *sess_mpool = ts_params->session_mpool;
uint8_t dev_id = ts_params->valid_devs[0];
+ struct rte_cryptodev_info dev_info;
struct rte_crypto_asym_op *asym_op = NULL;
struct rte_crypto_op *op = NULL, *result_op = NULL;
struct rte_cryptodev_asym_session *sess = NULL;
int status = TEST_SUCCESS;
uint8_t input_buf[TEST_DATA_SIZE] = {0};
+ /* test case supports op with exponent key only,
+ * Check in PMD feature flag for RSA exponent key type support.
+ */
+ rte_cryptodev_info_get(dev_id, &dev_info);
+ if (!(dev_info.feature_flags &
+ RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP)) {
+ RTE_LOG(INFO, USER1,
+ "Device doesn't support sign op with "
+ "exponent key type. Test Skipped\n");
+ return TEST_SKIPPED;
+ }
+
sess = rte_cryptodev_asym_session_create(sess_mpool);
if (!sess) {
--
1.8.3.1
^ permalink raw reply [flat|nested] 20+ messages in thread
* [dpdk-dev] [PATCH v3 4/4] doc: add rsa key type to feature list
2019-03-28 10:27 [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag Ayuj Verma
` (3 preceding siblings ...)
2019-03-28 10:28 ` [dpdk-dev] [PATCH v3 3/4] app/test: check for key type ff in asym unit test Ayuj Verma
@ 2019-03-28 10:28 ` Ayuj Verma
2019-03-28 10:28 ` Ayuj Verma
2019-03-29 15:01 ` [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag Akhil Goyal
2019-03-29 15:17 ` Akhil Goyal
6 siblings, 1 reply; 20+ messages in thread
From: Ayuj Verma @ 2019-03-28 10:28 UTC (permalink / raw)
To: akhil.goyal
Cc: arkadiuszx.kusztal, Shally Verma, Sunila Sahu,
Kanaka Durga Kotamarthy, Arvind Desai, dev, Ayuj Verma
Add ff description in overview.rst and update
feature support in Openssl PMD feature list
Signed-off-by: Ayuj Verma <ayverma@marvell.com>
Signed-off-by: Shally Verma <shallyv@marvell.com>
---
doc/guides/cryptodevs/features/openssl.ini | 2 ++
doc/guides/cryptodevs/overview.rst | 6 ++++++
2 files changed, 8 insertions(+)
diff --git a/doc/guides/cryptodevs/features/openssl.ini b/doc/guides/cryptodevs/features/openssl.ini
index b9c0bdc..6ddca39 100644
--- a/doc/guides/cryptodevs/features/openssl.ini
+++ b/doc/guides/cryptodevs/features/openssl.ini
@@ -9,6 +9,8 @@ Sym operation chaining = Y
OOP SGL In LB Out = Y
OOP LB In LB Out = Y
Asymmetric crypto = Y
+RSA PRIV OP KEY EXP = Y
+RSA PRIV OP KEY QT = Y
;
; Supported crypto algorithms of the 'openssl' crypto driver.
diff --git a/doc/guides/cryptodevs/overview.rst b/doc/guides/cryptodevs/overview.rst
index 607e758..d7b7141 100644
--- a/doc/guides/cryptodevs/overview.rst
+++ b/doc/guides/cryptodevs/overview.rst
@@ -37,6 +37,12 @@ Supported Feature Flags
which means that Out-of-place operation is supported,
with linear input and output buffers.
+ - "RSA PRIV OP KEY EXP" feature flag means PMD support RSA private key
+ operation (Sign and Decrypt) using exponent key type only.
+
+ - "RSA PRIV OP KEY QT" feature flag means PMD support RSA private key
+ operation (Sign and Decrypt) using quintuple (crt) type key only.
+
Supported Cipher Algorithms
---------------------------
--
1.8.3.1
^ permalink raw reply [flat|nested] 20+ messages in thread
* [dpdk-dev] [PATCH v3 4/4] doc: add rsa key type to feature list
2019-03-28 10:28 ` [dpdk-dev] [PATCH v3 4/4] doc: add rsa key type to feature list Ayuj Verma
@ 2019-03-28 10:28 ` Ayuj Verma
0 siblings, 0 replies; 20+ messages in thread
From: Ayuj Verma @ 2019-03-28 10:28 UTC (permalink / raw)
To: akhil.goyal
Cc: arkadiuszx.kusztal, Shally Verma, Sunila Sahu,
Kanaka Durga Kotamarthy, Arvind Desai, dev, Ayuj Verma
Add ff description in overview.rst and update
feature support in Openssl PMD feature list
Signed-off-by: Ayuj Verma <ayverma@marvell.com>
Signed-off-by: Shally Verma <shallyv@marvell.com>
---
doc/guides/cryptodevs/features/openssl.ini | 2 ++
doc/guides/cryptodevs/overview.rst | 6 ++++++
2 files changed, 8 insertions(+)
diff --git a/doc/guides/cryptodevs/features/openssl.ini b/doc/guides/cryptodevs/features/openssl.ini
index b9c0bdc..6ddca39 100644
--- a/doc/guides/cryptodevs/features/openssl.ini
+++ b/doc/guides/cryptodevs/features/openssl.ini
@@ -9,6 +9,8 @@ Sym operation chaining = Y
OOP SGL In LB Out = Y
OOP LB In LB Out = Y
Asymmetric crypto = Y
+RSA PRIV OP KEY EXP = Y
+RSA PRIV OP KEY QT = Y
;
; Supported crypto algorithms of the 'openssl' crypto driver.
diff --git a/doc/guides/cryptodevs/overview.rst b/doc/guides/cryptodevs/overview.rst
index 607e758..d7b7141 100644
--- a/doc/guides/cryptodevs/overview.rst
+++ b/doc/guides/cryptodevs/overview.rst
@@ -37,6 +37,12 @@ Supported Feature Flags
which means that Out-of-place operation is supported,
with linear input and output buffers.
+ - "RSA PRIV OP KEY EXP" feature flag means PMD support RSA private key
+ operation (Sign and Decrypt) using exponent key type only.
+
+ - "RSA PRIV OP KEY QT" feature flag means PMD support RSA private key
+ operation (Sign and Decrypt) using quintuple (crt) type key only.
+
Supported Cipher Algorithms
---------------------------
--
1.8.3.1
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag
2019-03-28 10:27 [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag Ayuj Verma
` (4 preceding siblings ...)
2019-03-28 10:28 ` [dpdk-dev] [PATCH v3 4/4] doc: add rsa key type to feature list Ayuj Verma
@ 2019-03-29 15:01 ` Akhil Goyal
2019-03-29 15:01 ` Akhil Goyal
2019-03-29 15:17 ` Akhil Goyal
6 siblings, 1 reply; 20+ messages in thread
From: Akhil Goyal @ 2019-03-29 15:01 UTC (permalink / raw)
To: Ayuj Verma
Cc: arkadiuszx.kusztal, Shally Verma, Sunila Sahu,
Kanaka Durga Kotamarthy, Arvind Desai, dev
On 3/28/2019 3:57 PM, Ayuj Verma wrote:
> Some PMDs can support RSA private key operations using CRT
> (quintuple) or exponent key only. Thus add a feature flag
> RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP and
> RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT in PMD to reflect which key
> type is supported to perform rsa private key op.
>
> App should query PMD feature flag to check if specific
> key type is supported and call operation with relevant key type.
>
> Changes in v3:
> - Rebase changes on top of latest unit test application
> - add feature flag description in documentation
>
> Changes in v2:
> - RSA key type feature flags exponenet and quintuple,
> in place of making them part of xform capabilities.
>
> Ayuj Verma (4):
> lib/cryptodev: add rsa priv key feature flag
> crypto/openssl: set rsa private op feature flag
> app/test: check for key type ff in asym unit test
> doc: add rsa key type to feature list
>
> app/test/test_cryptodev_asym.c | 26 ++++++++++++++++++++++++++
> doc/guides/cryptodevs/features/openssl.ini | 2 ++
> doc/guides/cryptodevs/overview.rst | 6 ++++++
> drivers/crypto/openssl/rte_openssl_pmd.c | 4 +++-
> lib/librte_cryptodev/rte_cryptodev.c | 4 ++++
> lib/librte_cryptodev/rte_cryptodev.h | 4 ++++
> 6 files changed, 45 insertions(+), 1 deletion(-)
>
Series- Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
doc patch should be merged in previous patches.
Will do it while merging.
Thanks.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag
2019-03-29 15:01 ` [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag Akhil Goyal
@ 2019-03-29 15:01 ` Akhil Goyal
0 siblings, 0 replies; 20+ messages in thread
From: Akhil Goyal @ 2019-03-29 15:01 UTC (permalink / raw)
To: Ayuj Verma
Cc: arkadiuszx.kusztal, Shally Verma, Sunila Sahu,
Kanaka Durga Kotamarthy, Arvind Desai, dev
On 3/28/2019 3:57 PM, Ayuj Verma wrote:
> Some PMDs can support RSA private key operations using CRT
> (quintuple) or exponent key only. Thus add a feature flag
> RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP and
> RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT in PMD to reflect which key
> type is supported to perform rsa private key op.
>
> App should query PMD feature flag to check if specific
> key type is supported and call operation with relevant key type.
>
> Changes in v3:
> - Rebase changes on top of latest unit test application
> - add feature flag description in documentation
>
> Changes in v2:
> - RSA key type feature flags exponenet and quintuple,
> in place of making them part of xform capabilities.
>
> Ayuj Verma (4):
> lib/cryptodev: add rsa priv key feature flag
> crypto/openssl: set rsa private op feature flag
> app/test: check for key type ff in asym unit test
> doc: add rsa key type to feature list
>
> app/test/test_cryptodev_asym.c | 26 ++++++++++++++++++++++++++
> doc/guides/cryptodevs/features/openssl.ini | 2 ++
> doc/guides/cryptodevs/overview.rst | 6 ++++++
> drivers/crypto/openssl/rte_openssl_pmd.c | 4 +++-
> lib/librte_cryptodev/rte_cryptodev.c | 4 ++++
> lib/librte_cryptodev/rte_cryptodev.h | 4 ++++
> 6 files changed, 45 insertions(+), 1 deletion(-)
>
Series- Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
doc patch should be merged in previous patches.
Will do it while merging.
Thanks.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag
2019-03-28 10:27 [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag Ayuj Verma
` (5 preceding siblings ...)
2019-03-29 15:01 ` [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag Akhil Goyal
@ 2019-03-29 15:17 ` Akhil Goyal
2019-03-29 15:17 ` Akhil Goyal
` (2 more replies)
6 siblings, 3 replies; 20+ messages in thread
From: Akhil Goyal @ 2019-03-29 15:17 UTC (permalink / raw)
To: Ayuj Verma
Cc: arkadiuszx.kusztal, Shally Verma, Sunila Sahu,
Kanaka Durga Kotamarthy, Arvind Desai, dev
On 3/28/2019 3:57 PM, Ayuj Verma wrote:
> Some PMDs can support RSA private key operations using CRT
> (quintuple) or exponent key only. Thus add a feature flag
> RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP and
> RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT in PMD to reflect which key
> type is supported to perform rsa private key op.
>
> App should query PMD feature flag to check if specific
> key type is supported and call operation with relevant key type.
>
> Changes in v3:
> - Rebase changes on top of latest unit test application
> - add feature flag description in documentation
>
> Changes in v2:
> - RSA key type feature flags exponenet and quintuple,
> in place of making them part of xform capabilities.
>
> Ayuj Verma (4):
> lib/cryptodev: add rsa priv key feature flag
> crypto/openssl: set rsa private op feature flag
> app/test: check for key type ff in asym unit test
> doc: add rsa key type to feature list
>
> app/test/test_cryptodev_asym.c | 26 ++++++++++++++++++++++++++
> doc/guides/cryptodevs/features/openssl.ini | 2 ++
> doc/guides/cryptodevs/overview.rst | 6 ++++++
> drivers/crypto/openssl/rte_openssl_pmd.c | 4 +++-
> lib/librte_cryptodev/rte_cryptodev.c | 4 ++++
> lib/librte_cryptodev/rte_cryptodev.h | 4 ++++
> 6 files changed, 45 insertions(+), 1 deletion(-)
>
Applied to dpdk-next-crypto
4th patch squashed to 1st and 2nd.
Also added description for 3rd patch. Please add relevant information in
the description in future.
Thanks.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag
2019-03-29 15:17 ` Akhil Goyal
@ 2019-03-29 15:17 ` Akhil Goyal
2019-03-29 15:20 ` Ayuj Verma
2019-04-03 8:47 ` Akhil Goyal
2 siblings, 0 replies; 20+ messages in thread
From: Akhil Goyal @ 2019-03-29 15:17 UTC (permalink / raw)
To: Ayuj Verma
Cc: arkadiuszx.kusztal, Shally Verma, Sunila Sahu,
Kanaka Durga Kotamarthy, Arvind Desai, dev
On 3/28/2019 3:57 PM, Ayuj Verma wrote:
> Some PMDs can support RSA private key operations using CRT
> (quintuple) or exponent key only. Thus add a feature flag
> RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP and
> RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT in PMD to reflect which key
> type is supported to perform rsa private key op.
>
> App should query PMD feature flag to check if specific
> key type is supported and call operation with relevant key type.
>
> Changes in v3:
> - Rebase changes on top of latest unit test application
> - add feature flag description in documentation
>
> Changes in v2:
> - RSA key type feature flags exponenet and quintuple,
> in place of making them part of xform capabilities.
>
> Ayuj Verma (4):
> lib/cryptodev: add rsa priv key feature flag
> crypto/openssl: set rsa private op feature flag
> app/test: check for key type ff in asym unit test
> doc: add rsa key type to feature list
>
> app/test/test_cryptodev_asym.c | 26 ++++++++++++++++++++++++++
> doc/guides/cryptodevs/features/openssl.ini | 2 ++
> doc/guides/cryptodevs/overview.rst | 6 ++++++
> drivers/crypto/openssl/rte_openssl_pmd.c | 4 +++-
> lib/librte_cryptodev/rte_cryptodev.c | 4 ++++
> lib/librte_cryptodev/rte_cryptodev.h | 4 ++++
> 6 files changed, 45 insertions(+), 1 deletion(-)
>
Applied to dpdk-next-crypto
4th patch squashed to 1st and 2nd.
Also added description for 3rd patch. Please add relevant information in
the description in future.
Thanks.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag
2019-03-29 15:17 ` Akhil Goyal
2019-03-29 15:17 ` Akhil Goyal
@ 2019-03-29 15:20 ` Ayuj Verma
2019-03-29 15:20 ` Ayuj Verma
2019-04-03 8:47 ` Akhil Goyal
2 siblings, 1 reply; 20+ messages in thread
From: Ayuj Verma @ 2019-03-29 15:20 UTC (permalink / raw)
To: Akhil Goyal
Cc: arkadiuszx.kusztal, Shally Verma, Sunila Sahu,
Kanaka Durga Kotamarthy, Arvind Desai, dev
Hi Akhil,
Thanks.
Please add relevant information in the description in future.
Sure will keep this in mind.
Thanks and regards
Ayuj Verma
________________________________
From: Akhil Goyal <akhil.goyal@nxp.com>
Sent: 29 March 2019 20:47:33
To: Ayuj Verma
Cc: arkadiuszx.kusztal@intel.com; Shally Verma; Sunila Sahu; Kanaka Durga Kotamarthy; Arvind Desai; dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag
On 3/28/2019 3:57 PM, Ayuj Verma wrote:
> Some PMDs can support RSA private key operations using CRT
> (quintuple) or exponent key only. Thus add a feature flag
> RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP and
> RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT in PMD to reflect which key
> type is supported to perform rsa private key op.
>
> App should query PMD feature flag to check if specific
> key type is supported and call operation with relevant key type.
>
> Changes in v3:
> - Rebase changes on top of latest unit test application
> - add feature flag description in documentation
>
> Changes in v2:
> - RSA key type feature flags exponenet and quintuple,
> in place of making them part of xform capabilities.
>
> Ayuj Verma (4):
> lib/cryptodev: add rsa priv key feature flag
> crypto/openssl: set rsa private op feature flag
> app/test: check for key type ff in asym unit test
> doc: add rsa key type to feature list
>
> app/test/test_cryptodev_asym.c | 26 ++++++++++++++++++++++++++
> doc/guides/cryptodevs/features/openssl.ini | 2 ++
> doc/guides/cryptodevs/overview.rst | 6 ++++++
> drivers/crypto/openssl/rte_openssl_pmd.c | 4 +++-
> lib/librte_cryptodev/rte_cryptodev.c | 4 ++++
> lib/librte_cryptodev/rte_cryptodev.h | 4 ++++
> 6 files changed, 45 insertions(+), 1 deletion(-)
>
Applied to dpdk-next-crypto
4th patch squashed to 1st and 2nd.
Also added description for 3rd patch. Please add relevant information in
the description in future.
Thanks.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag
2019-03-29 15:20 ` Ayuj Verma
@ 2019-03-29 15:20 ` Ayuj Verma
0 siblings, 0 replies; 20+ messages in thread
From: Ayuj Verma @ 2019-03-29 15:20 UTC (permalink / raw)
To: Akhil Goyal
Cc: arkadiuszx.kusztal, Shally Verma, Sunila Sahu,
Kanaka Durga Kotamarthy, Arvind Desai, dev
Hi Akhil,
Thanks.
Please add relevant information in the description in future.
Sure will keep this in mind.
Thanks and regards
Ayuj Verma
________________________________
From: Akhil Goyal <akhil.goyal@nxp.com>
Sent: 29 March 2019 20:47:33
To: Ayuj Verma
Cc: arkadiuszx.kusztal@intel.com; Shally Verma; Sunila Sahu; Kanaka Durga Kotamarthy; Arvind Desai; dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag
On 3/28/2019 3:57 PM, Ayuj Verma wrote:
> Some PMDs can support RSA private key operations using CRT
> (quintuple) or exponent key only. Thus add a feature flag
> RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP and
> RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT in PMD to reflect which key
> type is supported to perform rsa private key op.
>
> App should query PMD feature flag to check if specific
> key type is supported and call operation with relevant key type.
>
> Changes in v3:
> - Rebase changes on top of latest unit test application
> - add feature flag description in documentation
>
> Changes in v2:
> - RSA key type feature flags exponenet and quintuple,
> in place of making them part of xform capabilities.
>
> Ayuj Verma (4):
> lib/cryptodev: add rsa priv key feature flag
> crypto/openssl: set rsa private op feature flag
> app/test: check for key type ff in asym unit test
> doc: add rsa key type to feature list
>
> app/test/test_cryptodev_asym.c | 26 ++++++++++++++++++++++++++
> doc/guides/cryptodevs/features/openssl.ini | 2 ++
> doc/guides/cryptodevs/overview.rst | 6 ++++++
> drivers/crypto/openssl/rte_openssl_pmd.c | 4 +++-
> lib/librte_cryptodev/rte_cryptodev.c | 4 ++++
> lib/librte_cryptodev/rte_cryptodev.h | 4 ++++
> 6 files changed, 45 insertions(+), 1 deletion(-)
>
Applied to dpdk-next-crypto
4th patch squashed to 1st and 2nd.
Also added description for 3rd patch. Please add relevant information in
the description in future.
Thanks.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag
2019-03-29 15:17 ` Akhil Goyal
2019-03-29 15:17 ` Akhil Goyal
2019-03-29 15:20 ` Ayuj Verma
@ 2019-04-03 8:47 ` Akhil Goyal
2019-04-03 8:47 ` Akhil Goyal
2019-04-03 10:09 ` Ayuj Verma
2 siblings, 2 replies; 20+ messages in thread
From: Akhil Goyal @ 2019-04-03 8:47 UTC (permalink / raw)
To: Ayuj Verma
Cc: arkadiuszx.kusztal, Shally Verma, Sunila Sahu,
Kanaka Durga Kotamarthy, Arvind Desai, dev
On 3/29/2019 8:47 PM, Akhil Goyal wrote:
>
> On 3/28/2019 3:57 PM, Ayuj Verma wrote:
>> Some PMDs can support RSA private key operations using CRT
>> (quintuple) or exponent key only. Thus add a feature flag
>> RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP and
>> RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT in PMD to reflect which key
>> type is supported to perform rsa private key op.
>>
>> App should query PMD feature flag to check if specific
>> key type is supported and call operation with relevant key type.
>>
>> Changes in v3:
>> - Rebase changes on top of latest unit test application
>> - add feature flag description in documentation
>>
>> Changes in v2:
>> - RSA key type feature flags exponenet and quintuple,
>> in place of making them part of xform capabilities.
>>
>> Ayuj Verma (4):
>> lib/cryptodev: add rsa priv key feature flag
>> crypto/openssl: set rsa private op feature flag
>> app/test: check for key type ff in asym unit test
>> doc: add rsa key type to feature list
>>
>> app/test/test_cryptodev_asym.c | 26 ++++++++++++++++++++++++++
>> doc/guides/cryptodevs/features/openssl.ini | 2 ++
>> doc/guides/cryptodevs/overview.rst | 6 ++++++
>> drivers/crypto/openssl/rte_openssl_pmd.c | 4 +++-
>> lib/librte_cryptodev/rte_cryptodev.c | 4 ++++
>> lib/librte_cryptodev/rte_cryptodev.h | 4 ++++
>> 6 files changed, 45 insertions(+), 1 deletion(-)
>>
> Applied to dpdk-next-crypto
>
> 4th patch squashed to 1st and 2nd.
> Also added description for 3rd patch. Please add relevant information in
> the description in future.
>
> Thanks.
Following errors were observed in compiling documentation
Warning generate_overview_table(): Unknown feature 'RSA PRIV OP KEY EXP'
in 'openssl.ini'
Warning generate_overview_table(): Unknown feature 'RSA PRIV OP KEY QT'
in 'openssl.ini'
I corrected these byadding the two features in features/default.ini. -Akhil
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag
2019-04-03 8:47 ` Akhil Goyal
@ 2019-04-03 8:47 ` Akhil Goyal
2019-04-03 10:09 ` Ayuj Verma
1 sibling, 0 replies; 20+ messages in thread
From: Akhil Goyal @ 2019-04-03 8:47 UTC (permalink / raw)
To: Ayuj Verma
Cc: arkadiuszx.kusztal, Shally Verma, Sunila Sahu,
Kanaka Durga Kotamarthy, Arvind Desai, dev
On 3/29/2019 8:47 PM, Akhil Goyal wrote:
>
> On 3/28/2019 3:57 PM, Ayuj Verma wrote:
>> Some PMDs can support RSA private key operations using CRT
>> (quintuple) or exponent key only. Thus add a feature flag
>> RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP and
>> RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT in PMD to reflect which key
>> type is supported to perform rsa private key op.
>>
>> App should query PMD feature flag to check if specific
>> key type is supported and call operation with relevant key type.
>>
>> Changes in v3:
>> - Rebase changes on top of latest unit test application
>> - add feature flag description in documentation
>>
>> Changes in v2:
>> - RSA key type feature flags exponenet and quintuple,
>> in place of making them part of xform capabilities.
>>
>> Ayuj Verma (4):
>> lib/cryptodev: add rsa priv key feature flag
>> crypto/openssl: set rsa private op feature flag
>> app/test: check for key type ff in asym unit test
>> doc: add rsa key type to feature list
>>
>> app/test/test_cryptodev_asym.c | 26 ++++++++++++++++++++++++++
>> doc/guides/cryptodevs/features/openssl.ini | 2 ++
>> doc/guides/cryptodevs/overview.rst | 6 ++++++
>> drivers/crypto/openssl/rte_openssl_pmd.c | 4 +++-
>> lib/librte_cryptodev/rte_cryptodev.c | 4 ++++
>> lib/librte_cryptodev/rte_cryptodev.h | 4 ++++
>> 6 files changed, 45 insertions(+), 1 deletion(-)
>>
> Applied to dpdk-next-crypto
>
> 4th patch squashed to 1st and 2nd.
> Also added description for 3rd patch. Please add relevant information in
> the description in future.
>
> Thanks.
Following errors were observed in compiling documentation
Warning generate_overview_table(): Unknown feature 'RSA PRIV OP KEY EXP'
in 'openssl.ini'
Warning generate_overview_table(): Unknown feature 'RSA PRIV OP KEY QT'
in 'openssl.ini'
I corrected these byadding the two features in features/default.ini. -Akhil
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag
2019-04-03 8:47 ` Akhil Goyal
2019-04-03 8:47 ` Akhil Goyal
@ 2019-04-03 10:09 ` Ayuj Verma
2019-04-03 10:09 ` Ayuj Verma
1 sibling, 1 reply; 20+ messages in thread
From: Ayuj Verma @ 2019-04-03 10:09 UTC (permalink / raw)
To: Akhil Goyal
Cc: arkadiuszx.kusztal, Shally Verma, Sunila Sahu,
Kanaka Durga Kotamarthy, Arvind Desai, dev
Hi Akhil,
Thanks.
Regards
Ayuj Verma
________________________________
From: Akhil Goyal <akhil.goyal@nxp.com>
Sent: 03 April 2019 14:17:11
To: Ayuj Verma
Cc: arkadiuszx.kusztal@intel.com; Shally Verma; Sunila Sahu; Kanaka Durga Kotamarthy; Arvind Desai; dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag
On 3/29/2019 8:47 PM, Akhil Goyal wrote:
>
> On 3/28/2019 3:57 PM, Ayuj Verma wrote:
>> Some PMDs can support RSA private key operations using CRT
>> (quintuple) or exponent key only. Thus add a feature flag
>> RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP and
>> RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT in PMD to reflect which key
>> type is supported to perform rsa private key op.
>>
>> App should query PMD feature flag to check if specific
>> key type is supported and call operation with relevant key type.
>>
>> Changes in v3:
>> - Rebase changes on top of latest unit test application
>> - add feature flag description in documentation
>>
>> Changes in v2:
>> - RSA key type feature flags exponenet and quintuple,
>> in place of making them part of xform capabilities.
>>
>> Ayuj Verma (4):
>> lib/cryptodev: add rsa priv key feature flag
>> crypto/openssl: set rsa private op feature flag
>> app/test: check for key type ff in asym unit test
>> doc: add rsa key type to feature list
>>
>> app/test/test_cryptodev_asym.c | 26 ++++++++++++++++++++++++++
>> doc/guides/cryptodevs/features/openssl.ini | 2 ++
>> doc/guides/cryptodevs/overview.rst | 6 ++++++
>> drivers/crypto/openssl/rte_openssl_pmd.c | 4 +++-
>> lib/librte_cryptodev/rte_cryptodev.c | 4 ++++
>> lib/librte_cryptodev/rte_cryptodev.h | 4 ++++
>> 6 files changed, 45 insertions(+), 1 deletion(-)
>>
> Applied to dpdk-next-crypto
>
> 4th patch squashed to 1st and 2nd.
> Also added description for 3rd patch. Please add relevant information in
> the description in future.
>
> Thanks.
Following errors were observed in compiling documentation
Warning generate_overview_table(): Unknown feature 'RSA PRIV OP KEY EXP'
in 'openssl.ini'
Warning generate_overview_table(): Unknown feature 'RSA PRIV OP KEY QT'
in 'openssl.ini'
I corrected these byadding the two features in features/default.ini. -Akhil
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag
2019-04-03 10:09 ` Ayuj Verma
@ 2019-04-03 10:09 ` Ayuj Verma
0 siblings, 0 replies; 20+ messages in thread
From: Ayuj Verma @ 2019-04-03 10:09 UTC (permalink / raw)
To: Akhil Goyal
Cc: arkadiuszx.kusztal, Shally Verma, Sunila Sahu,
Kanaka Durga Kotamarthy, Arvind Desai, dev
Hi Akhil,
Thanks.
Regards
Ayuj Verma
________________________________
From: Akhil Goyal <akhil.goyal@nxp.com>
Sent: 03 April 2019 14:17:11
To: Ayuj Verma
Cc: arkadiuszx.kusztal@intel.com; Shally Verma; Sunila Sahu; Kanaka Durga Kotamarthy; Arvind Desai; dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag
On 3/29/2019 8:47 PM, Akhil Goyal wrote:
>
> On 3/28/2019 3:57 PM, Ayuj Verma wrote:
>> Some PMDs can support RSA private key operations using CRT
>> (quintuple) or exponent key only. Thus add a feature flag
>> RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP and
>> RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT in PMD to reflect which key
>> type is supported to perform rsa private key op.
>>
>> App should query PMD feature flag to check if specific
>> key type is supported and call operation with relevant key type.
>>
>> Changes in v3:
>> - Rebase changes on top of latest unit test application
>> - add feature flag description in documentation
>>
>> Changes in v2:
>> - RSA key type feature flags exponenet and quintuple,
>> in place of making them part of xform capabilities.
>>
>> Ayuj Verma (4):
>> lib/cryptodev: add rsa priv key feature flag
>> crypto/openssl: set rsa private op feature flag
>> app/test: check for key type ff in asym unit test
>> doc: add rsa key type to feature list
>>
>> app/test/test_cryptodev_asym.c | 26 ++++++++++++++++++++++++++
>> doc/guides/cryptodevs/features/openssl.ini | 2 ++
>> doc/guides/cryptodevs/overview.rst | 6 ++++++
>> drivers/crypto/openssl/rte_openssl_pmd.c | 4 +++-
>> lib/librte_cryptodev/rte_cryptodev.c | 4 ++++
>> lib/librte_cryptodev/rte_cryptodev.h | 4 ++++
>> 6 files changed, 45 insertions(+), 1 deletion(-)
>>
> Applied to dpdk-next-crypto
>
> 4th patch squashed to 1st and 2nd.
> Also added description for 3rd patch. Please add relevant information in
> the description in future.
>
> Thanks.
Following errors were observed in compiling documentation
Warning generate_overview_table(): Unknown feature 'RSA PRIV OP KEY EXP'
in 'openssl.ini'
Warning generate_overview_table(): Unknown feature 'RSA PRIV OP KEY QT'
in 'openssl.ini'
I corrected these byadding the two features in features/default.ini. -Akhil
^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2019-04-03 10:10 UTC | newest]
Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-28 10:27 [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag Ayuj Verma
2019-03-28 10:27 ` Ayuj Verma
2019-03-28 10:28 ` [dpdk-dev] [PATCH v3 1/4] lib/cryptodev: add " Ayuj Verma
2019-03-28 10:28 ` Ayuj Verma
2019-03-28 10:28 ` [dpdk-dev] [PATCH v3 2/4] crypto/openssl: set rsa private op " Ayuj Verma
2019-03-28 10:28 ` Ayuj Verma
2019-03-28 10:28 ` [dpdk-dev] [PATCH v3 3/4] app/test: check for key type ff in asym unit test Ayuj Verma
2019-03-28 10:28 ` Ayuj Verma
2019-03-28 10:28 ` [dpdk-dev] [PATCH v3 4/4] doc: add rsa key type to feature list Ayuj Verma
2019-03-28 10:28 ` Ayuj Verma
2019-03-29 15:01 ` [dpdk-dev] [PATCH v3 0/4] adding rsa priv key feature flag Akhil Goyal
2019-03-29 15:01 ` Akhil Goyal
2019-03-29 15:17 ` Akhil Goyal
2019-03-29 15:17 ` Akhil Goyal
2019-03-29 15:20 ` Ayuj Verma
2019-03-29 15:20 ` Ayuj Verma
2019-04-03 8:47 ` Akhil Goyal
2019-04-03 8:47 ` Akhil Goyal
2019-04-03 10:09 ` Ayuj Verma
2019-04-03 10:09 ` Ayuj Verma
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).