Skip to content

Fix visibility of digest implementations #9503

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 26, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/libextra/crypto/md5.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
18 changes: 12 additions & 6 deletions src/libextra/crypto/sha2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ impl Engine512 {
}


struct Sha512 {
/// The SHA-512 hash algorithm
pub struct Sha512 {
priv engine: Engine512
}

Expand Down Expand Up @@ -282,7 +283,8 @@ static H512: [u64, ..8] = [
];


struct Sha384 {
/// The SHA-384 hash algorithm
pub struct Sha384 {
priv engine: Engine512
}

Expand Down Expand Up @@ -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
}

Expand Down Expand Up @@ -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
}

Expand Down Expand Up @@ -635,7 +639,8 @@ impl Engine256 {
}


struct Sha256 {
/// The SHA-256 hash algorithm
pub struct Sha256 {
priv engine: Engine256
}

Expand Down Expand Up @@ -687,7 +692,8 @@ static H256: [u32, ..8] = [
];


struct Sha224 {
/// The SHA-224 hash algorithm
pub struct Sha224 {
priv engine: Engine256
}

Expand Down