mizchi/bit/hash does not have a README file
pub struct Sha1State { h : FixedArray[Int] block : FixedArray[Byte] w : FixedArray[Int] block_len : Int total_len : Int64}
fn Sha1State::finish_raw(self : Sha1State) -> FixedArray[Byte]
fn Sha1State::new() -> Sha1State
fn Sha1State::reset(self : Sha1State) -> Unit
fn Sha1State::update(self : Sha1State, data : Bytes) -> Unit
fn Sha1State::update_byte(self : Sha1State, b : Byte) -> Unit
fn Sha1State::update_slice(self : Sha1State, data : Bytes, offset : Int, len : Int) -> Unit
fn Sha1State::update_string(self : Sha1State, s : String) -> Unit
pub struct Sha256State { inner : @moonbitlang/x/crypto.SHA256SHA256}
fn Sha256State::finish_raw(self : Sha256State) -> FixedArray[Byte]
fn Sha256State::new() -> Sha256State
fn Sha256State::reset(self : Sha256State) -> Unit
fn Sha256State::update(self : Sha256State, data : Bytes) -> Unit
fn Sha256State::update_byte(self : Sha256State, b : Byte) -> Unit
fn Sha256State::update_slice(self : Sha256State, data : Bytes, offset : Int, len : Int) -> Unit
fn Sha256State::update_string(self : Sha256State, s : String) -> Unit
fn hex_char_to_int(c : Char) -> Int raise
fn int_to_hex4(n : Int) -> String
fn is_hex_char(c : Char) -> Bool
fn is_hex_string(s : String) -> Bool
fn lower_hex_string(s : String) -> String
fn sha1_array_prefix_raw(data : Array[Byte], len : Int) -> FixedArray[Byte]
fn sha1_array_raw(data : Array[Byte]) -> FixedArray[Byte]
fn sha1_prefix_raw(data : Bytes, len : Int) -> FixedArray[Byte]
fn sha1_raw(data : Bytes) -> FixedArray[Byte]
fn sha256_array_prefix_raw(data : Array[Byte], len : Int) -> FixedArray[Byte]
fn sha256_array_raw(data : Array[Byte]) -> FixedArray[Byte]
fn sha256_prefix_raw(data : Bytes, len : Int) -> FixedArray[Byte]
fn sha256_raw(data : Bytes) -> FixedArray[Byte]
fn short_hex(hex : String, n : Int) -> String
Install
Pure MoonBit Git implementation
No dependents
Powered by MoonBit
© 2026 mooncakes.io