Skip to content

Commit b4a307d

Browse files
committed
Small fix
1 parent efec464 commit b4a307d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sha2/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ categories = ["cryptography", "no-std"]
1111
edition = "2018"
1212

1313
[dependencies]
14-
cpufeatures = "0.2.1"
14+
cpufeatures = "0.2"
1515

1616
[build-dependencies]
1717
cc = "1.0"

sha2/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub fn compress256(state: &mut [u32; 8], blocks: &[[u8; 64]]) {
4343
#[link(name = "sha512", kind = "static")]
4444
extern "C" {
4545
fn sha512_compress(state: &mut [u64; 8], block: &[u8; 128]);
46-
fn sha512_transform_rorx(state: &mut [u64; 8], block: *const [u8; 128], num_blocks: u64);
46+
fn sha512_transform_rorx(state: &mut [u64; 8], block: *const [u8; 128], num_blocks: usize);
4747
}
4848

4949
/// Safe wrapper around assembly implementation of SHA512 compression function

0 commit comments

Comments
 (0)