mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-25 04:17:59 +01:00
Remove usage of PublicKeyAlgorithm.EC
This commit is contained in:
parent
41dfe71994
commit
de3fbe72ad
2 changed files with 0 additions and 2 deletions
|
@ -645,7 +645,6 @@ public final class Policy {
|
||||||
minimalBitStrengths.put(PublicKeyAlgorithm.DIFFIE_HELLMAN, 2000);
|
minimalBitStrengths.put(PublicKeyAlgorithm.DIFFIE_HELLMAN, 2000);
|
||||||
// §7.2.2
|
// §7.2.2
|
||||||
minimalBitStrengths.put(PublicKeyAlgorithm.ECDH, 250);
|
minimalBitStrengths.put(PublicKeyAlgorithm.ECDH, 250);
|
||||||
minimalBitStrengths.put(PublicKeyAlgorithm.EC, 250);
|
|
||||||
|
|
||||||
return new PublicKeyAlgorithmPolicy(minimalBitStrengths);
|
return new PublicKeyAlgorithmPolicy(minimalBitStrengths);
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,7 +72,6 @@ public class RefuseToAddWeakSubkeyTest {
|
||||||
minimalBitStrengths.put(PublicKeyAlgorithm.DIFFIE_HELLMAN, 2000);
|
minimalBitStrengths.put(PublicKeyAlgorithm.DIFFIE_HELLMAN, 2000);
|
||||||
// §7.2.2
|
// §7.2.2
|
||||||
minimalBitStrengths.put(PublicKeyAlgorithm.ECDH, 250);
|
minimalBitStrengths.put(PublicKeyAlgorithm.ECDH, 250);
|
||||||
minimalBitStrengths.put(PublicKeyAlgorithm.EC, 250);
|
|
||||||
PGPainless.getPolicy().setPublicKeyAlgorithmPolicy(new Policy.PublicKeyAlgorithmPolicy(minimalBitStrengths));
|
PGPainless.getPolicy().setPublicKeyAlgorithmPolicy(new Policy.PublicKeyAlgorithmPolicy(minimalBitStrengths));
|
||||||
|
|
||||||
SecretKeyRingEditorInterface editor = PGPainless.modifyKeyRing(secretKeys);
|
SecretKeyRingEditorInterface editor = PGPainless.modifyKeyRing(secretKeys);
|
||||||
|
|
Loading…
Reference in a new issue