#IrisCTF2024 # https://en.wikipedia.org/wiki/Salsa20#ChaCha20_adoption from Crypto.Util.number import long_to_bytes, bytes_to_long import secrets def ROTL(a, b): return (((a) << (b)) | ((a % 2**32) >> (32 - (b)))) % 2**32 def qr(x, a, b, c, d): x[a] += x[b]; x[d] ^= x[a]; x[d] = ROTL(x[d],16) x[c] +…