pkcs7_verify(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, welcome to pkcs7_verify(9) from the Kernel API Manual β€” it’s giving β€œverify a PKCS#7 message” and honestly it ate. πŸ’…

pkcs7_verify β€” Verify a PKCS#7 message. πŸŽ€

🌸 SYNOPSIS 🌸

int pkcs7_verify (struct pkcs7_message *pkcs7 , enum key_being_used_for usage );

πŸŽ€ ARGUMENTS πŸŽ€

  • pkcs7 β€” The PKCS#7 message to be verified. 🫢
  • usage β€” The use to which the key is being put. πŸ”‘

πŸ’… DESCRIPTION πŸ’…

So the vibe check here is internal consistency, bestie. pkcs7_verify verifies that a PKCS#7 message is internally consistent β€” that is, the data digest matches the digest in AuthAttrs, and any signature in the message or one of the X.509 certificates it carries that matches another X.509 cert in the message can be verified. ✨

Important: this does not look to match the contents of the PKCS#7 message against any external public keys. Not me checking outside the group chat. πŸ™ˆ

It returns these in order of descending priority, like a ranked list of outcomes:

  1. -EKEYREJECTED β€” a key was selected that had a usage restriction at odds with the specified usage, or:
  2. -EKEYREJECTED β€” a signature failed to match for which we found an appropriate X.509 certificate, or:
  3. -EBADMSG β€” some part of the message was invalid, or:
  4. 0 β€” a signature chain passed verification, or:
  5. -EKEYREJECTED β€” a blacklisted key was encountered, or:
  6. -ENOPKG β€” none of the signature chains are verifiable because suitable crypto modules couldn't be found. 😭

πŸ¦‹ SEE ALSO πŸ¦‹


mwah πŸ’– this page comes from ./crypto/asymmetric_keys, dated October 2026 β€” catch you in the next group chat, bestie! πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from