Implement challenge 33 Diffie-Hellman

This commit is contained in:
2022-08-31 19:30:34 -04:00
parent ddafb43934
commit 9e568ac97c
7 changed files with 91 additions and 19 deletions

View File

@@ -186,7 +186,7 @@ mod challenge19 {
for i in 0..ciphers_len {
for j in i..ciphers_len {
if target_bytes[i] == None || target_bytes[j] == None {
if target_bytes[i].is_none() || target_bytes[j].is_none() {
continue;
}
let xored = target_bytes[i].unwrap() ^ target_bytes[j].unwrap();