verify_pkcs7_message_sig(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– verify_pkcs7_message_sig(9) πŸ’–

Kernel API Manual β€” yes bestie, this is the one. Grab your iced coffee, we’re verifying signatures. 🧊✨


🌸 NAME 🌸

verify_pkcs7_message_sig β€” verify a PKCS#7-based signature on system data. That’s the gig: PKCS#7 signature, system data, verified. No cap. πŸ’…

✨ SYNOPSIS ✨

int verify_pkcs7_message_sig (const void *data , size_t len , struct
pkcs7_message *pkcs7 , struct key *trusted_keys , enum
key_being_used_for usage , int (*view_content)(void *ctx, const void
*data, size_t len, size_t asn1hdrlen) , void *ctx );

The function signature is literally that, and the spacing is part of the aesthetic. Do not come for it. 🫢

🫢 ARGUMENTS 🫢

  • data β€” the data to be verified. It’s NULL if you’re expecting internal data, okay?
  • len β€” size of data. Simple as that. πŸ“
  • pkcs7 β€” the PKCS#7 message that is the signature. Main character energy. πŸ‘‘
  • trusted_keys β€” trusted keys to use. NULL means builtin trusted keys only; (void *)1UL means all trusted keys. Very important bestie, do not freestyle this one. πŸ”
  • usage β€” the use to which the key is being put. It’s giving β€œwhat is this key even doing right now”. 🫑
  • view_content β€” callback to gain access to content. iykyk. πŸ‘€
  • ctx β€” context for callback. Gotta hand the callback its little context. πŸŽ€

🌈 SEE ALSO 🌈


Okay that’s the whole page, bestie. Signed off with love from ./certs in the Kernel API Manual, dated October 2026 β€” periodt. πŸ’Œβœ¨

πŸ“¦ where this page comes from