diff --git a/src/main/java/org/apache/maven/plugins/gpg/BcSigner.java b/src/main/java/org/apache/maven/plugins/gpg/BcSigner.java index 6a0fc2a..f53ad09 100644 --- a/src/main/java/org/apache/maven/plugins/gpg/BcSigner.java +++ b/src/main/java/org/apache/maven/plugins/gpg/BcSigner.java @@ -123,7 +123,7 @@ public final class GpgConfLoader implements Loader { /** * Maximum key size, see Large Keys. */ - private static final long MAX_SIZE = 5 * 1024 + 1L; + private static final long MAX_SIZE = 16 * 1024 + 1L; @Override public byte[] loadKeyRingMaterial(RepositorySystemSession session) throws IOException { @@ -137,7 +137,7 @@ public byte[] loadKeyRingMaterial(RepositorySystemSession session) throws IOExce if (Files.size(keyPath) < MAX_SIZE) { return Files.readAllBytes(keyPath); } else { - throw new IOException("Refusing to load key " + keyPath + "; is larger than 5KB"); + throw new IOException("Refusing to load key " + keyPath + "; is larger than 16KB"); } } return null;