X-Git-Url: http://git.euphorik.ch/?p=crypto_lab1.git;a=blobdiff_plain;f=lab1_rust%2Fsrc%2Fmain.rs;fp=lab1_rust%2Fsrc%2Fmain.rs;h=dbaebea96452b030db58ec6b2308fe49ddae69f7;hp=ea511beaa6ed4b49aa20088f1ad8c5c2ea5a3cf9;hb=fe03a7f9df6b8f4cf03e2399aeb68a7dc2605a67;hpb=4e2d63f98c464119e7b475a8f981b99d991c3727 diff --git a/lab1_rust/src/main.rs b/lab1_rust/src/main.rs index ea511be..dbaebea 100644 --- a/lab1_rust/src/main.rs +++ b/lab1_rust/src/main.rs @@ -29,14 +29,14 @@ 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 => { - println!("The oracle machine has found the clear block!:"); + println!("The oracle machine has found the plain block!:"); println!(" Expected block: {}", expected_plain_block.to_vec()); println!(" Decrypted block: {}", deciphered) } Some(ref other) => - println!("The oracle machine hasn't found the clear block: {}", other), + println!("The oracle machine hasn't found the plain block: {}", other), _ => - println!("The oracle machine hasn't found the clear block"), + println!("The oracle machine hasn't found the plain block"), } }