diff options
| author | bors <bors@rust-lang.org> | 2013-09-26 06:56:00 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-09-26 06:56:00 -0700 |
| commit | 0f9bcaf7fe0cebf0d1be0e17025c0e3b76e14507 (patch) | |
| tree | ce9d459c19c4411b02443268796a6d912ccd3274 | |
| parent | 0022f2b20418a35737cd944487b1b272f68de4f2 (diff) | |
| parent | 252c6dbe857c3440c889928b451790a52106f5c6 (diff) | |
| download | rust-0f9bcaf7fe0cebf0d1be0e17025c0e3b76e14507.tar.gz rust-0f9bcaf7fe0cebf0d1be0e17025c0e3b76e14507.zip | |
auto merge of #9503 : dcrewi/rust/fix-digest-visibility, r=alexcrichton
I really have no idea why the tests didn't fail. Maybe it's another cross-crate issue?
| -rw-r--r-- | src/libextra/crypto/md5.rs | 2 | ||||
| -rw-r--r-- | src/libextra/crypto/sha2.rs | 18 |
2 files changed, 13 insertions, 7 deletions
diff --git a/src/libextra/crypto/md5.rs b/src/libextra/crypto/md5.rs index 8e07c7ee1c7..5ef113971ab 100644 --- a/src/libextra/crypto/md5.rs +++ b/src/libextra/crypto/md5.rs @@ -156,7 +156,7 @@ static C4: [u32, ..16] = [ /// The MD5 Digest algorithm -struct Md5 { +pub struct Md5 { priv length_bytes: u64, priv buffer: FixedBuffer64, priv state: Md5State, diff --git a/src/libextra/crypto/sha2.rs b/src/libextra/crypto/sha2.rs index 10289fb8b97..4a8b62ffd11 100644 --- a/src/libextra/crypto/sha2.rs +++ b/src/libextra/crypto/sha2.rs @@ -230,7 +230,8 @@ impl Engine512 { } -struct Sha512 { +/// The SHA-512 hash algorithm +pub struct Sha512 { priv engine: Engine512 } @@ -282,7 +283,8 @@ static H512: [u64, ..8] = [ ]; -struct Sha384 { +/// The SHA-384 hash algorithm +pub struct Sha384 { priv engine: Engine512 } @@ -332,7 +334,8 @@ static H384: [u64, ..8] = [ ]; -struct Sha512Trunc256 { +/// The SHA-512 hash algorithm with digest truncated to 256 bits +pub struct Sha512Trunc256 { priv engine: Engine512 } @@ -380,7 +383,8 @@ static H512_TRUNC_256: [u64, ..8] = [ ]; -struct Sha512Trunc224 { +/// The SHA-512 hash algorithm with digest truncated to 224 bits +pub struct Sha512Trunc224 { priv engine: Engine512 } @@ -635,7 +639,8 @@ impl Engine256 { } -struct Sha256 { +/// The SHA-256 hash algorithm +pub struct Sha256 { priv engine: Engine256 } @@ -687,7 +692,8 @@ static H256: [u32, ..8] = [ ]; -struct Sha224 { +/// The SHA-224 hash algorithm +pub struct Sha224 { priv engine: Engine256 } |
