def extension
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/sha512.bend as Sha512import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/sha512/types.bend as T
210def extension(rounds: Nat, +history: List<&2, T.Lane>) -> List<&2, T.Lane>:
211 match rounds:
212 case 0n:
213 Nil{}
214 case 1n+p:
215 +w = recurrence(history)
216 w <> extension(p, w <> history)
Uses (4)
Used by (4)
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/sha512:schedule
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/sha512/conformance:block_rounds_correct
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/sha512/conformance:compress16_correct
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/sha512/conformance:window_rounds_correct