asymmetric_verify_common(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– asymmetric_verify_common(9) πŸ’–

okay so bestie, this one comes from the Kernel API Manual, and it's the shared verify function for sigv2 and sigv3. no cap, it's giving common-code energy. πŸ’…

🌸 NAME 🌸

asymmetric_verify_common β€” sigv2 and sigv3 common verify function. literally the common verify girlie for both. periodt. ✨

✨ SYNOPSIS ✨

int asymmetric_verify_common (const struct key *key , const struct
public_key *pk , const char *sig , int siglen , const char *data , int
datalen );

The return type is int, and the cast of characters is right below. πŸ‘‘

πŸŽ€ ARGUMENTS πŸŽ€

  • key β€” the key to use for signature verification; caller must free it. yes, you own the cleanup, bestie β€” don't ghost it. 🫢
  • pk β€” the associated public key; must not be NULL. this one is non-negotiable, fr fr. πŸ’€
  • sig β€” the xattr signature. that's the signature we're checking. 🌸
  • siglen β€” the length of the xattr signature; must be at least sizeof(struct signature_v2_hdr). lowkey an important size check, don't skip it. πŸ“
  • data β€” the data to verify the signature on. this is the actual content in question. πŸ¦‹
  • datalen β€” length of data. yep, just the length β€” iconically simple. ⭐

πŸ¦‹ SEE ALSO πŸ¦‹

go peek at those if you want the deeper lore, slay. πŸ‘€


mwah πŸ’‹ β€” source/version: ./security/integrity, dated October 2026.

πŸ“¦ where this page comes from