<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cryptography on</title><link>https://blog.amuralmanji.com/categories/cryptography/</link><description>Recent content in Cryptography on</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 15 Oct 2025 19:30:00 +0400</lastBuildDate><atom:link href="https://blog.amuralmanji.com/categories/cryptography/index.xml" rel="self" type="application/rss+xml"/><item><title>Rediscovered Affine Equivalence Between CLEFIA and Rijndael S-boxes</title><link>https://blog.amuralmanji.com/posts/ae_clefia_aes/</link><pubDate>Wed, 15 Oct 2025 19:30:00 +0400</pubDate><guid>https://blog.amuralmanji.com/posts/ae_clefia_aes/</guid><description>&lt;p&gt;An interesting Link shows that the &lt;strong&gt;CLEFIA S-box&lt;/strong&gt; and the &lt;strong&gt;Rijndael (AES) S-box&lt;/strong&gt; are &lt;strong&gt;affine equivalent&lt;/strong&gt;—meaning one can be transformed into the other through invertible affine transformations over the finite field $\mathbb{F}_2^{8}$.&lt;/p&gt;&#10;&lt;p&gt;Formally, two functions ( f ) and ( g ) are affine equivalent if there exist invertible affine mappings ( A ), ( B ), and constants ( a ), ( b ) such that:&lt;/p&gt;&#10;&lt;p&gt;$$&#10;f(x) = (B \circ g \circ A)(x \oplus a) \oplus b&#10;$$&lt;/p&gt;</description></item><item><title>Implementation of CLEFIA S-box Using Normal Basis — Inspired by A Very Compact Rijndael S-box</title><link>https://blog.amuralmanji.com/posts/clefia_sbox_normal_basis/</link><pubDate>Fri, 18 Apr 2025 14:00:00 +0400</pubDate><guid>https://blog.amuralmanji.com/posts/clefia_sbox_normal_basis/</guid><description>&lt;p&gt;A few years ago, I explored one of my favorite cryptographic building blocks: the substitution box (S-box). Back then, I came across the elegant paper &lt;em&gt;A Very Compact Rijndael S-box&lt;/em&gt;, which showed how to eliminate lookup tables by leveraging &lt;strong&gt;normal basis representation&lt;/strong&gt; and logical operations in $F_{2^{8}}$. That approach deeply resonated with me—compact, efficient, and mathematically sound.&lt;/p&gt;&#10;&lt;p&gt;Recently, I decided to revisit that work—but this time with a new challenge: re-implementing the &lt;strong&gt;CLEFIA S-box&lt;/strong&gt; using the same principles. CLEFIA, Sony’s lightweight block cipher, uses two $8 \times 8$ S-boxes ($S_0$ and $S_1$), and I focused on reconstructing &lt;strong&gt;S₁&lt;/strong&gt; using field inversion and affine transformations—all without tables.&lt;/p&gt;</description></item></channel></rss>