def zeros_if

bend-collections-laws-crypto@1.0.0.0 · src/crypto/sha512/core.bend:147

import bend-collections-laws-crypto@1.0.0.0/src/crypto/sha512/core.bend as Core
import Base

147def zeros_if(r: Nat, fits: Bool) -> Nat:
148  match fits:
149    case True{}:
150      Nat.sub(111n, r)
151    case False{}:
152      Nat.sub(239n, r)

Uses (3)

Used by (2)