ggershinsky commented on code in PR #3231:
URL: https://github.com/apache/iceberg/pull/3231#discussion_r1286776558


##########
core/src/main/java/org/apache/iceberg/encryption/Ciphers.java:
##########
@@ -27,10 +30,19 @@
 import org.apache.iceberg.relocated.com.google.common.base.Preconditions;
 
 public class Ciphers {
-  private static final int NONCE_LENGTH = 12;
-  private static final int GCM_TAG_LENGTH = 16;
+  public static final int NONCE_LENGTH = 12;
+  public static final int GCM_TAG_LENGTH = 16;
+  public static final String GCM_STREAM_MAGIC_STRING = "AGS1";
+
+  static final byte[] GCM_STREAM_MAGIC_ARRAY =
+      GCM_STREAM_MAGIC_STRING.getBytes(StandardCharsets.UTF_8);
+  static final int GCM_STREAM_HEADER_LENGTH =
+      GCM_STREAM_MAGIC_ARRAY.length + 4; // magic_len + block_size_len

Review Comment:
   correct. But its length is always 4.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to