crypto_sig_sign(9)
π crypto_sig_sign(9) β Kernel API Manual
okay so bestie, welcome to the Kernel API Manual page for crypto_sig_sign, and honestly? it's giving "small function, big main character energy" β¨
β¨ NAME β¨
crypto_sig_sign β Invoke signing operation ποΈ
πΈ SYNOPSIS πΈ
int crypto_sig_sign (struct crypto_sig *tfm , const void *src , unsigned
int slen , void *dst , unsigned int dlen );
π ARGUMENTS π
tfmβ the signature tfm handle, and no you can't just manifest one into existence, it's allocated withcrypto_alloc_sigπ«Άsrcβ source bufferslenβ source lengthdstβ destination obuffer (yes, "obuffer", that's literally what it says, I'm not fixing it π)dlenβ destination length
π¦ DESCRIPTION π¦
This function invokes the specific signing operation for a given algorithm. periodt. that's the whole vibe β you hand it a tfm, it goes and does the signing thing for whichever algorithm that tfm is about π
β RETURN β
Signature size on success π β and an error code in case of error π (so, like, check it, bestie, fr fr)
π 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_verify(9)crypto_sig_set_pubkey(9)crypto_sig_set_privkey(9)
lowkey go read all of those too, they're the friend group and this page is nothing without them π§π
and that's a wrap! this iconic little page lives in ./include/crypto and it's stamped October 2026 β bye bestie, slay your signing π
π₯π
π¦ 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