def sha.of
import bend-kit-postgres@0.3.0.0/scram.bend as Scramimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
import bend-kit-crypto@0.2.2.1/crypto.bend as Crypto
153def sha.of(b: Bytes.Bytes) -> IO(Result<&1, &1, U32 & String, U32 & Array<U32>>):
154 Bytes.Bytes{len, buf} = b
155 Crypto.sha256.words(len, buf)