PeculiarVentures / PKI.js

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.
http://pkijs.org
Other
1.25k stars 204 forks source link

Allow changing salt length for EncryptedContentInfo #300 #301

Open ovk opened 3 years ago

ovk commented 3 years ago

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).