<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Alpha08</title>
    <description>The latest articles on DEV Community by Alpha08 (@alpha08bnr).</description>
    <link>https://dev.to/alpha08bnr</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4254762%2F689b8954-e6d4-4761-a276-09b483e4c00b.png</url>
      <title>DEV Community: Alpha08</title>
      <link>https://dev.to/alpha08bnr</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alpha08bnr"/>
    <language>en</language>
    <item>
      <title>Nested CSIDH-HQC: Shielding CSIDH-512 with HQC in a Post-Quantum Key Exchange</title>
      <dc:creator>Alpha08</dc:creator>
      <pubDate>Fri, 20 Nov 2026 03:19:01 +0000</pubDate>
      <link>https://dev.to/alpha08bnr/nested-csidh-hqc-shielding-csidh-512-with-hqc-in-a-post-quantum-key-exchange-ai8</link>
      <guid>https://dev.to/alpha08bnr/nested-csidh-hqc-shielding-csidh-512-with-hqc-in-a-post-quantum-key-exchange-ai8</guid>
      <description>&lt;p&gt;Hi everyone,&lt;/p&gt;

&lt;p&gt;I am a developer interested in post-quantum cryptography (PQC). Recently, I built an experimental key exchange prototype combining &lt;strong&gt;CSIDH-512&lt;/strong&gt; and &lt;strong&gt;HQC&lt;/strong&gt; (Hamming Quasi-Cyclic), and I wanted to share the technical notes here.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why combine CSIDH-512 and HQC?
&lt;/h3&gt;

&lt;p&gt;Most hybrid post-quantum schemes run two algorithms in parallel and simply concatenate their shared secrets. However, standalone &lt;strong&gt;CSIDH-512&lt;/strong&gt; faces reduced quantum security due to sub-exponential quantum sieving and Kuperberg-type attacks, while scaling up CSIDH parameters significantly hurts performance.&lt;/p&gt;

&lt;p&gt;To keep the compact 64-byte public key size of CSIDH-512 while mitigating passive key harvesting, I explored a &lt;strong&gt;nested, Fujisaki-Okamoto-inspired construction&lt;/strong&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Implicit Public-Key Hiding:&lt;/strong&gt; Instead of sending the client's ephemeral CSIDH-512 public key (&lt;code&gt;pk_C&lt;/code&gt;) in cleartext, it is encrypted directly as the plaintext payload inside the server's HQC public key.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cryptographic Coupling:&lt;/strong&gt; The resulting CSIDH shared secret is hashed via &lt;code&gt;SHAKE256&lt;/code&gt; to deterministically derive the HQC ephemeral noise vectors &lt;code&gt;(r1, r2, e)&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Constant-Time Verification:&lt;/strong&gt; The server decapsulates &lt;code&gt;pk_C&lt;/code&gt;, computes the shared secret, re-derives the noise vectors, and verifies the re-encrypted ciphertext in constant time to achieve &lt;strong&gt;IND-CCA2&lt;/strong&gt; security.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Bandwidth &amp;amp; Implementation
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Total Handshake Size:&lt;/strong&gt; 6,779 bytes over a single TCP session (avoiding separate cleartext framing for &lt;code&gt;pk_C&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Language:&lt;/strong&gt; Implemented in C with memory zeroization (&lt;code&gt;OPENSSL_cleanse&lt;/code&gt;) and domain-separated &lt;code&gt;SHAKE256&lt;/code&gt; calls.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Note:&lt;/strong&gt; Because the CSIDH group action branches on secret exponent signs, this prototype strictly enforces ephemeral key rotation per session.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Technical Paper &amp;amp; Source Code
&lt;/h3&gt;

&lt;p&gt;If you are interested in the full protocol breakdown, parameter choices, and C implementation, you can check them out here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Technical Analysis (Zenodo DOI):&lt;/strong&gt; &lt;a href="https://doi.org/10.5281/zenodo.24252927" rel="noopener noreferrer"&gt;Nested CSIDH-HQC: A Fujisaki-Okamoto-Inspired Post-Quantum Key Exchange Protocol&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Source Code (GitHub):&lt;/strong&gt; &lt;a href="https://github.com/Alpha08-BNR/HQC-CSIDH" rel="noopener noreferrer"&gt;Alpha08-Github&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Feedback and thoughts on the protocol design are always welcome!&lt;/p&gt;

</description>
      <category>quantum</category>
      <category>security</category>
      <category>cryptography</category>
    </item>
  </channel>
</rss>
