Skip to content

Commit

Permalink
Increased limit
Browse files Browse the repository at this point in the history
  • Loading branch information
spoto committed Sep 27, 2023
1 parent 1903276 commit da7a874
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static Entropy random() {
public static Entropy load(Path path) throws IOException {
long length = path.toFile().length();
// without this check, the access to the file would take very long and terminate with an error anyway
if (length > 1000L)
if (length > 10000L)
throw new IOException("The pem file " + path + " is too long for being a PEM file!");

return new EntropyImpl(path);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public final byte[] toByteArray() {
}
catch (IOException e) {
// impossible with a ByteArrayOutputStream
throw new RuntimeException("unexpected exception", e);
throw new RuntimeException("Unexpected exception", e);
}
}

Expand Down

0 comments on commit da7a874

Please sign in to comment.