DPDK 22.11.6
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
 
struct rte_crypto_rsa_padding padding
 

Detailed Description

RSA operation params

Definition at line 400 of file rte_crypto_asym.h.

Field Documentation

◆ op_type

Type of RSA operation for transform

Examples
examples/fips_validation/main.c.

Definition at line 401 of file rte_crypto_asym.h.

◆ 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.
Examples
examples/fips_validation/main.c.

Definition at line 404 of file rte_crypto_asym.h.

◆ 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.

When RTE_CRYPTO_RSA_PADDING_NONE and RTE_CRYPTO_ASYM_OP_VERIFY selected, this is an output of decrypted signature.

Definition at line 420 of file rte_crypto_asym.h.

◆ 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.
Examples
examples/fips_validation/main.c.

Definition at line 436 of file rte_crypto_asym.h.

◆ padding

struct rte_crypto_rsa_padding padding

RSA padding information

Examples
examples/fips_validation/main.c.

Definition at line 449 of file rte_crypto_asym.h.


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