Loading openssl-sys/src/sha.rs +2 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ extern "C" { } #[repr(C)] #[derive(Clone)] pub struct SHA256_CTX { pub h: [SHA_LONG; 8], pub Nl: SHA_LONG, Loading @@ -49,6 +50,7 @@ extern "C" { pub type SHA_LONG64 = u64; #[repr(C)] #[derive(Clone)] pub struct SHA512_CTX { pub h: [SHA_LONG64; 8], pub Nl: SHA_LONG64, Loading openssl/src/sha.rs +4 −0 Original line number Diff line number Diff line Loading @@ -146,6 +146,7 @@ impl Sha1 { } /// An object which calculates a SHA224 hash of some data. #[derive(Clone)] pub struct Sha224(ffi::SHA256_CTX); impl Sha224 { Loading Loading @@ -181,6 +182,7 @@ impl Sha224 { } /// An object which calculates a SHA256 hash of some data. #[derive(Clone)] pub struct Sha256(ffi::SHA256_CTX); impl Sha256 { Loading Loading @@ -216,6 +218,7 @@ impl Sha256 { } /// An object which calculates a SHA384 hash of some data. #[derive(Clone)] pub struct Sha384(ffi::SHA512_CTX); impl Sha384 { Loading Loading @@ -251,6 +254,7 @@ impl Sha384 { } /// An object which calculates a SHA512 hash of some data. #[derive(Clone)] pub struct Sha512(ffi::SHA512_CTX); impl Sha512 { Loading Loading
openssl-sys/src/sha.rs +2 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ extern "C" { } #[repr(C)] #[derive(Clone)] pub struct SHA256_CTX { pub h: [SHA_LONG; 8], pub Nl: SHA_LONG, Loading @@ -49,6 +50,7 @@ extern "C" { pub type SHA_LONG64 = u64; #[repr(C)] #[derive(Clone)] pub struct SHA512_CTX { pub h: [SHA_LONG64; 8], pub Nl: SHA_LONG64, Loading
openssl/src/sha.rs +4 −0 Original line number Diff line number Diff line Loading @@ -146,6 +146,7 @@ impl Sha1 { } /// An object which calculates a SHA224 hash of some data. #[derive(Clone)] pub struct Sha224(ffi::SHA256_CTX); impl Sha224 { Loading Loading @@ -181,6 +182,7 @@ impl Sha224 { } /// An object which calculates a SHA256 hash of some data. #[derive(Clone)] pub struct Sha256(ffi::SHA256_CTX); impl Sha256 { Loading Loading @@ -216,6 +218,7 @@ impl Sha256 { } /// An object which calculates a SHA384 hash of some data. #[derive(Clone)] pub struct Sha384(ffi::SHA512_CTX); impl Sha384 { Loading Loading @@ -251,6 +254,7 @@ impl Sha384 { } /// An object which calculates a SHA512 hash of some data. #[derive(Clone)] pub struct Sha512(ffi::SHA512_CTX); impl Sha512 { Loading