def suffix
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/poly1305.bend as Poly1305import Base
70def suffix(n: Nat, xs: List<&2, U32>) -> List<&2, U32>:
71 match n xs:
72 case 0n _: xs
73 case 1n+k Nil{}: Nil{}
74 case 1n+k x <> rest: suffix(k, rest)
Uses (3)
Used by (8)
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/poly1305:blocks
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/poly1305:poly1305_mac
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/poly1305/mac:mac_length
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/poly1305/mac:skip_suffix
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/poly1305/mac:absorb_ok
- …