<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Implementation on</title><link>https://blog.amuralmanji.com/categories/implementation/</link><description>Recent content in Implementation on</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 18 Apr 2025 14:00:00 +0400</lastBuildDate><atom:link href="https://blog.amuralmanji.com/categories/implementation/index.xml" rel="self" type="application/rss+xml"/><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>