1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-09-10 18:59:39 +02:00

Fix parameter check for DSA keys

Fixes #345
This commit is contained in:
Paul Schaub 2022-12-13 16:15:32 +01:00
parent f5414bcc19
commit 4f435a0fa0
2 changed files with 296 additions and 1 deletions

View file

@ -195,7 +195,7 @@ public class PublicKeyParameterValidationUtil {
}
// q > 160 bits
boolean qLarge = pQ.getLowestSetBit() > 160;
boolean qLarge = pQ.bitLength() > 160;
if (!qLarge) {
return false;
}