Closed gnarea closed 2 years ago
I just pushed some changes I accidentally left behind earlier today. I'm done making changes now, just waiting for feedback.
Sorry, folks... I just pushed another commit for another line I forgot to commit before. That really should be the last change before your feedback.
(WebStorm didn't like the CRLF newlines and trailing whitespace in EnvelopedData.js
, so I had to manually stage the lines I changed, which is why I missed a bunch of them)
Thanks! Will do 👍🏾
Done, @microshine ✔️
The new version v2.2.1
is available
Awesome, thank you so much! 👏🏾
EnvelopedData
implementations prior to RFC 5753 used to useNULL
as thealgorithmParams
when using AES ciphers, but RFC 5753 requires thealgorithmParams
to be absent. PKI.js currently does the former, so it fails to decrypt RFC 5753-compliantEnvelopedData
values as reported in #334.This PR makes PKI.js behave as OpenSSL and Bouncy Castle:
algorithmParams
is absent.algorithmParams
absent and, if that fails, we try again withalgorithmParams ::= NULL
(for backwards compatibility).Fixes #334