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 7491cbcCopy full SHA for 7491cbc
src/rust/src/backend/ciphers.rs
@@ -507,6 +507,7 @@ impl PyAEADDecryptionContext {
507
} else if tag.len() > GCM_STANDARD_TAG_SIZE {
508
return Err(CryptographyError::from(
509
pyo3::exceptions::PyValueError::new_err(
510
+ // Defensive error handling - rarely triggered in normal usage
511
format!("Authentication tag cannot be more than {} bytes.", GCM_STANDARD_TAG_SIZE),
512
),
513
));
0 commit comments