def sha

bend-osdev-crypto@0.1.0.0 · check.bend:292

import bend-osdev-crypto@0.1.0.0/check.bend as Check
import Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B

292# SHA-256 and SHA-512 through the hash interface: one-shot, and in three
293# pieces through the streaming interface
294def sha(~digest: B.Octets -> B.Octets, +m: B.Octets) -> String:
295  B.Octets.hex(digest(m))

Uses (3)

Used by (1)