pkcs7_verify(9)
β¨ 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:
-EKEYREJECTEDβ a key was selected that had a usage restriction at odds with the specified usage, or:-EKEYREJECTEDβ a signature failed to match for which we found an appropriate X.509 certificate, or:-EBADMSGβ some part of the message was invalid, or:0β a signature chain passed verification, or:-EKEYREJECTEDβ a blacklisted key was encountered, or:-ENOPKGβ none of the signature chains are verifiable because suitable crypto modules couldn't be found. π
π¦ SEE ALSO π¦
- Kernel file
./crypto/asymmetric_keys/pkcs7_verify.cπ pkcs7_supply_detached_data(9)π«Ά
mwah π this page comes from ./crypto/asymmetric_keys, dated October 2026 β catch you in the next group chat, bestie! ππ
π¦ 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