def suffix
import bend-collections-laws-crypto@1.0.0.0/src/crypto/sha512/core.bend as Coreimport Base
157# 0x80, zeros up to 112 mod 128, then the 128-bit bit length.
158def suffix(+n: Nat) -> List<&2, U32>:
159 128 <> List.append(&2, U32, List.replicate(U32, zeros(Nat.mod(n, 128n)), 0), bit_length(n))
Uses (8)
Used by (9)
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/ed25519/bytes:sha_okb
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/sha512/conformance:sha512_correct
- bend-collections-laws-crypto@1.0.0.0/src/crypto/hash:finish512
- bend-collections-laws-crypto@1.0.0.0/src/crypto/sha512/core:sha512
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/hash/incremental:finish512_eta
- …