crypto_sig_set_privkey(9)
π 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 π
- Kernel file
./include/crypto/sig.h struct crypto_sig(9)struct sig_alg(9)- Generic Public Key Signature API(9)
crypto_alloc_sig(9)crypto_free_sig(9)crypto_sig_keysize(9)crypto_sig_digestsize(9)crypto_sig_maxsize(9)crypto_sig_sign(9)crypto_sig_verify(9)crypto_sig_set_pubkey(9)
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
- 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