projects
/
crypto_lab1.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Code cleaning and report progress.
[crypto_lab1.git]
/
lab1_rust
/
src
/
packet.rs
diff --git
a/lab1_rust/src/packet.rs
b/lab1_rust/src/packet.rs
index
95468a1
..
c81fe20
100644
(file)
--- a/
lab1_rust/src/packet.rs
+++ b/
lab1_rust/src/packet.rs
@@
-158,7
+158,7
@@
impl Packet {
_ => ()
}
- // Compute the MAC. It depends the choosen variant.
+ // Compute the MAC. It depends
of
the choosen variant.
let mac = crypto::compute_mac(data.slice_to(match variant { Weak => data_size, _ => data.len() }));
// Encrypt.