rte_crypto_dh_op_param(3)
๐ rte_crypto_dh_op_param ๐
okay so welcome bestie, you're reading the rte_crypto_dh_op_param(3) page from the DPDK library functions manual, and it's literally just the vibe breakdown of one struct. it's giving "short but important", and we're gonna go through every single field together ๐ซถ
๐ธ NAME ๐ธ
rte_crypto_dh_op_param โ the struct that holds all your Diffie-Hellman operation params โจ
๐ SYNOPSIS ๐
#include <rte_crypto_asym.h>
โจ Data Fields โจ
enum rte_crypto_asym_ke_typeke_typerte_crypto_uintpriv_keyrte_crypto_uintpub_keyrte_crypto_uintshared_secret
๐ Detailed Description ๐
Diffie-Hellman Operations params, periodt. that's the whole summary, no notes app essay needed ๐
Note โ bestie the note here is literally just a : and nothing else. that's it. that's the note. ๐
it lives at Definition line 503 of file rte_crypto_asym.h.
๐ Field Documentation ๐
๐ enum rte_crypto_asym_ke_type ke_type
Key exchange operation type. like, which move are we making in this exchange, yk?
Definition line 504 of file rte_crypto_asym.h.
๐ฆ rte_crypto_uint priv_key
okay this one is doing double duty depending on the vibe of ke_type, so pay attention bestie:
- Output โ your generated private key, but only when
ke_typeisRTE_CRYPTO_ASYM_KE_PRIV_KEY_GENERATE. - Input โ your private key when
ke_typeis one of:
RTE_CRYPTO_ASYM_KE_PUB_KEY_GENERATE
RTE_CRYPTO_ASYM_KE_SHARED_SECRET_COMPUTE
and here's the lil plot twist ๐ซข in case priv_key.length is 0 and ke_type is set with RTE_CRYPTO_ASYM_KE_PUB_KEY_GENERATE, a CSRNG capable device will generate a private key and use it for public key generation. so it's lowkey doing the work for you, iconic behaviour honestly.
Definition line 506 of file rte_crypto_asym.h.
๐ rte_crypto_uint pub_key
- Output โ your generated public key, when
ke_typeisRTE_CRYPTO_ASYM_KE_PUB_KEY_GENERATE. - Input โ the peer's public key, when
ke_typeisRTE_CRYPTO_ASYM_KE_SHARED_SECRET_COMPUTE. yes you need their key, it's a whole two-player game ๐ฎ
Definition line 520 of file rte_crypto_asym.h.
๐ง rte_crypto_uint shared_secret
Output โ the calculated shared secret, and it only shows up when ke_type is RTE_CRYPTO_ASYM_KE_SHARED_SECRET_COMPUTE. this is the moment, the main character field, the payoff ๐ฅ
Definition line 528 of file rte_crypto_asym.h.
โญ Author โญ
Generated automatically by Doxygen for DPDK from the source code. so no human wrote this by hand, shoutout to the robot ๐ซก
and that's the whole page bestie, you ate it ๐
๐ธโจ โ this was rte_crypto_dh_op_param from DPDK, Version 25.11.3, mwah, go forth and compute your shared secrets responsibly ๐๐๐
๐ฆ where this page comes from
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 ยท BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 ยท BSD-3-Clause
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms