Skip to content

Commit 8e8c841

Browse files
authored
Merge 256efb5 into 004cabb
2 parents 004cabb + 256efb5 commit 8e8c841

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/lib.nr

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
mod sha256;
22
mod sha224;
33

4+
pub use sha224::partial_sha224_var_end;
45
pub use sha224::sha224_var;
56
pub use sha256::digest;
7+
pub use sha256::partial_sha256_var_end;
8+
pub use sha256::partial_sha256_var_interstitial;
69
pub use sha256::sha256_var;

src/sha256.nr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ pub(crate) fn process_full_blocks<let N: u32>(
117117
for i in 0..num_blocks {
118118
let msg_start = BLOCK_SIZE * i;
119119
let (new_msg_block, new_msg_byte_ptr) =
120-
// Safety: separate verification function
120+
// Safety: separate verification function
121121
unsafe { build_msg_block(msg, message_size, msg_start) };
122122

123123
if msg_start < message_size {
@@ -515,7 +515,7 @@ pub(crate) fn finalize_sha256_blocks<let N: u32>(
515515
let num_blocks = total_len / BLOCK_SIZE;
516516
let msg_start = BLOCK_SIZE * num_blocks;
517517
let (new_msg_block, new_msg_byte_ptr) =
518-
// Safety: separate verification function
518+
// Safety: separate verification function
519519
unsafe { build_msg_block(msg, message_size, msg_start) };
520520

521521
if msg_start < message_size {

0 commit comments

Comments
 (0)