Skip to content

Commit 6d66f08

Browse files
arekk67Akhil Goyal
authored andcommitted
cryptodev: reorder structures in asym crypto header
Asymmetric-crypto header has a simple structure that allows to keep logically separate blocks together. Therefore, xforms, ops, and generic structs may be appropriately ordered. This patch moves sm2-op structs to be placed along other algorithms-op structs. Signed-off-by: Arkadiusz Kusztal <[email protected]> Acked-by: Akhil Goyal <[email protected]>
1 parent e17a4a8 commit 6d66f08

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

lib/cryptodev/rte_crypto_asym.h

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -638,40 +638,6 @@ struct rte_crypto_ecpm_op_param {
638638
/**< Scalar to multiply the input point */
639639
};
640640

641-
/**
642-
* Asymmetric crypto transform data
643-
*
644-
* Structure describing asym xforms.
645-
*/
646-
struct rte_crypto_asym_xform {
647-
struct rte_crypto_asym_xform *next;
648-
/**< Pointer to next xform to set up xform chain.*/
649-
enum rte_crypto_asym_xform_type xform_type;
650-
/**< Asymmetric crypto transform */
651-
652-
union {
653-
struct rte_crypto_rsa_xform rsa;
654-
/**< RSA xform parameters */
655-
656-
struct rte_crypto_modex_xform modex;
657-
/**< Modular Exponentiation xform parameters */
658-
659-
struct rte_crypto_modinv_xform modinv;
660-
/**< Modular Multiplicative Inverse xform parameters */
661-
662-
struct rte_crypto_dh_xform dh;
663-
/**< DH xform parameters */
664-
665-
struct rte_crypto_dsa_xform dsa;
666-
/**< DSA xform parameters */
667-
668-
struct rte_crypto_ec_xform ec;
669-
/**< EC xform parameters, used by elliptic curve based
670-
* operations.
671-
*/
672-
};
673-
};
674-
675641
/**
676642
* SM2 operation capabilities
677643
*/
@@ -746,6 +712,40 @@ struct rte_crypto_sm2_op_param {
746712
*/
747713
};
748714

715+
/**
716+
* Asymmetric crypto transform data
717+
*
718+
* Structure describing asym xforms.
719+
*/
720+
struct rte_crypto_asym_xform {
721+
struct rte_crypto_asym_xform *next;
722+
/**< Pointer to next xform to set up xform chain.*/
723+
enum rte_crypto_asym_xform_type xform_type;
724+
/**< Asymmetric crypto transform */
725+
726+
union {
727+
struct rte_crypto_rsa_xform rsa;
728+
/**< RSA xform parameters */
729+
730+
struct rte_crypto_modex_xform modex;
731+
/**< Modular Exponentiation xform parameters */
732+
733+
struct rte_crypto_modinv_xform modinv;
734+
/**< Modular Multiplicative Inverse xform parameters */
735+
736+
struct rte_crypto_dh_xform dh;
737+
/**< DH xform parameters */
738+
739+
struct rte_crypto_dsa_xform dsa;
740+
/**< DSA xform parameters */
741+
742+
struct rte_crypto_ec_xform ec;
743+
/**< EC xform parameters, used by elliptic curve based
744+
* operations.
745+
*/
746+
};
747+
};
748+
749749
/**
750750
* Asymmetric Cryptographic Operation.
751751
*

0 commit comments

Comments
 (0)