Set default config.minRSABits to 2047 (#1392)

Lower the default allowed RSA key size to ensure that (most) keys generated in
v4 without WebCrypto are supported (see #1336).
This commit is contained in:
larabr 2021-08-19 17:53:06 +02:00 committed by GitHub
parent f59b0dec60
commit f57d3527d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,10 +104,12 @@ export default {
*/
checksumRequired: false,
/**
* Minimum RSA key size allowed for key generation and message signing, verification and encryption.
* The default is 2047 since due to a bug, previous versions of OpenPGP.js could generate 2047-bit keys instead of 2048-bit ones.
* @memberof module:config
* @property {Number} minRSABits Minimum RSA key size allowed for key generation and message signing, verification and encryption
* @property {Number} minRSABits
*/
minRSABits: 2048,
minRSABits: 2047,
/**
* Work-around for rare GPG decryption bug when encrypting with multiple passwords.
* **Slower and slightly less secure**