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 ffe1018 commit 435906cCopy full SHA for 435906c
cipher/src/algorithm/poly1305/mod.rs
@@ -182,10 +182,10 @@ impl From<Vec<u8>> for SignedEnvelope {
182
183
// Deserialize MAC
184
offset += data_len;
185
- let mac = bytes[offset..offset + 16].to_vec();
+ let mac = bytes[offset..offset + 32].to_vec();
186
187
// If the MAC length is not 16, return an error
188
- if mac.len() != 16 {
+ if mac.len() != 32 {
189
panic!("Unexpected bytes length");
190
}
191
0 commit comments