asymmetric_..._v3_hashless(9)
π asymmetric_..._v3_hashless(9) β from the Kernel API Manual π
okay bestie, so this is a page about a kernel function that lives in the Kernel API Manual, and honestly? it's giving "niche but iconic". the star of the show is asymmetric_verify_v3_hashless, and its whole personality is doing hashless signature verification on sigv3. no hash, no problem, periodt. β¨
πΈ NAME πΈ
asymmetric_verify_v3_hashless β literally just use hashless signature verification on sigv3. that's it, that's the vibe. π
π¦ SYNOPSIS π¦
int asymmetric_verify_v3_hashless (struct key *key , const struct
public_key *pk , const char *encoding , const char *sig , int siglen ,
u8 algo , const u8 *digest );
like, seven whole arguments, she's high maintenance but she delivers π«Ά
β¨ ARGUMENTS β¨
keyβ the key you're using to verify that signature, bestie. heads up: the caller must free it, so don't leave it hanging πpkβ the associated public key. this one must not beNULL, no cap, not even a little bit.encodingβ the encoding that the key type uses. whatever that key type's whole deal is πsigβ the xattr signature. yes, the extended-attribute one πsiglenβ the length of that xattr signature. it must be at leastsizeof(struct signature_v2_hdr)β too short and it's a no from her πalgoβ the hash algorithm, typed as[enum hash_algo]. and listen, the caller must ensure it's a valid value β she trusts you, don't make it weird πdigestβ the file digest π
π DESCRIPTION π
so what actually happens? she creates an ima_file_id structure and then uses it for signature verification directly. that's the whole move. main character energy, no detours β¨
and like, this is exactly the vibe you want for ML-DSA in pure mode, for example π₯ β yes that's a real use case and yes she ate.
π§ SEE ALSO π§
- the kernel file
./security/integrity/digsig_asymmetric.cβ go read the source, iykyk π asymmetric_verify_common(9)β her sibling, also iconic π
ngl this one's short and sweet β but every arg matters, so pls don't skip the "caller must free it" part, your memory will thank you ππ«Ά
and that's the whole page, bestie! brought to you by ./security/integrity, dated October 2026 β mwah, slay, bye ππβ
π¦ 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