Skip to content

Commit 63b2ad4

Browse files
authored
Merge pull request wolfSSL#494 from JacobBarthelmeh/pkcs7_stream
Add an example benchmark of PKCS7 streaming
2 parents 9b02ca2 + 6fe7af7 commit 63b2ad4

File tree

2 files changed

+462
-0
lines changed

2 files changed

+462
-0
lines changed

pkcs7/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,7 @@ Q31HIqX6H6JYdgtwHB1ZHaq+XS0lfLEGtsCqKKqTfNC9Q62RUBx7TfPk1w==
685685
-----END CERTIFICATE-----
686686
```
687687

688+
688689
### Creating an SMIME bundle and verifying it
689690

690691
In these example cases the content will be overridden by the content found in the
@@ -705,6 +706,24 @@ Creating ECC signed bundles:
705706
./smime-verify detached-smime-created.p7s ../certs/client-ecc-cert.der content.txt
706707
```
707708

709+
710+
## PKCS7 Benchmarking
711+
712+
```
713+
./benchmark-streaming-envelop
714+
Benchmarking with content size of 10000 bytes
715+
Reading and writing files in chuncks of 1000 bytes
716+
Using AES-256 CBC encryption
717+
Using RSA-2048 key
718+
719+
Creating an encoded bundle ... 27.33 MB/s : ret = 10576
720+
Created file [test-stream-dec.p7b] with size of 10576 bytes
721+
722+
Decoding bundle [test-stream-dec.p7b], size of 10576 bytes ... 9.14 MB/s : ret = 0
723+
Processed 10576 bytes
724+
```
725+
726+
708727
## Support
709728

710729
Please email wolfSSL support at [email protected] with any questions about

0 commit comments

Comments
 (0)