LightDSA: A Python-Based Hybrid Digital Signature Library and Performance Analysis of RSA, DSA, ECDSA and EdDSA in Variable Configurations, Elliptic Curve Forms and Curves
Sefik Serengil, Alper Ozpinar · 2025
Read LightDSA: A Python-Based Hybrid Digital Signature Library and Performance Analysis of RSA, DSA, ECDSA and EdDSA in Variable Configurations, Elliptic Curve Forms and Curves by Sefik Serengil, Alper Ozpinar (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2505-23773.txt.
Introduction
Sefik Serengil and Alper Ozpinar introduce LightDSA, a Python library for digital signatures, in a 2025 paper. Digital signatures prove who sent a message and that it was not changed. Four widely used signature schemes are covered: RSA, DSA, ECDSA, and EdDSA. Their speed depends on key size, hash choice, and the shape of the curve used, yet most libraries lock each scheme to one fixed setup.
LightDSA lets users mix schemes, curve forms, and curves freely, which opens a wider range of tests. The authors measure how long key creation, signing, and checking take across many setups. The library is open source, and the results help developers pick a signature setup that fits their speed and safety needs.
Catalog record
| CREATOR | Sefik Serengil, Alper Ozpinar |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 41 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2505-23773
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
LightDSA: A Python-Based Hybrid Digital Signature Library and Performance Analysis of RSA, DSA, ECDSA and EdDSA in Variable Configurations, Elliptic Curve Forms and Curves Sefik Serengil, Alper Ozpinar Abstract Digital signature algorithms (DSAs) are fundamental to cryptographic security, ensuring data integrity and authentication. While RSA, DSA, ECDSA, and EdDSA are widely used, their performance varies significantly depending on key sizes, hash functions, and elliptic curve configurations. In this paper, we introduce LightDSA, a hybrid and configurable digital signature library that supports RSA, DSA, ECDSA, and EdDSA with flexible form and curve selection, open sourced at https://github.com/serengil/LightDSA . Unlike conventional implementations that impose strict curve-form mappings—such as Weierstrass for ECDSA and Edwards for EdDSA—LightDSA allows arbitrary combinations, enabling a broader performance evaluation. We analyze the computational efficiency of these algorithms across various configurations, comparing key generation, signing, and verification times. Our results provide insights into the trade-offs between security and efficiency, guiding the selection of optimal configurations for different cryptographic needs. A Preprint Keywords Cryptography, Digital Signarure, ECDSA, EdDSA, RSA, DSA, Python 1 Introduction Digital signatures are a cornerstone of modern cryptography, providing a mechanism to verify the authenticity and integrity of digital messages and documents. Widely used in various security protocols, digital signature algorithms (DSAs) ensure that the data has not been tampered with and that it originates from a trusted sender. Among the most commonly used digital signature algorithms are RSA [ 1 ] , DSA [ 2 ] , ECDSA [ 3 ] , and EdDSA [ 4 ] , each offering unique strengths and trade-offs in terms of security, efficiency, and flexibility. These algorithms are essential in securing communications, enabling digital certificates, and facilitating blockchain transactions, among other applications. Despite their widespread adoption, the performance of these algorithms varies significantly depending on several factors, including the choice of key size, elliptic curve type, and hash function. RSA has been the standard for digital signatures for decades, relying on large integer factorization for its security. However, its performance decreases as the key size increases, making it less efficient for modern applications that require smaller, faster cryptographic operations. Elliptic Curve Cryptography (ECC) [ 5 ] [ 6 ] is a branch of public-key cryptography based on the algebraic structure of elliptic curves over finite fields. ECC offers high levels of security with relatively small key sizes, making it highly efficient compared to traditional systems like RSA. This efficiency has led to its widespread adoption in modern cryptographic protocols. While ECC is widely used for key exchange protocols and digital signatures, it can also be applied to encryption schemes, such as EC ElGamal [ 7 ] . However, despite its theoretical potential for encryption and decryption, EC ElGamal’s decryption process requires solving the Elliptic Curve Discrete Logarithm Problem (ECDLP), which is computationally difficult and impractical for real-world applications. This makes EC ElGamal unsuitable for most encryption purposes [ 8 ] [ 9 ] . In contrast, Elliptic Curve Diffie-Hellman (ECDH) [ 10 ] , a key exchange protocol based on ECC, is highly efficient and practical for establishing secure communication channels. Due to its speed and strong security guarantees, ECDH has gained significant adoption, with tools like GPG incorporating ECDH support for encryption in recent versions. Similarly, Elliptic Curve Digital Signature Algorithm (ECDSA) and Edwards-curve Digital Signature Algorithm (EdDSA) are two widely adopted and efficient elliptic curve-based digital signature algorithms. These algorithms provide strong security with relatively small key sizes, making them ideal choices for digital signature applications in environments requiring fast and scalable cryptographic operations. ECDSA (Elliptic Curve Digital Signature Algorithm) and EdDSA (Edwards-curve Digital Signature Algorithm) also address RSA’s issue by leveraging elliptic curve cryptography (ECC), which provides strong security with smaller key sizes. While ECDSA is based on the Weierstrass curve form, EdDSA employs the Edwards curve form [ 11 ] , known for its efficiency and resistance to certain types of attacks [ 12 ] . Both elliptic curve-based algorithms have gained significant traction in cryptographic standards and protocols. However, despite the popularity of these algorithms, many implementations follow fixed configurations, such as specific elliptic curve forms or pre-defined curves. ECDSA, for example, is typically implemented using the secp256k1 or secp256r1 (p256) curve, while EdDSA often uses Ed25519 [ 13 ] . While these defaults are widely accepted, they may not always represent the best choice for every use case [ 14 ] . The main goal of this paper is to present LightDSA, a Python-based digital signature library that supports RSA, DSA, ECDSA, and EdDSA, open sourced at https://github.com/serengil/LightDSA . The library offers flexibility in terms of elliptic curve forms (Weierstrass [ 15 ] , Koblitz [ 16 ] , and Edwards [ 17 ] [ 18 ] ) and supports a wide range of pre-defined curves such as secp256k1, secp256r1 or ed25519, allowing users to experiment with different configurations. The library automatically determines the appropriate hash function based on the key size or curve order, supporting common cryptographic hash functions like SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512 [ 19 ] . In this paper, we provide an extensive performance evaluation of LightDSA, comparing RSA, ECDSA, and EdDSA across different configurations. Specifically, we analyze the impact of curve selection, hash function choice, and key size on the performance of digital signature operations, including key generation, signing, and verification. We also explore the trade-offs between security and efficiency, highlighting the suitability of various configurations for different cryptographic needs. The findings presented in this paper aim to guide cryptographic practitioners and researchers in selecting the most appropriate digital signature algorithm and configuration for their specific use cases. By providing a highly configurable and performance-optimized framework, LightDSA offers a tool to better understand the strengths and weaknesses of various digital signature approaches, contributing to the ongoing development of more efficient cryptographic systems. 2 Digital Signature Algorithms In this section, we will focus on three widely used cryptographic methods for ensuring the authenticity and integrity of digital messages: RSA, ECDSA, and EdDSA. RSA, one of the oldest and most widely adopted algorithms, uses a pair of keys—private and public—for signing and verification. It provides strong security based on the difficulty of factoring large numbers. ECDSA, which uses elliptic curve cryptography, offers similar security to RSA but with much smaller key sizes, making it more efficient and suitable for resource-constrained environments. Finally, EdDSA, an enhanced version of ECDSA, uses a different elliptic curve and focuses on improving performance, security, and resistance to side-channel attacks. Each of these algorithms plays a crucial role in digital signatures, offering varying benefits depending on the specific requirements of the application. 2.1 RSA RSA is a widely-used public-key cryptosystem that operates on two key principles: encryption and decryption. In the context of homomorphic encryption and secure message transfer, the public key is used for encryption, and the private key is used for decryption [ 20 ] . On the other hand, in the context of digital signatures, the private key is used for signing, while the public key is used for verification [ 21 ] . To sign a message, the sender uses their private key, which is represented as d, to generate the signature. The hashed message m is raised to the power of