DPDK  19.11.14
Data Fields
rte_crypto_rsa_op_param Struct Reference

#include <rte_crypto_asym.h>

Data Fields

enum rte_crypto_asym_op_type op_type
 
rte_crypto_param message
 
rte_crypto_param cipher
 
rte_crypto_param sign
 
enum rte_crypto_rsa_padding_type pad
 
enum rte_crypto_auth_algorithm md
 
enum rte_crypto_auth_algorithm mgf1md
 

Detailed Description

RSA operation params

Definition at line 386 of file rte_crypto_asym.h.

Field Documentation

◆ op_type

Type of RSA operation for transform

Definition at line 387 of file rte_crypto_asym.h.

◆ message

rte_crypto_param message

Pointer to input data

  • to be encrypted for RSA public encrypt.
  • to be signed for RSA sign generation.
  • to be authenticated for RSA sign verification.

Pointer to output data

  • for RSA private decrypt. In this case the underlying array should have been allocated with enough memory to hold plaintext output (i.e. must be at least RSA key size). The message.length field should be 0 and will be overwritten by the PMD with the decrypted length.

All data is in Octet-string network byte order format.

Definition at line 390 of file rte_crypto_asym.h.

◆ cipher

rte_crypto_param cipher

Pointer to input data

  • to be decrypted for RSA private decrypt.

Pointer to output data

  • for RSA public encrypt. In this case the underlying array should have been allocated with enough memory to hold ciphertext output (i.e. must be at least RSA key size). The cipher.length field should be 0 and will be overwritten by the PMD with the encrypted length.

All data is in Octet-string network byte order format.

Definition at line 408 of file rte_crypto_asym.h.

◆ sign

rte_crypto_param sign

Pointer to input data

  • to be verified for RSA public decrypt.

Pointer to output data

  • for RSA private encrypt. In this case the underlying array should have been allocated with enough memory to hold signature output (i.e. must be at least RSA key size). The sign.length field should be 0 and will be overwritten by the PMD with the signature length.

All data is in Octet-string network byte order format.

Definition at line 423 of file rte_crypto_asym.h.

◆ pad

RSA padding scheme to be used for transform

Definition at line 438 of file rte_crypto_asym.h.

◆ md

Hash algorithm to be used for data hash if padding scheme is either OAEP or PSS. Valid hash algorithms are: MD5, SHA1, SHA224, SHA256, SHA384, SHA512

Definition at line 441 of file rte_crypto_asym.h.

◆ mgf1md

Hash algorithm to be used for mask generation if padding scheme is either OAEP or PSS. If padding scheme is unspecified data hash algorithm is used for mask generation. Valid hash algorithms are: MD5, SHA1, SHA224, SHA256, SHA384, SHA512

Definition at line 448 of file rte_crypto_asym.h.


The documentation for this struct was generated from the following file: