Leancrypto 1.6.0
Post-Quantum Cryptographic Library
Loading...
Searching...
No Matches
lc_pkcs7_generator.h File Reference
#include "lc_pkcs7_common.h"
Include dependency graph for lc_pkcs7_generator.h:

Go to the source code of this file.

Enumerations

enum  lc_pkcs7_set_data_flags { lc_pkcs7_set_data_noflag , lc_pkcs7_set_data_embed }

Functions

int lc_pkcs7_encode (const struct lc_pkcs7_message *pkcs7, uint8_t *data, size_t *avail_datalen)
 Encode a PKCS#7 message.
int lc_pkcs7_set_certificate (struct lc_pkcs7_message *pkcs7, struct lc_x509_certificate *x509)
 Set an PKCS#7 certificate to be added to a PKCS#7 message.
int lc_pkcs7_set_signer (struct lc_pkcs7_message *pkcs7, struct lc_x509_certificate *x509_with_sk, const struct lc_hash *signing_hash, unsigned long auth_attribute)
 Set an PKCS#7 certificate as signer for a PKCS#7 message.
int lc_pkcs7_set_data (struct lc_pkcs7_message *pkcs7, const uint8_t *data, size_t data_len, enum lc_pkcs7_set_data_flags flags)
 Set the data to be signed with PKCS#7.

Enumeration Type Documentation

◆ lc_pkcs7_set_data_flags

Enumerator
lc_pkcs7_set_data_noflag 

Define no flags

lc_pkcs7_set_data_embed 

Embed data into PKCS#7 message

Definition at line 141 of file lc_pkcs7_generator.h.