PKI.js is a pure JavaScript library implementing the formats that are used in PKI applications (signing, encryption, certificate requests, OCSP and TSP requests/responses). It is built on WebCrypto (Web Cryptography API) and requires no plug-ins.
This simply allows passing saltLength in parameters when encrypting EncryptedContentInfo.
This allows changing salt to 8 bytes which is useful when creating P12/PFX that need to be opened in Windows (as described in #300).
The existing behavior is unchanged (salt is 64 bytes by default).
This simply allows passing
saltLength
in parameters when encrypting EncryptedContentInfo. This allows changing salt to 8 bytes which is useful when creating P12/PFX that need to be opened in Windows (as described in #300).The existing behavior is unchanged (salt is 64 bytes by default).