Repo of no-std crates for my personal embedded projects

Sachy's crypto scheme lmao #13

merged opened by sachy.dev targeting main from sachy-crypto
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:usjm3ynnir6y4inkcdovrfei/sh.tangled.repo.pull/3mhklndgukc22
+11 -2
Interdiff #9 #10
Cargo.lock

This file has not been changed.

Cargo.toml

This file has not been changed.

sachy-crypto/Cargo.toml

This file has not been changed.

+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
+5
sachy-crypto/README.md
··· 1 + # Sachy's Crypto 2 + 3 + A custom rolled encryption scheme that more or less implements HPKE. 4 + 5 + ☢️ **WARNING: DO NOT USE IN PRODUCTION. THIS CRATE IS FOR LEARNING/PERSONAL USAGE. AAAAAAAAAA** ☢️

History

18 rounds 0 comments
sign up or login to add to the discussion
1 commit
expand
Sachy's crypto scheme lmao
2/2 success
expand
expand 0 comments
pull request successfully merged
1 commit
expand
Sachy's crypto scheme lmao
1/2 failed, 1/2 success
expand
expand 0 comments
1 commit
expand
Sachy's crypto scheme lmao
2/2 success
expand
expand 0 comments
1 commit
expand
Sachy's crypto scheme lmao
2/2 success
expand
expand 0 comments
1 commit
expand
Sachy's crypto scheme lmao
2/2 success
expand
expand 0 comments
1 commit
expand
Sachy's crypto scheme lmao
1/2 failed, 1/2 success
expand
expand 0 comments
1 commit
expand
Sachy's crypto scheme lmao
2/2 success
expand
expand 0 comments
sachy.dev submitted #10
1 commit
expand
Sachy's crypto scheme lmao
2/2 success
expand
expand 0 comments
1 commit
expand
Sachy's crypto scheme lmao
2/2 success
expand
expand 0 comments
1 commit
expand
Sachy's crypto scheme lmao
2/2 success
expand
expand 0 comments
1 commit
expand
Sachy's crypto scheme lmao
2/2 success
expand
expand 0 comments
1 commit
expand
Sachy's crypto scheme lmao
2/2 failed
expand
expand 0 comments
1 commit
expand
Sachy's crypto scheme lmao
2/2 success
expand
expand 0 comments
1 commit
expand
Sachy's crypto scheme lmao
2/2 success
expand
expand 0 comments
1 commit
expand
Sachy's crypto scheme lmao
2/2 success
expand
expand 0 comments
1 commit
expand
Sachy's crypto scheme lmao
2/2 success
expand
expand 0 comments
1 commit
expand
Sachy's crypto scheme lmao
2/2 success
expand
expand 0 comments
sachy.dev submitted #0
1 commit
expand
Sachy's crypto scheme lmao
2/2 success
expand
expand 0 comments