68aef942f5dce22319f208fedd72cce39f0f03da
2 use std
::io
::{ TcpStream
};
3 use end_point
::EndPoint
;
5 /// Try to decypher a cyphered data block by using an oracle on the provided address and port.
6 /// May prints some message on the stdout.
7 pub fn decypher(address
: &str, port
: u16, cypherblock
: [u8, ..16]) -> Option
<Vec
<u8>> {
8 let end_point
= EndPoint
::new(
9 match TcpStream
::connect(address
, port
) {
12 println!("Unable to connect to the oracle on {}:{}", address
, port
);