X-Git-Url: http://git.euphorik.ch/?p=crypto_lab1.git;a=blobdiff_plain;f=lab1_rust%2Fsrc%2Fmain.rs;h=80551f88afb33ed56d1ab7d13c5a822662843ae8;hp=3beee951341cb960aeb0f3624257da23aa5da55f;hb=caf6b34147c52f94cb08e66c9d1af44089a3f493;hpb=1b5d7e2cc71922a5f2b3100fb8dbec65ffdc62e6 diff --git a/lab1_rust/src/main.rs b/lab1_rust/src/main.rs index 3beee95..80551f8 100644 --- a/lab1_rust/src/main.rs +++ b/lab1_rust/src/main.rs @@ -28,7 +28,7 @@ fn do_oracle_attack(address: &str, variant: packet::Variant) { */ match oracle_machine::decipher(address, PORT, &xor_operand, &cipher_block, variant) { - Some(ref deciphered) if deciphered.as_slice() == &expected_plain_block => { + Some(ref deciphered) if deciphered.as_slice() == expected_plain_block => { println!("The oracle machine has found the plain block!:"); println!(" Expected block: {}", expected_plain_block.to_vec()); println!(" Decrypted block: {}", deciphered)