def sized
import bend-collections-laws-crypto@1.0.0.0/src/crypto/sha/packed/packed.bend as Packedimport Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/sha/state.bend as S
184def sized(+length: Nat, pair: Array<U32> & U32) -> Maybe<&2,S.State>:
185 (a,capacity) = pair
186 checked(Nat.is_le(length,Nat.mul(4n,U32.to_nat(capacity))),a,length)