<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Linuka Ratnayake on Medium]]></title>
        <description><![CDATA[Stories by Linuka Ratnayake on Medium]]></description>
        <link>https://medium.com/@linukaratnayake?source=rss-186087b8ab45------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9Sc2WWmnAMWn-VUo3jNN1w.jpeg</url>
            <title>Stories by Linuka Ratnayake on Medium</title>
            <link>https://medium.com/@linukaratnayake?source=rss-186087b8ab45------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 12:08:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@linukaratnayake/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[X25519MLKEM768: Post-Quantum Secure Key Exchange for Transport Layer Security (TLS)]]></title>
            <link>https://medium.com/identity-beyond-borders/x25519mlkem768-post-quantum-secure-key-exchange-for-transport-layer-security-tls-1d8444613dff?source=rss-186087b8ab45------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d8444613dff</guid>
            <category><![CDATA[post-quantum-cryptography]]></category>
            <category><![CDATA[https]]></category>
            <category><![CDATA[key-exchange]]></category>
            <category><![CDATA[tls]]></category>
            <dc:creator><![CDATA[Linuka Ratnayake]]></dc:creator>
            <pubDate>Tue, 18 Mar 2025 18:35:01 GMT</pubDate>
            <atom:updated>2025-03-24T03:23:33.751Z</atom:updated>
            <content:encoded><![CDATA[<h3>Transport Layer Security (TLS)</h3><p>Transport Layer Security (TLS) has long been the cornerstone of securing communications over the internet, ensuring that data exchanged between clients and servers remains confidential and tamper-proof. As we transition from HTTP to HTTPS, TLS plays a pivotal role in encrypting client-server interactions.​</p><p>Over the years, various key exchange algorithms have been employed within TLS to establish secure connections. However, with the advent of quantum computing, these classical algorithms face potential vulnerabilities. This has led to the exploration of post-quantum secure cryptographic algorithms to safeguard data against potential future quantum attacks.​</p><p><em>X25519Kyber768</em> is one such hybrid algorithm developed to encrypt information in HTTPS communication against potential quantum computing threats.</p><p><a href="https://medium.com/@hwupathum/x25519kyber768-post-quantum-key-exchange-for-https-communication-70eba681931d">X25519Kyber768 Post-Quantum Key Exchange for HTTPS Communication</a></p><p>One notable advancement in this domain is the standardization of <em>Kyber768</em> as <em>MLKEM768</em> in the Federal Information Processing Standards (FIPS) by the National Institute of Standards and Technology (NIST).</p><p>This paved the way for the development of <em>X25519MLKEM768</em> hybrid algorithm, which is a combination (concatenation) of the following two cryptographic algorithms.</p><ol><li><em>X25519</em>:<em> </em>An Elliptic Curve (EC) based key exchange algorithm, widely used in modern key agreement applications.</li><li><em>MLKEM768</em>: A Key Encapsulation Mechanism (KEM), offering resistance against quantum attacks.</li></ol><p>For the threats posed by classical computers, <em>X25519</em> which is an Elliptic Curve Diffie Hellman (ECDH) algorithm, provides strong protection. It is a well-established and widely used protocol in HTTPS communications today. On the other hand, <em>MLKEM768</em> based on the lattice-based Learning With Errors (LWE) problem, is believed to provide protection against threats that could be posed by quantum computers.</p><p>By concatenating the shared secrets from these two algorithms, <em>X25519MLKEM768</em> provides a robust defense against both classical and quantum threats, ensuring that the overall security of the TLS connection remains intact, even if one component is compromised.</p><p><a href="https://medium.com/@hwupathum/crystals-kyber-the-key-to-post-quantum-encryption-3154b305e7bd">CRYSTALS Kyber :  The Key to Post-Quantum Encryption</a></p><h3>How X25519MLKEM768 Works?</h3><p>The following diagram comprehensively shows how <em>X25519MLKEM768</em> key exchange works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FyAowjQSL7UzPDLPYPYlag.png" /><figcaption>X25519MLKEM768 Key Exchange Algorithm</figcaption></figure><p>The flow of <em>X25519MLKEM768</em> key exchange can be further described as follows.</p><ol><li>The client generates both <em>MLKEM768</em> and <em>X25519</em> key pairs, while the server generates only an <em>X25519</em> key pair.</li><li>The client concatenates its <em>MLKEM768</em> public key and <em>X25519</em> public key together, and sends it to the server in the <em>Client Hello</em> message.</li><li>The server generates a shared secret (randomly) and encapsulates it using the client’s <em>MLKEM768</em> public key. Then, it concatenates the encapsulated key (cipher-text) together with its <em>X25519</em> public key and sends it to the client in the <em>Server Hello</em> message.</li><li>The client decapsulates the encapsulated key (cipher-text) using its <em>MLKEM768</em> private key.</li><li>Both the client and server use each other’s <em>X25519</em> public key, along with their own <em>X25519</em> private key to compute <em>X25519</em> shared secret.</li><li>The final shared secret is the concatenation of the <em>MLKEM768</em> shared secret and the computed <em>X25519</em> shared secret.</li></ol><blockquote>The keys must be concatenated with the MLKEM768 shared secret placed first, followed by the X25519 shared secret.</blockquote><p>The table below shows the lengths of the keys (in bytes) exchanged between the client and server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pPigEBu7MZw0K2Au.png" /><figcaption>Key Lengths in Bytes</figcaption></figure><p>It can be noticed that the key length of <em>MLKEM768</em> is significantly larger than that of <em>X25519</em> making the hybrid key shares even lengthier.</p><h3>References</h3><ol><li><a href="https://csrc.nist.gov/pubs/fips/203/final">https://csrc.nist.gov/pubs/fips/203/final</a></li><li><a href="https://www.ietf.org/archive/id/draft-kwiatkowski-tls-ecdhe-mlkem-03.html">https://www.ietf.org/archive/id/draft-kwiatkowski-tls-ecdhe-mlkem-03.html</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d8444613dff" width="1" height="1" alt=""><hr><p><a href="https://medium.com/identity-beyond-borders/x25519mlkem768-post-quantum-secure-key-exchange-for-transport-layer-security-tls-1d8444613dff">X25519MLKEM768: Post-Quantum Secure Key Exchange for Transport Layer Security (TLS)</a> was originally published in <a href="https://medium.com/identity-beyond-borders">Identity Beyond Borders</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>