~/bend-docscommunity

proofs/crypto/sha/correctness.bend checks

raw source on the hub · import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/sha/correctness.bend as Correctness

6 imports
import Base
import ../../../src/crypto/sha/state.bend as State
import ../../../src/crypto/sha/sha256.bend as SHA
import ../../../spec/crypto/sha.bend as FIPS
import ./conformance.bend as Conformance
import ./laws.bend as Laws

Laws

law digest_octets_length provedsource · line 15 · raw

@s:0xa7e654f9780078ca65bf9e187da99d3e/src/crypto/sha/state.State -> {List.length(&2, U32, 0xa7e654f9780078ca65bf9e187da99d3e/spec/crypto/sha.digest_octets(0xa7e654f9780078ca65bf9e187da99d3e/spec/crypto/sha.digest(s))) == 32n : Nat}