We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e505c4 commit 1a10ce0Copy full SHA for 1a10ce0
src/rust/src/backend/ciphers.rs
@@ -507,7 +507,10 @@ impl PyAEADDecryptionContext {
507
} else if tag.len() > GCM_STANDARD_TAG_SIZE {
508
return Err(CryptographyError::from(
509
pyo3::exceptions::PyValueError::new_err(
510
- format!("Authentication tag cannot be more than {} bytes.", GCM_STANDARD_TAG_SIZE),
+ // Defensive error handling - rarely triggered in normal usage
511
+ format!(
512
+ "Authentication tag cannot be more than {GCM_STANDARD_TAG_SIZE} bytes."
513
+ ),
514
),
515
));
516
}
0 commit comments