fork-openpgpjs/src/key
larabr 6fc005f19c
Check key requirements in PrivateKey.addSubkey() (#1423)
Breaking change:
when generating new subkeys through `key.addSubkey()`, we now check
`config.rejectCurves` and prevent adding subkeys using the corresponding
curves.
By default, `config.rejectCurves` includes the brainpool curves
(`brainpoolP256r1`, `brainpoolP384r1`, `brainpoolP512r1`) and the Bitcoin curve
(`secp256k1`).

This is a follow up to #1395 , which introduced the same check to
`openpgp.generateKey`.
2021-12-01 17:04:02 +01:00
..
factory.js Replace armor option with format in openpgp.encrypt, sign and encryptSessionKey (#1354) 2021-07-19 18:12:42 +02:00
helper.js Replace strings with integer algorithm identifiers in packet classes (#1410) 2021-11-22 11:51:27 +01:00
index.js Export Subkey class (#1381) 2021-07-20 10:54:29 +02:00
key.js Add config.rejectCurves and prevent generating keys using blacklisted algorithms (#1395) 2021-08-19 17:58:16 +02:00
private_key.js Check key requirements in PrivateKey.addSubkey() (#1423) 2021-12-01 17:04:02 +01:00
public_key.js Lint: enforce single quotes and do not error on class methods without this (#1341) 2021-06-24 22:58:15 +02:00
subkey.js Remove primaryKey argument from User methods, rename User.sign to User.certify (#1329) 2021-06-15 17:42:00 +02:00
user.js Support using Key.isPrivate() for type inference, remove Key.isPublic() (#1347) 2021-06-24 19:53:10 +02:00