Check.sha: def of bend-osdev-crypto@0.1.0.0 Import: import bend-osdev-crypto@0.1.0.0/check.bend as Check Lines 292-295 of bend-osdev-crypto@0.1.0.0/check.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-crypto@0.1.0.0/check.bend&start_line=292&end_line=295 import Base import bend-osdev-bytes@0.1.0.0/bytes.bend as B # SHA-256 and SHA-512 through the hash interface: one-shot, and in three # pieces through the streaming interface def sha(~digest: B.Octets -> B.Octets, +m: B.Octets) -> String: B.Octets.hex(digest(m)) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=Octets https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=Octets.hex