fork-openpgpjs/test/general
larabr 22a68878e4
Add support for constant-time decryption of PKCS#1 v1.5-encoded session keys (#1445)
Implement optional constant-time decryption flow to hinder Bleichenbacher-like
attacks against RSA- and ElGamal public-key encrypted session keys.

Changes:
- Add `config.constantTimePKCS1Decryption` to enable the constant-time
processing (defaults to `false`). The constant-time option is off by default
since it has measurable performance impact on message decryption, and it is
only helpful in specific application scenarios (more info below).
- Add `config.constantTimePKCS1DecryptionSupportedSymmetricAlgorithms`
(defaults to the AES algorithms). The set of supported ciphers is restricted by
default since the number of algorithms negatively affects performance.

Bleichenbacher-like attacks are of concern for applications where both of the
following conditions are met:
1. new/incoming messages are automatically decrypted (without user
interaction);
2. an attacker can determine how long it takes to decrypt each message (e.g.
due to decryption errors being logged remotely).
2022-01-19 19:05:43 +01:00
..
armor.js Do not include checksum values in error messages when armor integrity check fails (#1428) 2021-10-21 16:14:46 +02:00
biginteger.js Lint all tests (#1235) 2021-02-12 23:00:22 +01:00
brainpool.js Add config.rejectCurves and prevent generating keys using blacklisted algorithms (#1395) 2021-08-19 17:58:16 +02:00
config.js Replace strings with integer algorithm identifiers in packet classes (#1410) 2021-11-22 11:51:27 +01:00
decompression.js Consolidate read* functions (#1236) 2021-02-17 20:36:33 +01:00
ecc_nist.js Remove valid and error from the verification result of openpgp.verify and decrypt (#1348) 2021-07-09 17:44:34 +02:00
ecc_secp256k1.js Add config.rejectCurves and prevent generating keys using blacklisted algorithms (#1395) 2021-08-19 17:58:16 +02:00
index.js Remove KeyRing class 2021-03-01 11:58:10 +01:00
key.js Check key requirements in PrivateKey.addSubkey() (#1423) 2021-12-01 17:04:02 +01:00
oid.js Lint all tests (#1235) 2021-02-12 23:00:22 +01:00
openpgp.js Add support for constant-time decryption of PKCS#1 v1.5-encoded session keys (#1445) 2022-01-19 19:05:43 +01:00
packet.js Replace strings with integer algorithm identifiers in packet classes (#1410) 2021-11-22 11:51:27 +01:00
signature.js Add config.allowInsecureVerificationWithReformattedKeys (#1422) 2021-10-18 18:10:04 +02:00
streaming.js Do not include checksum values in error messages when armor integrity check fails (#1428) 2021-10-21 16:14:46 +02:00
testInputs.js Remove line terminators from randomly generated test messages (#1440) 2021-11-17 12:11:54 +01:00
util.js Add support for constant-time decryption of PKCS#1 v1.5-encoded session keys (#1445) 2022-01-19 19:05:43 +01:00
x25519.js Remove valid and error from the verification result of openpgp.verify and decrypt (#1348) 2021-07-09 17:44:34 +02:00