asymmetric_..._v3_hashless(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 be NULL, 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 least sizeof(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