Tigls/mb-hash/sha2 does not have a README file

    Sha256

    pub struct Sha256 {
    state : FixedArray[UInt]
    buffer : FixedArray[UInt]
    buffer_len : Int
    total_len : UInt64
    }

    Sha256::digest

    fn Sha256::digest(input : Array[UInt]) -> FixedArray[UInt]

    Sha256::digest_bytes

    fn Sha256::digest_bytes(input : Bytes) -> FixedArray[UInt]

    Sha256::digest_string

    fn Sha256::digest_string(input : String) -> FixedArray[UInt]

    Sha256::finalize

    fn Sha256::finalize(self : Sha256) -> FixedArray[UInt]

    Sha256::new

    fn Sha256::new() -> Sha256

    Sha256::update

    fn Sha256::update(self : Sha256, input : Array[UInt]) -> Unit

    Sha512

    pub struct Sha512 {
    state : FixedArray[UInt64]
    buffer : FixedArray[UInt]
    buffer_len : Int
    total_len : UInt64
    }

    Sha512::digest

    fn Sha512::digest(input : Array[UInt]) -> FixedArray[UInt64]

    Sha512::digest_bytes

    fn Sha512::digest_bytes(input : Bytes) -> FixedArray[UInt64]

    Sha512::digest_string

    fn Sha512::digest_string(input : String) -> FixedArray[UInt64]

    Sha512::finalize

    fn Sha512::finalize(self : Sha512) -> FixedArray[UInt64]

    Sha512::new

    fn Sha512::new() -> Sha512

    Sha512::update

    fn Sha512::update(self : Sha512, input : Array[UInt]) -> Unit

    get_k32

    fn get_k32() -> Array[UInt]

    get_k64

    fn get_k64() -> Array[UInt64]

    hash_to_hex

    fn hash_to_hex(hash : FixedArray[UInt]) -> String

    rotate_right_u32

    fn rotate_right_u32(value : UInt, n : Int) -> UInt

    rotate_right_u64

    fn rotate_right_u64(value : UInt64, n : Int) -> UInt64

    sha256_state

    fn sha256_state() -> FixedArray[UInt]

    sha512_state

    fn sha512_state() -> FixedArray[UInt64]