tetctf_2021

tetctf 2021 | unevaluated

#tetctf_2021 from collections import namedtuple from Crypto.Util.number import getPrime, isPrime, getRandomRange Complex = namedtuple("Complex", ["re", "im"]) def complex_mult(c1, c2, modulus): return Complex( (c1.re * c2.re - c1.im * c2.i…

tetctf 2021 | unimplemented

#tetctf_2021 from collections import namedtuple from Crypto.Util.number import getPrime import random Complex = namedtuple("Complex", ["re", "im"]) def complex_mult(c1, c2, modulus): return Complex( (c1.re * c2.re - c1.im * c2.im) % modulu…

tetctf 2021 | uncollidable

#tetctf_2021 import json import os from hashlib import sha256 from typing import Callable, Dict H: Callable[[bytes], bytes] = lambda s: sha256(s).digest() def get_mac(key: bytes, data: bytes) -> bytes: """Just a MAC generation function sim…