Loading openssl-sys/src/sha.rs +1 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ pub type SHA_LONG = c_uint; pub const SHA_LBLOCK: c_int = 16; #[repr(C)] #[derive(Clone)] pub struct SHA_CTX { pub h0: SHA_LONG, pub h1: SHA_LONG, Loading openssl/src/sha.rs +1 −0 Original line number Diff line number Diff line Loading @@ -110,6 +110,7 @@ pub fn sha512(data: &[u8]) -> [u8; 64] { /// /// SHA1 is known to be insecure - it should not be used unless required for /// compatibility with existing systems. #[derive(Clone)] pub struct Sha1(ffi::SHA_CTX); impl Sha1 { Loading Loading
openssl-sys/src/sha.rs +1 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ pub type SHA_LONG = c_uint; pub const SHA_LBLOCK: c_int = 16; #[repr(C)] #[derive(Clone)] pub struct SHA_CTX { pub h0: SHA_LONG, pub h1: SHA_LONG, Loading
openssl/src/sha.rs +1 −0 Original line number Diff line number Diff line Loading @@ -110,6 +110,7 @@ pub fn sha512(data: &[u8]) -> [u8; 64] { /// /// SHA1 is known to be insecure - it should not be used unless required for /// compatibility with existing systems. #[derive(Clone)] pub struct Sha1(ffi::SHA_CTX); impl Sha1 { Loading