crypto_sig_set_privkey(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– crypto_sig_set_privkey(9) πŸ’–

okay so bestie, welcome to the crypto_sig_set_privkey page from the Kernel API Manual β€” section 9, kernel-space girlies only ✨ this is where you hand the kernel your private key and let the algorithm do its little decoding ritual πŸŽ€


✨ NAME ✨

crypto_sig_set_privkey β€” literally just invoke set private key operation πŸ’… that's the whole vibe.


🌸 SYNOPSIS 🌸

int crypto_sig_set_privkey (struct crypto_sig *tfm , const void *key ,
unsigned int keylen );

no cap, that's the whole signature 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • tfm β€” your tfm handle, the main character of this whole operation πŸ‘‘
  • key β€” the BER encoded private key, algo OID, paramlen, BER encoded parameters β€” yes all of that, it's a whole package deal 🎁
  • keylen β€” length of the key, and not including other data, so don't be out here counting the extras fr fr πŸ™ˆ

πŸ’œ DESCRIPTION πŸ’œ

so what this function does is invoke the algorithm specific set key function β€” and that one is the one that actually knows how to decode and interpret the encoded key and parameters 🧚 lowkey iconic delegation, honestly ✨


⭐ RETURN ⭐

zero on success πŸŽ‰ and an error code in case of error πŸ’€ that's it, that's the deal.

no cap: 0 = slay, anything else = vibe check failed 😭

🌈 SEE ALSO 🌈

all the siblings, go read them too, iykyk πŸ“šπŸ’…


that's the page, bestie β€” brought to you by ./include/crypto πŸ’–, dated October 2026 πŸ—“οΈ, and yes the name up top is still crypto_sig_set_privkey(9) in case you forgot already 😭🫢

πŸ“¦ where this page comes from