blackmwk commented on code in PR #3700:
URL: https://github.com/apache/iceberg-rust/pull/3700#discussion_r4717327422


##########
crates/iceberg/src/encryption/stream.rs:
##########
@@ -144,14 +145,15 @@ pub struct AesGcmFileRead {
     num_blocks: u64,
     /// Size of the last cipher block (may be smaller than 
`CIPHER_BLOCK_SIZE`).
     last_cipher_block_size: u32,
+    /// Whether a read has checked the AGS1 header, which no block 
authenticates.
+    header_checked: AtomicBool,

Review Comment:
   I was saying it may validate header more than once, but I think this is fine 
since it rarely happens.



-- 
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