The Kyber encryption algorithm and its implementation in .NET
Abstract
This paper examines modern cryptographic algorithms and their application for ensuring secure message exchange. Special attention is paid to the Kyber algorithm as one of the promising post-quantum cryptographic methods that guarantees reliable protection of information from quantum computer attacks. The Kyber algorithm is based on the hardness of the Module-Learning With Errors (MLWE) problem, which belongs to the mathematical class of lattice-based problems. The primary objective of this study is the practical implementation of the post-quantum Kyber algorithm through the development of a custom cryptographic library on the .NET platform. To achieve this, the theoretical foundations of Kyber were analyzed and implemented in code. The implementation successfully reproduces the full key exchange cycle, comprising key generation, encapsulation, and decapsulation. Following functional verification, performance benchmarks were conducted across various cryptographic parameter sets, covering both single- and multi-threaded scenarios on the .NET platform. The algorithm’s viability was validated on diverse target platforms, including mobile devices, using a cross-platform .NET MAUI application. Prospects for further research include the development of practical applications, particularly the creation of a program for secure message exchange. The use of Kyber in modern technologies will contribute to ensuring the long-term protection of information in the context of developing quantum computing and growing cybersecurity threats.