1616$ sudo make install
1717```
1818
19- Note, some examples require additional features, such as "--with-libz" and
19+ Note, some examples require additional features, such as "--with-libz" and
2020"--enable-pwdbased". To build wolfSSL with support for all examples, use:
2121
2222```
@@ -96,18 +96,18 @@ Debugging with `openssl cms`
9696
9797```
9898$ openssl cms -inform der -in envelopedData.der -cmsout -print -noout
99- CMS_ContentInfo:
99+ CMS_ContentInfo:
100100 contentType: pkcs7-encryptedData (1.2.840.113549.1.7.6)
101- d.encryptedData:
101+ d.encryptedData:
102102 version: <ABSENT>
103- encryptedContentInfo:
103+ encryptedContentInfo:
104104 contentType: pkcs7-data (1.2.840.113549.1.7.1)
105- contentEncryptionAlgorithm:
105+ contentEncryptionAlgorithm:
106106 algorithm: aes-256-cbc (2.16.840.1.101.3.4.1.42)
107107 parameter: OCTET STRING:
108108 0000 - 08 83 47 90 5d 9f d6 aa-dc 25 ce b2 87 9a 10 ..G.]....%.....
109109 000f - cf .
110- encryptedContent:
110+ encryptedContent:
111111 0000 - 3c 22 ea 61 64 fb 21 30-77 8a ce b0 5a a7 35 <".ad.!0w...Z.5
112112 000f - de .
113113 unprotectedAttrs:
@@ -119,7 +119,7 @@ CMS_ContentInfo:
119119### pkcs7-verify
120120
121121```
122- ./pkcs7-verify
122+ ./pkcs7-verify
123123Der 1633
124124PKCS7 Verify Success
125125```
@@ -518,6 +518,27 @@ Successfully encoded SignedData bundle (signedData_cryptocb_attrs.der)
518518Successfully verified SignedData bundle.
519519```
520520
521+ #### Enabling PSA with the PKCS7 crypto callback example
522+
523+ For wolfSSL PSA support see: https://github.com/wolfSSL/wolfssl/tree/master/wolfcrypt/src/port/psa
524+ See https://github.com/wolfSSL/wolfssl/pull/4739 for details on building a PSA crypto library to test against.
525+
526+ Build wolfSSL with PSA enabled:
527+
528+ ``` sh
529+ ./configure --enable-psa --with-psa-lib-name=mbedcrypto --enable-cryptocb --enable-pkcallbacks CFLAGS=" -DWOLFSSL_PSA_GLOBAL_LOCK"
530+ make
531+ sudo make install
532+ ```
533+
534+ Build example with PSA=1 set:
535+
536+ ``` sh
537+ make clean
538+ make PSA=1
539+ ```
540+
541+
521542### SignedData with Detached Signature
522543
523544Example file: ` signedData-DetachedSignature.c `
0 commit comments