Add the report.
[crypto_lab1.git] / src / oracle_machine.rs
diff --git a/src/oracle_machine.rs b/src/oracle_machine.rs
deleted file mode 100644 (file)
index 68aef94..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-use std::io;
-use std::io::{ TcpStream };
-use end_point::EndPoint;
-
-/// Try to decypher a cyphered data block by using an oracle on the provided address and port.
-/// May prints some message on the stdout.
-pub fn decypher(address: &str, port: u16, cypherblock: [u8, ..16]) -> Option<Vec<u8>> {
-   let end_point = EndPoint::new(
-      match TcpStream::connect(address, port) {
-         Ok(s) => s,
-         _ => {
-            println!("Unable to connect to the oracle on {}:{}", address, port);
-            return None
-         }
-      }
-   );
-
-   None
-}