---
name: "rte_crypto_dh_op_param"
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_dh_op_param"
---

# rte\_crypto\_dh\_op\_param(3)

## NAME

rte\_crypto\_dh\_op\_param

## SYNOPSIS

`#include <rte_crypto_asym.h>`

### Data Fields

enum **rte\_crypto\_asym\_ke\_type** **ke\_type**\
 **rte\_crypto\_uint** **priv\_key**\
 **rte\_crypto\_uint** **pub\_key**\
 **rte\_crypto\_uint** **shared\_secret**\

## Detailed Description

Diffie-Hellman Operations params.

**Note**

:

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

## Field Documentation

### enum rte\_crypto\_asym\_ke\_type ke\_type

Key exchange operation type

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

### rte\_crypto\_uint priv\_key

Output - generated private key when ke\_type is RTE\_CRYPTO\_ASYM\_KE\_PRIV\_KEY\_GENERATE.

Input - private key when ke\_type is one of: RTE\_CRYPTO\_ASYM\_KE\_PUB\_KEY\_GENERATE, RTE\_CRYPTO\_ASYM\_KE\_SHARED\_SECRET\_COMPUTE.

In case priv\_key.length is 0 and ke\_type is set with RTE\_CRYPTO\_ASYM\_KE\_PUB\_KEY\_GENERATE, CSRNG capable device will generate a private key and use it for public key generation.

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

### rte\_crypto\_uint pub\_key

Output - generated public key when ke\_type is RTE\_CRYPTO\_ASYM\_KE\_PUB\_KEY\_GENERATE.

Input - peer's public key when ke\_type is RTE\_CRYPTO\_ASYM\_KE\_SHARED\_SECRET\_COMPUTE.

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

### rte\_crypto\_uint shared\_secret

Output - calculated shared secret when ke\_type is RTE\_CRYPTO\_ASYM\_KE\_SHARED\_SECRET\_COMPUTE.

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

## Author

Generated automatically by Doxygen for DPDK from the source code.
