Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.33 KB

bpf_verify_pkcs7_signature.md

File metadata and controls

41 lines (27 loc) · 1.33 KB
title description
KFunc 'bpf_verify_pkcs7_signature'
This page documents the 'bpf_verify_pkcs7_signature' eBPF kfunc, including its defintion, usage, program types that can use it, and examples.

KFunc bpf_verify_pkcs7_signature

:octicons-tag-24: 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.

#!c int bpf_verify_pkcs7_signature(struct bpf_dynptr_kern *data_ptr, struct bpf_dynptr_kern *sig_ptr, struct bpf_key *trusted_keyring)

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

Usage

!!! example "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

!!! example "Docs could be improved" This part of the docs is incomplete, contributions are very welcome