logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

rte_crypto_sm2_op_param

Author

       Generated automatically by Doxygen for DPDK from the source code.

DPDK                                             Version 24.11.2                      rte_crypto_sm2_op_param(3)

Detailed Description

       SM2 operation params.

       Definition at line 654 of file rte_crypto_asym.h.

Field Documentation

enumrte_crypto_asym_op_typeop_type
       Signature generation or verification.

       Definition at line 655 of file rte_crypto_asym.h.

   enumrte_crypto_auth_algorithmhash
       Hash algorithm used in EC op.

       Definition at line 658 of file rte_crypto_asym.h.

   rte_crypto_parammessage
       Pointer to input data

       • to be encrypted for SM2 public encrypt.

       • to be signed for SM2 sign generation.

       • to be authenticated for SM2 sign verification.

       Pointer to output data

       • for  SM2  private  decrypt.  In  this  case the underlying array should have been allocated with enough
         memory to hold plaintext output (at least encrypted text length).  The  message.length  field  will  be
         overwritten by the PMD with the decrypted length.

       Definition at line 661 of file rte_crypto_asym.h.

   rte_crypto_paramcipher
       Pointer to input data

       • to be decrypted for SM2 private decrypt.

       Pointer to output data

       • for SM2 public encrypt. In this case the underlying array should have been allocated with enough memory
         to  hold  ciphertext output (at least X bytes for prime field curve of N bytes and for message M bytes,
         where X = (C1 || C2 || C3) and computed based on SM2 RFC as C1 (1 + N +  N),  C2  =  M,  C3  =  N.  The
         cipher.length field will be overwritten by the PMD with the encrypted length.

       Definition at line 676 of file rte_crypto_asym.h.

   rte_crypto_uintid
       The SM2 id used by signer and verifier.

       Definition at line 691 of file rte_crypto_asym.h.

   rte_crypto_uintk
       The  SM2 per-message secret number, which is an integer in the interval (1, n-1). If the random number is
       generated by the PMD, the 'rte_crypto_param.data' parameter should be set to NULL.

       Definition at line 694 of file rte_crypto_asym.h.

   rte_crypto_uintr
       r component of elliptic curve signature output : for signature generation (of  at  least  N  bytes  where
       prime field length is N bytes) input : for signature verification

       Definition at line 701 of file rte_crypto_asym.h.

   rte_crypto_uints
       s  component  of  elliptic  curve  signature output : for signature generation (of at least N bytes where
       prime field length is N bytes) input : for signature verification

       Definition at line 707 of file rte_crypto_asym.h.

Name

       rte_crypto_sm2_op_param

Synopsis

       #include <rte_crypto_asym.h>

   DataFields
       enum rte_crypto_asym_op_typeop_type
       enum rte_crypto_auth_algorithmhashrte_crypto_parammessagerte_crypto_paramcipherrte_crypto_uintidrte_crypto_uintkrte_crypto_uintrrte_crypto_uints

See Also