def suffix
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/chacha.bend as Chachaimport Base
137def suffix(n: Nat, xs: List<&2, U32>) -> List<&2, U32>:
138 match n xs:
139 case 0n _: xs
140 case 1n+p Nil{}: Nil{}
141 case 1n+p x <> rest: suffix(p, rest)
Uses (3)
Used by (15)
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/chacha:xnonce
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/chacha/stream:skip_eq
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/chacha20poly1305:open_len
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aead/chacha20poly1305:xnonce_eq
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/chacha/xchacha:xencrypt_correct
- …