def checked

bend-collections-laws-crypto@1.0.0.0 · src/crypto/keccak/keccak.bend:329

import bend-collections-laws-crypto@1.0.0.0/src/crypto/keccak/keccak.bend as Keccak
import Base

329def checked(+round_count: Nat,valid: Bool, a: Array<U32>, length: Nat) -> Maybe<&1,Array<U32>>:
330  match valid:
331    case False{}: None{}
332    case True{}: Some{digest(unchecked(round_count,a,length))}

Uses (7)

Used by (5)