Skip to content

Commit 1c56817

Browse files
Make sha256 rust binding public
1 parent fda9684 commit 1c56817

File tree

1 file changed

+1
-1
lines changed
  • extensions/sha256/guest/src

1 file changed

+1
-1
lines changed

extensions/sha256/guest/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ pub const SHA256_FUNCT7: u8 = 0x1;
1717
#[cfg(target_os = "zkvm")]
1818
#[inline(always)]
1919
#[no_mangle]
20-
extern "C" fn zkvm_sha256_impl(bytes: *const u8, len: usize, output: *mut u8) {
20+
pub extern "C" fn zkvm_sha256_impl(bytes: *const u8, len: usize, output: *mut u8) {
2121
openvm_platform::custom_insn_r!(opcode = OPCODE, funct3 = SHA256_FUNCT3, funct7 = SHA256_FUNCT7, rd = In output, rs1 = In bytes, rs2 = In len);
2222
}

0 commit comments

Comments
 (0)