<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ECC on</title><link>/tags/ecc/</link><description>Recent content in ECC on</description><generator>Hugo -- gohugo.io</generator><lastBuildDate>Thu, 17 Jul 2025 19:31:16 +0100</lastBuildDate><atom:link href="/tags/ecc/index.xml" rel="self" type="application/rss+xml"/><item><title>Flashing Lights - SummerRush CTF</title><link>/post/sr25-lights/</link><pubDate>Thu, 17 Jul 2025 19:31:16 +0100</pubDate><guid>/post/sr25-lights/</guid><description>Click to expand challenge code
from hashlib import sha256 from Crypto.Util.number import bytes_to_long, long_to_bytes from random import randint from Crypto.Cipher import AES from Crypto.Util.Padding import pad import json FLAG = b&amp;quot;FL1TZ{??????????????????????????}&amp;quot; p = 0xa9fb57dba1eea9bc3e660a909d838d726e3bf623d52620282013481d1f6e5377 a = -3 b = 27 E = EllipticCurve(GF(p), [a,b]) G = E.gens()[0] j = E.j_invariant() def gen_random_number(): while True: P = E.random_point() if P.order() &amp;gt; j: break return bytes_to_long(sha256(long_to_bytes(int(P.xy()[0]))).digest()[:8]) def derive_key_iv(secret): key = sha256(long_to_bytes(secret)).</description></item></channel></rss>