blackmwk commented on code in PR #3700:
URL: https://github.com/apache/iceberg-rust/pull/3700#discussion_r4663985766
##########
crates/iceberg/src/encryption/stream.rs:
##########
@@ -299,8 +319,15 @@ impl FileRead for AesGcmFileRead {
let first_block = range.start / PLAIN_BLOCK_SIZE as u64;
let last_block = range.end.saturating_sub(1) / PLAIN_BLOCK_SIZE as u64;
+ // The header is not authenticated, so it is read and checked along
with the first block.
+ let header_length = if first_block == 0 {
Review Comment:
If someone start read from 5th block, it will skip the verfication right? I
think we should always do the check. If can do the check only once by storing
some lazy variable
--
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]