[dpdk-dev] [PATCH 0/3] adding op-type crt sign and decrypt

Kusztal, ArkadiuszX arkadiuszx.kusztal at intel.com
Tue Feb 12 12:36:33 CET 2019



> -----Original Message-----
> From: Shally Verma [mailto:shallyv at marvell.com]
> Sent: Tuesday, February 12, 2019 12:19 PM
> To: Kusztal, ArkadiuszX <arkadiuszx.kusztal at intel.com>; Ayuj Verma
> <ayverma at marvell.com>; Trahe, Fiona <fiona.trahe at intel.com>
> Cc: akhil.goyal at nxp.com; Kanaka Durga Kotamarthy
> <kkotamarthy at marvell.com>; Sunila Sahu <ssahu at marvell.com>;
> dev at dpdk.org
> Subject: RE: [PATCH 0/3] adding op-type crt sign and decrypt
> 
> Hi Arek
> 
> >-----Original Message-----
> >From: Kusztal, ArkadiuszX <arkadiuszx.kusztal at intel.com>
> >Sent: 12 February 2019 16:42
> >To: Shally Verma <shallyv at marvell.com>; Ayuj Verma
> ><ayverma at marvell.com>; Trahe, Fiona <fiona.trahe at intel.com>
> >Cc: akhil.goyal at nxp.com; Kanaka Durga Kotamarthy
> ><kkotamarthy at marvell.com>; Sunila Sahu <ssahu at marvell.com>;
> >dev at dpdk.org
> >Subject: RE: [PATCH 0/3] adding op-type crt sign and decrypt
> >
> >Hi Shally, Ayuj
> >
> >Answers with [AK]
> >
> >> -----Original Message-----
> >> From: Shally Verma [mailto:shallyv at marvell.com]
> >> Sent: Tuesday, February 12, 2019 6:27 AM
> >> To: Kusztal, ArkadiuszX <arkadiuszx.kusztal at intel.com>; Ayuj Verma
> >> <ayverma at marvell.com>; Trahe, Fiona <fiona.trahe at intel.com>
> >> Cc: akhil.goyal at nxp.com; Kanaka Durga Kotamarthy
> >> <kkotamarthy at marvell.com>; Sunila Sahu <ssahu at marvell.com>;
> >> dev at dpdk.org
> >> Subject: RE: [PATCH 0/3] adding op-type crt sign and decrypt
> >>
> >> HI Arek,
> >>
> >> From: Kusztal, ArkadiuszX <arkadiuszx.kusztal at intel.com>
> >> Sent: 11 February 2019 17:11
> >> To: Ayuj Verma <ayverma at marvell.com>; Trahe, Fiona
> >> <fiona.trahe at intel.com>; Shally Verma <shallyv at marvell.com>
> >> Cc: akhil.goyal at nxp.com
> >> Subject: [EXT] RE: [PATCH 0/3] adding op-type crt sign and decrypt
> >>
> >> External Email
> >> ________________________________________
> >> Hi Ayuj,
> >>
> >> Few comments from me.
> >>
> >> Some PMDs can only support RSA private key operations using CRT keys
> >> (quintuple) only. Thus it is required to add in PMD RSA xform
> >> capability which key type is supported to perform sign and decrypt ops.
> >>
> >>
> >> Thus add an another op_type RTE_CRYPTO_OP_TYPE_SIGN_CRT and
> >> RTE_CRYPTO_OP_TYPE_DECRYPT_CRT, which would mean perform an
> private
> >> key op using CRT keys (quintuple) only.
> >> [AK] - What would be the purpose of enum rte_crypto_rsa_priv_key_type
> >> key_type in RSA XFORM then?
> >>
> >> [Shally] PMDs, like openssl, can support private key ops with both
> >> key type i.e. one can invoke RSA_Sign() with quintuple keys or exponent
> keys.
> >> Openssl in its capability would reflect it support ops with both key types.
> >> that's why key_type is still required in xform.
> >
> >[AK] But still I wonder if we could not just use this enum to distinguish
> between crt and mod exp rsa?
> >I am not very keen on adding SIGN_CRT op type as it is RSA only.
> >Another option would be to add flags to rsa op like uint64_t flags;
> [Shally] Ok .. you mean as feature flag? Example,
> RTE_CRYPTODEV_ASYM_FF_RSA_PRIV_KEY_OP_CRT?
[AK] Yes.
> 
> Thanks
> Shally
> ...
> >> Regards,
> >> Arek


More information about the dev mailing list