1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-06-23 20:14:49 +02:00
pgpainless/pgpainless-core/src/test/java/org
Paul Schaub 5bb4fd3687
Add PublicKeyAlgorithmPolicy to reject weak public keys
BCs PGPPublicKey.getBitStrenght() appears to fail to recognize some elliptic curves.
In such cases, bitStrength is reported as -1.
I added BCUtil.getBitStrength(publicKey) to manually determine the bit strenght by OID.
See https://github.com/bcgit/bc-java/issues/972 for an upstream bug report.
2021-06-11 16:20:29 +02:00
..
bouncycastle Small code style fixes and optimizations 2021-06-10 12:42:48 +02:00
junit Incorporate feedback from @IvanPizhenko. Thanks! 2021-04-30 10:23:12 +02:00
pgpainless Add PublicKeyAlgorithmPolicy to reject weak public keys 2021-06-11 16:20:29 +02:00