You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "xanderbailey (via GitHub)" <gi...@apache.org> on 2026/09/23 09:42:09 UTC

[I] AES GCM spec vs implementation discrepancy [iceberg]

xanderbailey opened a new issue, #18219:
URL: https://github.com/apache/iceberg/issues/18219

   We're in the process of implementing the encryption spec in rust and python and have noticed something in the spec wording https://github.com/apache/iceberg/blob/1504ddd5d5119e934e7cbcaed82b9384caf35b82/format/gcm-stream-spec.md#cipher-block-structure `The last block has a non-zero length <= BlockLength` but Java `AesGcmOutputStream` will actually write an empty block and `AesGcmInputFile` will reject anything shorter than `MIN_STREAM_LENGTH` https://github.com/apache/iceberg/blob/1504ddd5d5119e934e7cbcaed82b9384caf35b82/core/src/main/java/org/apache/iceberg/encryption/AesGcmInputFile.java#L68-L74
   
   So java seems to disagree in both directions?


-- 
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: issues-unsubscribe@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] AES GCM spec vs implementation discrepancy [iceberg]

Posted by "ykisana (via GitHub)" <gi...@apache.org>.
ykisana commented on issue #18219:
URL: https://github.com/apache/iceberg/issues/18219#issuecomment-5924166707

   Good catch, I think makes sense to agree with Java for this one. The rule is clear and Java is already shipped, make Python and Rust follow it.
   
   Have PR for that: https://github.com/apache/iceberg/pull/18335
   


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org