verify_pkcs7_message_sig(9)
π 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βsNULLif youβre expecting internal data, okay?lenβ size ofdata. Simple as that. πpkcs7β the PKCS#7 message that is the signature. Main character energy. πtrusted_keysβ trusted keys to use.NULLmeans builtin trusted keys only;(void *)1ULmeans 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 π
- Kernel file
./certs/system_keyring.c restrict_link_by_builtin_trusted(9)restrict_link_by_digsig_builtin(9)restrict_link_by_builtin_and_secondary_trusted(9)restrict_link_by_digsig_builtin_and_secondary(9)add_to_secondary_keyring(9)restrict_link_by_builtin_secondary_and_machine(9)verify_pkcs7_signature(9)
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
- 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