Skip to content

KFunc bpf_verify_pkcs7_signature

v6.1

Verify a PKCS#7 signature

Definition

Verify the PKCS#7 signature sig_ptr against the supplied data_ptr with keys in a keyring referenced by trusted_keyring.

int bpf_verify_pkcs7_signature(struct bpf_dynptr *data_p, struct bpf_dynptr *sig_p, struct bpf_key *trusted_keyring)

Note

This function may sleep, and therefore can only be used from sleepable programs.

Usage

Docs could be improved

This part of the docs is incomplete, contributions are very welcome

Program types

The following program types can make use of this kfunc:

Example

Docs could be improved

This part of the docs is incomplete, contributions are very welcome