6.0.2 (2026-10-16)
6.0.1 (2026-08-24)
6.0.0 (2026-08-07)
- rsa-oaep-mgf1p now emits and expects MGF1-SHA1. The
http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1pidentifier fixes the mask generation function to MGF1-SHA1 per XML-Enc 1.1. PreviouslykeyEncryptionDigest: 'sha256'or'sha512'also drove MGF1, producing MGF1-SHA256/SHA512 ciphertext that is not interoperable with spec-compliant peers (Java xmlsec, .NETSystem.Security.Cryptography.Xml). Such ciphertext will no longer decrypt with this version. Callers who genuinely need a non-SHA-1 MGF1 must switch to thexmlenc11#rsa-oaepidentifier with the newkeyEncryptionMgfoption.
- Support
http://www.w3.org/2009/xmlenc11#rsa-oaep— The newkeyEncryptionMgfoption selects the MGF1 digest (sha1,sha224,sha256,sha384,sha512, or the fullxmlenc11#mgf1*URI; defaultsha1). - OAEP label support — supply
keyEncryptionOaepParams(a Buffer or base64 string) to set the OAEP label; it is emitted as an<xenc:OAEPparams>element and honoured on decrypt. - Digest/MGF1 combinations Node's
cryptocannot express (MGF1 digest ≠ message digest) are computed via an EME-OAEP shim over the raw RSA primitive.
5.0.0 (2026-07-02)
- DigestMethod is not used when keyEncryptionAlgorithm is RSA 1.5 so has been removed from the encrypted payload
- keyEncryptionDigest values of sha256 or sha512 correctly use the
http://www.w3.org/2001/04/xmlencnamespace when encrypting