__crypto_dh_decode_key(9)
π NAME
hey bestie, welcome to the __crypto_dh_decode_key(9) page β it's the kernel API manual, and today's main character is __crypto_dh_decode_key, which decodes a private key without parameter checks. slay.
β¨ SYNOPSIS
int __crypto_dh_decode_key (const char *buf , unsigned int len , struct dh *params );
π«Ά ARGUMENTS
bufβ Buffer holding a packet key that should be decoded. yes bestie, that's the key packet.lenβ Length of the packet private key buffer. the size of the whole situation.paramsβ Buffer allocated by the caller that is filled with the unpacked DH private key. you bring the buffer, it gets filled with the unpacked key. iconic.
π DESCRIPTION
okay so this is an internal function, and it provides the same services as the exported crypto_dh_decode_key, but without any of those basic parameter checks that the latter conducts. literally the same job, minus the checks. no cap.
πΈ RETURN
-EINVALif buffer has insufficient size0on success
fr fr, that's the whole return vibe.
π¦ SEE ALSO
- Kernel file
./include/crypto/dh.h DH Helper Functions(9)struct dh(9)crypto_dh_key_len(9)crypto_dh_encode_key(9)crypto_dh_decode_key(9)
kisses bestie, this page is brought to you by ./include/crypto in October 2026, and it's literally __crypto_dh_decode_key(9) π
β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms