def sha256_packed_bytes

mylsm-lsm-store@0.6.0.1 · src/hub_sha/sha256.bend:205

import mylsm-lsm-store@0.6.0.1/src/hub_sha/sha256.bend as Sha256
import Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Packed

205# Return the SHA-256 digest as packed bytes in canonical big-endian order.
206def sha256_packed_bytes(bytes: Packed.Bytes) -> Packed.Bytes:
207  packed.digest.words(sha256_packed(bytes),
208    (Packed.Cursor.new(Packed.Bytes{32, Packed.alloc(32)}), True{}))

Uses (7)

Used by (22)