|
||
---|---|---|
.. | ||
Makefile | ||
README.md | ||
encryptedData.c | ||
envelopedData-kari.c | ||
envelopedData-ktri.c | ||
envelopedData-ori.c | ||
envelopedData-pwri.c | ||
pkcs7-verify.c | ||
signed.p7s | ||
signedData-CompressedFirmwarePkgData.c | ||
signedData-EncryptedCompressedFirmwarePkgData.c | ||
signedData-EncryptedFirmwarePkgData.c | ||
signedData-FirmwarePkgData.c | ||
signedData.c |
README.md
Examples demonstrating PKCS7
Building
Build and install wolfSSL
$ ./configure --enable-pkcs7
$ make
$ sudo make install
Build Example
Running make
will try to compile all C source files into their own
respective example application. Each source file can be compiled separately
if desired, for example:
make
gcc -o pkcs7 pkcs7.c -Wall -I/usr/local/include -Os -L/usr/local/lib -lm -lwolfssl
gcc -o ecc-verify ecc-verify.c -Wall -I/usr/local/include -Os -L/usr/local/lib -lm -lwolfssl
Debug
To enable debug change the Makefile to:
CFLAGS+=$(DEBUG_FLAGS)
#CFLAGS+=$(OPTIMIZE)
Build wolfSSL using: ./configure --enable-pkcs7 --enable-debug && make && sudo make install
Usage
pkcs7-verify
./pkcs7-verify
Der 1633
PKCS7 Verify Success