src/crypto/sha/packed/sha256.bend checks
raw source on the hub · import 0xe4067e0d858024083f36a7abe7281e89/src/crypto/sha/packed/sha256.bend as Sha256
2 imports
import Base import ./buffer.bend as Buffer
Definitions
def sha256 source · line 7 · raw
@words:Array<U32> -> @byte_length:Nat -> Maybe<&1, Array<U32>>
Sole production hash API. Packed input and output, four bytes per U32, big-endian. Consumes input; returns exactly eight words, or None for an oversized byte length. No byte-list or digest-list compatibility API.
def hex_digit_if source · line 10 · raw
@x:U32 -> @small:Bool -> Char
def hex_digit source · line 17 · raw
@+x:U32 -> Char
def hex_word_go source · line 20 · raw
@n:Nat -> @+x:U32 -> @acc:String -> String
def hex_word source · line 27 · raw
@x:U32 -> String
def hex_walk source · line 31 · raw
@n:Nat -> @+index:U32 -> @pair:Pair(Array<U32>, U32) -> String
Formatting helper consumes eight words; it does not create a digest list.
def hex source · line 36 · raw
@a:Array<U32> -> String