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 c5e3474 commit 5bd1467Copy full SHA for 5bd1467
src/util/key_obfuscator.rs
@@ -66,6 +66,7 @@ impl KeyObfuscator {
66
obfuscated_key_bytes.split_at(obfuscated_key_bytes.len() - TAG_LENGTH - NONCE_LENGTH - TAG_LENGTH);
67
let (tag, remaining) = remaining.split_at(TAG_LENGTH);
68
let (wrapped_nonce_bytes, wrapped_nonce_tag) = remaining.split_at(NONCE_LENGTH);
69
+ debug_assert_eq!(wrapped_nonce_tag.len(), TAG_LENGTH);
70
71
// Unwrap wrapped_nonce to get nonce.
72
let mut wrapped_nonce = [0u8; NONCE_LENGTH];
0 commit comments