---
name: "rte_crypto_rsa_padding"
section: "3"
platform: "linux"
package: "dpdk-doc"
version: "24.11.4-0+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rte_crypto_rsa_padding"
---

# rte\_crypto\_rsa\_padding(3)

## NAME

rte\_crypto\_rsa\_padding

## SYNOPSIS

`#include <rte_crypto_asym.h>`

### Data Fields

enum **rte\_crypto\_rsa\_padding\_type** **type**\
 enum **rte\_crypto\_auth\_algorithm** **hash**\
 enum **rte\_crypto\_auth\_algorithm** **mgf1hash**\
 uint16\_t **pss\_saltlen**\
 **rte\_crypto\_param** **oaep\_label**\

## Detailed Description

RSA padding type

Definition at line **257** of file **rte\_crypto\_asym.h**.

## Field Documentation

### enum rte\_crypto\_rsa\_padding\_type type

RSA padding scheme to be used for transform

Definition at line **258** of file **rte\_crypto\_asym.h**.

### enum rte\_crypto\_auth\_algorithm hash

RSA padding hash algorithm Valid hash algorithms are: MD5, SHA1, SHA224, SHA256, SHA384, SHA512

When a specific padding type is selected, the following rules apply:

- •

  RTE\_CRYPTO\_RSA\_PADDING\_NONE: This field is ignored by the PMD

- •

  RTE\_CRYPTO\_RSA\_PADDING\_PKCS1\_5: When signing an operation this field is used to determine value of the DigestInfo structure, therefore specifying which algorithm was used to create the message digest. When doing encryption/decryption this field is ignored for this padding type.

- •

  RTE\_CRYPTO\_RSA\_PADDING\_OAEP This field shall be set with the hash algorithm used in the padding scheme

- •

  RTE\_CRYPTO\_RSA\_PADDING\_PSS This field shall be set with the hash algorithm used in the padding scheme (and to create the input message digest)

Definition at line **260** of file **rte\_crypto\_asym.h**.

### enum rte\_crypto\_auth\_algorithm mgf1hash

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

Definition at line **285** of file **rte\_crypto\_asym.h**.

### uint16\_t pss\_saltlen

RSA PSS padding salt length

Used only when RTE\_CRYPTO\_RSA\_PADDING\_PSS padding is selected, otherwise ignored.

Definition at line **293** of file **rte\_crypto\_asym.h**.

### rte\_crypto\_param oaep\_label

RSA OAEP padding optional label

Used only when RTE\_CRYPTO\_RSA\_PADDING\_OAEP padding is selected, otherwise ignored. If label.data == NULL, a default label (empty string) is used.

Definition at line **300** of file **rte\_crypto\_asym.h**.

## Author

Generated automatically by Doxygen for DPDK from the source code.
