RTE_CRYPTO_ECDH_OP_PARAM(3)
β¨ rte_crypto_ecdh_op_param β¨
okay bestie, so this is a page from the Library Functions Manual β section 3, the "these are C library functions/structs" zone β and today's main character is rte_crypto_ecdh_op_param π
πΈ NAME πΈ
rte_crypto_ecdh_op_param β no cap, that's the whole name, it's just a struct and it's serving exactly what it says on the tin π«Ά
π SYNOPSIS π
#include <rte_crypto_asym.h>
Data Fields
enum rte_crypto_asym_ke_type ke_typerte_crypto_uint priv_keystruct rte_crypto_ec_point pub_keystruct rte_crypto_ec_point shared_secret
π Detailed Description π
Elliptic Curve Diffie-Hellman Operations params. like that's literally it bestie, this struct is the lil suitcase you hand to the crypto device so it knows what ECDH thing you want it to do π₯
its whole definition lives at line 538 of the file rte_crypto_asym.h π
π¦ Field Documentation π¦
π enum rte_crypto_asym_ke_type ke_type
Key exchange operation type. this is the field that tells everyone else what mood we're in β which key exchange op we're actually doing β¨
definition? line 539 of rte_crypto_asym.h, periodt π
β rte_crypto_uint priv_key
okay so this one is doing double duty depending on the vibe, listen:
- Output β the generated private key when
ke_typeisRTE_CRYPTO_ASYM_KE_PRIVATE_KEY_GENERATEπ - Input β the private key when
ke_typeis one of:RTE_CRYPTO_ASYM_KE_PUBLIC_KEY_GENERATERTE_CRYPTO_ASYM_KE_SHARED_SECRET_COMPUTE
and here's the iconic part π β in case priv_key.length is 0 and ke_type is set with RTE_CRYPTO_ASYM_KE_PUBLIC_KEY_GENERATE, a CSRNG capable device will generate the private key and use it for public key generation. literally the device said "i gotchu bestie, i'll make the key myself" π
definition at line 541 of rte_crypto_asym.h π
π§ struct rte_crypto_ec_point pub_key
- Output β the generated public key when
ke_typeisRTE_CRYPTO_ASYM_KE_PUBLIC_KEY_GENERATEβ¨ - Input β the peer's public key, when
ke_typeis one of:RTE_CRYPTO_ASYM_KE_SHARED_SECRET_COMPUTERTE_CRYPTO_ASYM_KE_EC_PUBLIC_KEY_VERIFY
so sometimes it's your key coming out, sometimes it's their key going in β main character energy either way π
definition at line 555 of rte_crypto_asym.h π
π«Ά struct rte_crypto_ec_point shared_secret
Output β the calculated shared secret when ke_type is RTE_CRYPTO_ASYM_KE_SHARED_SECRET_COMPUTE. this is the payoff, the moment, the slay π
definition at line 564 of rte_crypto_asym.h π
π Author π
Generated automatically by Doxygen for DPDK from the source code. not a human writing this, just doxygen doing its lil thing π
ngl the whole struct is just four fields and a dream, but every single one of them matters. don't skip a field, bestie, the crypto will not forgive you π
and that's the page π it came from DPDK, Version 25.11.3, under the rte_crypto_ecdh_op_param(3) manual name β mwah, go generate some keys, ily, bye π¦πΈβ¨
π¦ 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