pkcs7_supply_detached_data(9)
okay so bestie, welcome to the pkcs7_supply_detached_data(9) page from the Kernel API Manual π β itβs short, itβs iconic, and itβs all about giving a PKCS#7 message the detached data it needs to verify stuff. Slay.
β¨ NAME β¨
pkcs7_supply_detached_data β supply the data needed to verify a PKCS#7 message. Thatβs the whole assignment, no cap π
πΈ SYNOPSIS πΈ
int pkcs7_supply_detached_data (struct pkcs7_message *pkcs7 , const void
*data , size_t datalen );
π ARGUMENTS π
pkcs7β the PKCS#7 message. Your structured little bestie π«Άdataβ the data to be verified. Literally the data, bestie.datalenβ the amount of data. Size matters here, and itβs asize_tβ¨
π¦ DESCRIPTION π¦
Okay so hereβs the tea: you use this to supply the detached data needed to verify a PKCS#7 message. Note that no attempt to retain/pin the data is made β that is left to the caller. No cap, youβre responsible for that part.
The data will not be modified by pkcs7_verify and will not be freed when the PKCS#7 message is freed. So itβs giving borrowed-library-book energy, not βours nowβ energy π.
Returns -EINVAL if data is already supplied in the message, 0 otherwise. Periodt.
π SEE ALSO π
- Kernel file
./crypto/asymmetric_keys/pkcs7_verify.c pkcs7_verify(9)β the bestie this function is feeding π
mwah π this page lives under ./crypto/asymmetric_keys, and itβs dated October 2026. Bye bestie, go verify something cute! π
π¦ 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