__crypto_dh_decode_key(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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

  • -EINVAL if buffer has insufficient size
  • 0 on success

fr fr, that's the whole return vibe.


πŸ¦‹ SEE ALSO


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