def digest
import bend-collections-laws-crypto@1.0.0.0/src/crypto/hash.bend as Hashimport Base
535def digest(h: Hasher) -> List<&2, U32>:
536 match h:
537 case Sha256H{st, len}:
538 finish256(st, len, 48n)
539 case Sha512H{st, len}:
540 finish512(st, len, 64n)
541 case Sha3H{st, len}:
542 finish3(st, len, 24n)
Uses (6)
Used by (17)
- bend-osdev-crypto@0.1.0.0/inst_sha2:CrSha2.final
- bend-osdev-crypto@0.1.0.0/inst_sha3:CrSha3.final
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/hash/laws:Incremental.sha256
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/hash/laws:Incremental.sha3_256
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/hash/laws:Incremental.sha512
- …