We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 588c410 commit e06afc4Copy full SHA for e06afc4
lib/pkcs7.js
@@ -837,7 +837,7 @@ function _recipientFromAsn1(obj) {
837
serialNumber: forge.util.createBuffer(capture.serial).toHex(),
838
encryptedContent: {
839
algorithm: asn1.derToOid(capture.encAlgorithm),
840
- parameter: capture.encParameter.value,
+ parameter: capture.encParameter ? capture.encParameter.value : null,
841
content: capture.encKey
842
}
843
};
lib/pkcs7asn1.js
@@ -397,7 +397,8 @@ p7v.recipientInfoValidator = {
397
name: 'RecipientInfo.keyEncryptionAlgorithm.parameter',
398
tagClass: asn1.Class.UNIVERSAL,
399
constructed: false,
400
- captureAsn1: 'encParameter'
+ captureAsn1: 'encParameter',
401
+ optional: true
402
}]
403
}, {
404
name: 'RecipientInfo.encryptedKey',
0 commit comments