crypto_sig_maxsize(9)
π NAME π
okay so bestie, this is crypto_sig_maxsize(9) straight from the Kernel API Manual β and it does exactly what it says: crypto_sig_maxsize β get the maximum signature size. slay. π
β¨ SYNOPSIS β¨
it's giving:
unsigned int crypto_sig_maxsize (struct crypto_sig *tfm );
π ARGUMENTS π
tfmβ the signature tfm handle, allocated withcrypto_alloc_sig. that's the whole argument, bestie π«Ά
π¦ DESCRIPTION π¦
So this function returns the maximum signature size in bytes. iconic behavior, honestly β¨
But listen: it assumes that the key is already set in the transformation. If you call this function without a setkey, or with a failed setkey, you may end up in a NULL dereference. not me warning you dramatically, but ππ that is a real yikes, so set your key first, 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_sign(9)crypto_sig_verify(9)crypto_sig_set_pubkey(9)crypto_sig_set_privkey(9)
π and that's the vibe check, bestie β source/version: ./include/crypto, dated October 2026, signing off as crypto_sig_maxsize(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