aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-01-02 08:00:28 +0100
committerSven Gothel <[email protected]>2023-01-02 08:00:28 +0100
commitbb56eddf51a7c454034044bf037b32f5fba9eca0 (patch)
tree69385b7e0b9dd8721b7870c205ed927bacab6eb4
parent803af77c57e81ad606b584dd2ebb89203098edec (diff)
Cipherpack.java: Expose default buffer size of 16384 bytes (same as for native header's constant)
-rw-r--r--java/org/cipherpack/Cipherpack.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/java/org/cipherpack/Cipherpack.java b/java/org/cipherpack/Cipherpack.java
index 3661887..af786ed 100644
--- a/java/org/cipherpack/Cipherpack.java
+++ b/java/org/cipherpack/Cipherpack.java
@@ -125,6 +125,9 @@ import org.jau.util.BasicTypes;
*/
public final class Cipherpack {
+ /** Intermediate copy buffer size of {@code 16384 bytes}, usually the 4 x 4096 bytes page-size. */
+ public static final int buffer_size = 16384;
+
/**
* Name of default hash algo for the plaintext message,
* e.g. for {@link #encryptThenSign(CryptoConfig, List, String, ByteBuffer, ByteInStream, String, String, String, String, CipherpackListener, String, String) encryptThenSign()}