Sortix volatile manual
This manual documents Sortix volatile, a development build that has not been officially released. You can instead view this document in the latest official manual.
NAME
PKCS7_dataInit — construct a BIO chain for adding or retrieving contentDESCRIPTION
PKCS7_dataInit() constructs a BIO chain in preparation for putting data into or retrieving data out of p7. Depending on the contentType of p7, the created chain starts with:- for SignedData:
- one or more BIO_f_md(3) message digest filters
- for EnvelopedData:
- one BIO_f_cipher(3) encryption filter
- for SignedAndEnvelopedData:
- one or more BIO_f_md(3) message digest filters followed by one BIO_f_cipher(3) encryption filter
- for DigestedData:
- one BIO_f_md(3) message digest filter
- for arbitrary data:
- no filter BIO
- indata
- if the indata argument is not NULL. This only makes sense while verifying a detached signature, in which case indata is expected to supply the content associated with the detached signature.
- BIO_s_null(3)
- if the contentType of p7 is SignedData and it is configured to contain a detached signature. This only makes sense while creating the detached signature.
- BIO_new_mem_buf(3)
- when reading from a SignedData or DigestedData object. PKCS7_dataInit() attaches the end of the chain to the nested content of p7.
- BIO_s_mem(3)
- otherwise. This is the most common case while writing data to p7. PKCS7_dataFinal(3) can later be used to transfer the data from the memory BIO into p7.