Skip to content

Commit e73bc95

Browse files
add setting key wrap OID to example
1 parent e310409 commit e73bc95

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pkcs7/smime.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ static int Create(byte* smime, int* smimeSz, byte* key, int keySz,
6767
pkcs7->privateKeySz = keySz;
6868
pkcs7->contentOID = DATA; /* inner content default is DATA */
6969
pkcs7->hashOID = SHA256h; /* default to SHA-256 hash type */
70+
pkcs7->signedAttribs = NULL;
71+
pkcs7->signedAttribsSz = 0;
72+
#ifndef NO_AES
73+
pkcs7->keyWrapOID = AES256_WRAP;
74+
pkcs7->keyAgreeOID = dhSinglePass_stdDH_sha256kdf_scheme;
75+
#endif
7076

7177
/* type of SMIME */
7278
pkcs7Compat->type = SIGNED_DATA;

0 commit comments

Comments
 (0)