rte_crypto_dh_op_param(3)
π rte_crypto_dh_op_param π
ok so bestie, welcome to the rte_crypto_dh_op_param(3) page β yes that's a manual page, from the Library Functions Manual, and yes it's about Diffie-Hellman. Cryptography!! We love her!! π₯ Let's get into it because this struct is lowkey the whole gossip of the key-exchange world.
β¨ 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_type ke_typerte_crypto_uint priv_keyrte_crypto_uint pub_keyrte_crypto_uint shared_secret
π Detailed Description π
Diffie-Hellman Operations params. That's it, that's the vibe β this is the little container that carries your key-exchange stuff around. π«
Note: β so there's literally a note here in the original and it's just a colon : with nothing after it π bestie it's giving unfinished thought. Nothing to see, moving on π
It's defined at line 503 of the file rte_crypto_asym.h. Slay, we stan a specific line number. π
π Field Documentation π
π§ enum rte_crypto_asym_ke_type ke_type
Key exchange operation type β like, which flavor of key exchange are we doing right now. Defined at line 504 of the file rte_crypto_asym.h. β¨
π¦ rte_crypto_uint priv_key
ok so this one has a whole personality depending on context, listen:
- Output β the generated private key, when
ke_typeisRTE_CRYPTO_ASYM_KE_PRIV_KEY_GENERATE. - Input β the private key, when
ke_typeis one of:RTE_CRYPTO_ASYM_KE_PUB_KEY_GENERATE,RTE_CRYPTO_ASYM_KE_SHARED_SECRET_COMPUTE.
And the special case that lives in my head rent free: if priv_key.length is 0 and ke_type is set with RTE_CRYPTO_ASYM_KE_PUB_KEY_GENERATE, then the CSRNG capable device will generate a private key and use it for public key generation. Like it just does it for you. main character energy fr fr. π
Defined at line 506 of the file rte_crypto_asym.h.
π rte_crypto_uint pub_key
- Output β the 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.
So sometimes she's yours, sometimes she's your bestie's. Depends on the ke_type vibe check. π
Defined at line 520 of the file rte_crypto_asym.h.
π rte_crypto_uint shared_secret
Output β the calculated shared secret, when ke_type is RTE_CRYPTO_ASYM_KE_SHARED_SECRET_COMPUTE. This is the moment we've all been waiting for, the whole point of the operation, the finale, the ate-and-left-no-crumbs. π₯
Defined at line 528 of the file rte_crypto_asym.h.
π Author π
Generated automatically by Doxygen for DPDK from the source code. Not a human, just a robot doing its little robot thing π€π
ok that's the page!! mwah, go encrypt something π«Ά
sign-off time bestie: this iconic little page comes courtesy of DPDK, Version 26.03.0 β no cap, that's the version, go forth and Diffie-Hellman responsibly ππβ¨
π¦ where this page comes from
- nixos 26.05: dpdk 26.03
- nixpkgs unstable: dpdk 26.03
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms