Loading crypto/hash.rs +1 −1 Original line number Diff line number Diff line Loading @@ -105,7 +105,7 @@ pub fn hash(t: HashType, data: &[u8]) -> ~[u8] { #[cfg(test)] mod tests { use extra::hex::{FromHex, ToHex}; use serialize::hex::{FromHex, ToHex}; struct HashTest { input: ~[u8], Loading crypto/symm.rs +2 −2 Original line number Diff line number Diff line Loading @@ -194,7 +194,7 @@ pub fn decrypt(t: Type, key: &[u8], iv: ~[u8], data: &[u8]) -> ~[u8] { #[cfg(test)] mod tests { use extra::hex::FromHex; use serialize::hex::FromHex; // Test vectors from FIPS-197: // http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf Loading Loading @@ -223,7 +223,7 @@ mod tests { } fn cipher_test(ciphertype: super::Type, pt: ~str, ct: ~str, key: ~str, iv: ~str) { use extra::hex::ToHex; use serialize::hex::ToHex; let cipher = super::Crypter::new(ciphertype); cipher.init(super::Encrypt, key.from_hex().unwrap(), iv.from_hex().unwrap()); Loading lib.rs +2 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,8 @@ #[doc(html_root_url="http://www.rust-ci.org/sfackler/rust-openssl/doc")]; extern mod extra; #[cfg(test)] extern mod serialize; extern mod sync; pub mod ssl; Loading Loading
crypto/hash.rs +1 −1 Original line number Diff line number Diff line Loading @@ -105,7 +105,7 @@ pub fn hash(t: HashType, data: &[u8]) -> ~[u8] { #[cfg(test)] mod tests { use extra::hex::{FromHex, ToHex}; use serialize::hex::{FromHex, ToHex}; struct HashTest { input: ~[u8], Loading
crypto/symm.rs +2 −2 Original line number Diff line number Diff line Loading @@ -194,7 +194,7 @@ pub fn decrypt(t: Type, key: &[u8], iv: ~[u8], data: &[u8]) -> ~[u8] { #[cfg(test)] mod tests { use extra::hex::FromHex; use serialize::hex::FromHex; // Test vectors from FIPS-197: // http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf Loading Loading @@ -223,7 +223,7 @@ mod tests { } fn cipher_test(ciphertype: super::Type, pt: ~str, ct: ~str, key: ~str, iv: ~str) { use extra::hex::ToHex; use serialize::hex::ToHex; let cipher = super::Crypter::new(ciphertype); cipher.init(super::Encrypt, key.from_hex().unwrap(), iv.from_hex().unwrap()); Loading
lib.rs +2 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,8 @@ #[doc(html_root_url="http://www.rust-ci.org/sfackler/rust-openssl/doc")]; extern mod extra; #[cfg(test)] extern mod serialize; extern mod sync; pub mod ssl; Loading