From 7d9d48602e54ba9ac9ff0c4a9eb2b266162e6720 Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Tue, 23 Oct 2018 09:46:34 -0600 Subject: [PATCH] update PKCS7/CMS README --- pkcs7/README.md | 54 +++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 50 insertions(+), 4 deletions(-) diff --git a/pkcs7/README.md b/pkcs7/README.md index a5406170..0c813585 100644 --- a/pkcs7/README.md +++ b/pkcs7/README.md @@ -2,7 +2,7 @@ ## Building -### Build and install wolfSSL +### Build and Install wolfSSL ``` $ ./configure --enable-pkcs7 @@ -10,7 +10,7 @@ $ make $ sudo make install ``` -### Build Example +### Build Examples Running `make` will try to compile all C source files into their own respective example application. Each source file can be compiled separately @@ -34,13 +34,59 @@ CFLAGS+=$(DEBUG_FLAGS) Build wolfSSL using: `./configure --enable-pkcs7 --enable-debug && make && sudo make install` -## Usage +## Examples Description and Usage -### `pkcs7-verify` +### pkcs7-verify ``` ./pkcs7-verify Der 1633 PKCS7 Verify Success ``` + +### EncryptedData + +Example file: `encryptedData.c` + +``` +./encryptedData +Successfully encoded EncryptedData bundle (encryptedData.der) +``` + +### EnvelopedData using KTRI RecipientInfo + +Example file: `envelopedData-ktri.c + +``` +./envelopedData-ktri +Successfully encoded EnvelopedData bundle (envelopedDataKTRI.der) +``` + +### EnvelopedData using KARI RecipientInfo + +Example file: `envelopedData-kari.c` + +``` +./envelopedData-kari +Successfully encoded EnvelopedData bundle (envelopedDataKARI.der) +``` + +### EnvelopedData using PWRI RecipientInfo + +Example file: `envelopedData-pwri.c` + +``` +./envelopedData-pwri +Successfully encoded EnvelopedData bundle (envelopedDataPWRI.der) +``` + +### EnvelopedData using ORI RecipientInfo + +Example file: `envelopedData-ori.c` + +``` +./envelopedData-ori +Successfully encoded EnvelopedData bundle (envelopedDataORI.der) +``` +