Cargo.lock
Cargo.lock
This file has not been changed.
Cargo.toml
Cargo.toml
This file has not been changed.
sachy-crypto/Cargo.toml
sachy-crypto/Cargo.toml
This file has not been changed.
+6
-2
sachy-crypto/src/lib.rs
+6
-2
sachy-crypto/src/lib.rs
···
347
347
// "random", making it harder to guess the position state.
348
348
assert_eq!(alice.finish, bob.finish);
349
349
350
-
let orig = b"Test Message, Please ignore.".to_vec();
350
+
let orig = b"Test Message, Please ignore.";
351
351
352
-
let mut msg = orig.clone();
352
+
let mut msg = orig.to_vec();
353
353
354
354
// a -> b
355
355
alice_send.encrypt(&mut msg)?;
···
378
378
alice_recv.decrypt(&mut msg)?;
379
379
380
380
assert_eq!(orig.as_slice(), msg.as_slice());
381
+
382
+
// Counters are tracked from sender to receiver
381
383
assert_eq!(alice_send.counter, bob_recv.counter);
382
384
assert_eq!(bob_send.counter, alice_recv.counter);
385
+
386
+
// Counters are not linked on the same side
383
387
assert_ne!(alice_send.counter, alice_recv.counter);
384
388
assert_ne!(bob_send.counter, bob_recv.counter);
385
389
History
18 rounds
0 comments
1 commit
expand
collapse
Sachy's crypto scheme lmao
2/2 success
expand
collapse
expand 0 comments
pull request successfully merged
1 commit
expand
collapse
Sachy's crypto scheme lmao
1/2 failed, 1/2 success
expand
collapse
expand 0 comments
1 commit
expand
collapse
Sachy's crypto scheme lmao
2/2 success
expand
collapse
expand 0 comments
1 commit
expand
collapse
Sachy's crypto scheme lmao
2/2 success
expand
collapse
expand 0 comments
1 commit
expand
collapse
Sachy's crypto scheme lmao
2/2 success
expand
collapse
expand 0 comments
1 commit
expand
collapse
Sachy's crypto scheme lmao
1/2 failed, 1/2 success
expand
collapse
expand 0 comments
1 commit
expand
collapse
Sachy's crypto scheme lmao
2/2 success
expand
collapse
expand 0 comments
1 commit
expand
collapse
Sachy's crypto scheme lmao
2/2 success
expand
collapse
expand 0 comments
1 commit
expand
collapse
Sachy's crypto scheme lmao
2/2 success
expand
collapse
expand 0 comments
1 commit
expand
collapse
Sachy's crypto scheme lmao
2/2 success
expand
collapse
expand 0 comments
1 commit
expand
collapse
Sachy's crypto scheme lmao
2/2 success
expand
collapse
expand 0 comments
1 commit
expand
collapse
Sachy's crypto scheme lmao
2/2 failed
expand
collapse
expand 0 comments
1 commit
expand
collapse
Sachy's crypto scheme lmao
2/2 success
expand
collapse
expand 0 comments
1 commit
expand
collapse
Sachy's crypto scheme lmao
2/2 success
expand
collapse
expand 0 comments
1 commit
expand
collapse
Sachy's crypto scheme lmao
2/2 success
expand
collapse
expand 0 comments
1 commit
expand
collapse
Sachy's crypto scheme lmao
2/2 success
expand
collapse
expand 0 comments
1 commit
expand
collapse
Sachy's crypto scheme lmao
2/2 success
expand
collapse
expand 0 comments
1 commit
expand
collapse
Sachy's crypto scheme lmao