Applied Cryptography Measured: RSA-2048, Curves, AEAD and KDFs on Real Hardware

Measured, not summarised. Every figure in this record was produced by a script on a 4-core CPU box with no GPU, using cryptography 50.0.2. Scripts and raw JSON are included so each number can be re-run. RSA-2048, measured per operation. Key generation 158.1 ms. OAEP-SHA256 encrypt 0.055 ms, decrypt 0.285 ms (5.2x slower). PSS-SHA256 sign 0.346 ms, verify 0.029 ms, so verification is 11.9x cheaper than signing. That asymmetry, not raw speed, is why RSA survives in certificates. Message ceiling measured, not quoted: OAEP 190 bytes, PKCS#1 v1.5 245 bytes, both raise ValueError one byte over. RSA cannot carry a message, only a key. Key generation by size. 1024 bit 6.7 ms, 2048 bit 158.1 ms, 3072 bit 772.0 ms, 4096 bit 1596.2 ms. Four thousand ninety-six bits costs 10.1x more than 2048 for about 190 more bits of security. Why 2048 is still standing, stated honestly. Factoring ran on structured numbers up to 81 bits in 0.3 ms. The extrapolation to 2048 bits is flagged in the note as an extrapolation, not a measurement, because no machine here can perform it. Quoting an unmeasured number would be fabricating a result. Elliptic curves, same security in far less space. Ed25519 signs in 0.024 ms with a 64-byte signature against RSA-2048's 0.346 ms and 256 bytes: 14.4x faster and 4x smaller. X25519 exchange 0.032 ms with a 32-byte key. ECDSA P-256, P-384 and P-521 measured; the P-521 figure that came out faster than P-384 is recorded as measurement noise rather than quietly dropped. Symmetric, with tamper behaviour measured. AES-256-GCM encrypts at 2634 MB/s and decrypts at 9332 MB/s on this machine because the CPU has AES-NI; ChaCha20-Poly1305 manages 244 MB/s, so the common claim that ChaCha is faster is false here and the note says to measure on the target machine. AES-CBC without a MAC, when one ciphertext byte is flipped, reports no error and returns garbage: that is the experimental proof for the rule against bare CBC. Reusing a GCM nonce was tested, and XOR of the two ciphertexts equalled XOR of the two plaintexts, so a nonce repeat is not a weakening but a break. Password hashing, the number that matters. SHA-256 hashes 683,994 times per second on 4 cores. Argon2id at 64 MB, 3 passes takes 412.8 ms, making plain SHA-256 for passwords wrong by a factor of 283,000 in attacker cost. Measured ladder: SHA-256 0.0015 ms, PBKDF2 600k 210.7 ms, Argon2id 19 MB 202.7 ms, 64 MB 412.8 ms, 256 MB 1678.9 ms. Security equivalence, and the weak link it exposes. AES-256 matches RSA-15360, not RSA-2048. A system using AES-256 with RSA-2048 key exchange is limited by the RSA, a point routinely missed in security reviews. What is not measured. No attack on real RSA-2048. No side-channel variance analysis. No GPU figures, since this machine has none. No post-quantum measurement of ML-KEM or ML-DSA, which is the largest gap and the most urgent one, because ciphertext captured today can be decrypted later. Vietnamese companion note in the Z-Tester vault.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-30
DOI
https://doi.org/10.5281/zenodo.24694833
Primary Topic
Cryptography and Residue Arithmetic
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Applied Cryptography Measured: RSA-2048, Curves, AEAD and KDFs on Real Hardware

7EN Labs
Zenodo (CERN European Organization for Nuclear Research)
Cryptography and Residue Arithmetic
article

Applied Cryptography Measured: RSA-2048, Curves, AEAD and KDFs on Real Hardware

7EN Labs
article en

Abstract

Measured, not summarised. Every figure in this record was produced by a script on a 4-core CPU box with no GPU, using cryptography 50.0.2. Scripts and raw JSON are included so each number can be re-run. RSA-2048, measured per operation. Key generation 158.1 ms. OAEP-SHA256 encrypt 0.055 ms, decrypt 0.285 ms (5.2x slower). PSS-SHA256 sign 0.346 ms, verify 0.029 ms, so verification is 11.9x cheaper than signing. That asymmetry, not raw speed, is why RSA survives in certificates. Message ceiling measured, not quoted: OAEP 190 bytes, PKCS#1 v1.5 245 bytes, both raise ValueError one byte over. RSA cannot carry a message, only a key. Key generation by size. 1024 bit 6.7 ms, 2048 bit 158.1 ms, 3072 bit 772.0 ms, 4096 bit 1596.2 ms. Four thousand ninety-six bits costs 10.1x more than 2048 for about 190 more bits of security. Why 2048 is still standing, stated honestly. Factoring ran on structured numbers up to 81 bits in 0.3 ms. The extrapolation to 2048 bits is flagged in the note as an extrapolation, not a measurement, because no machine here can perform it. Quoting an unmeasured number would be fabricating a result. Elliptic curves, same security in far less space. Ed25519 signs in 0.024 ms with a 64-byte signature against RSA-2048's 0.346 ms and 256 bytes: 14.4x faster and 4x smaller. X25519 exchange 0.032 ms with a 32-byte key. ECDSA P-256, P-384 and P-521 measured; the P-521 figure that came out faster than P-384 is recorded as measurement noise rather than quietly dropped. Symmetric, with tamper behaviour measured. AES-256-GCM encrypts at 2634 MB/s and decrypts at 9332 MB/s on this machine because the CPU has AES-NI; ChaCha20-Poly1305 manages 244 MB/s, so the common claim that ChaCha is faster is false here and the note says to measure on the target machine. AES-CBC without a MAC, when one ciphertext byte is flipped, reports no error and returns garbage: that is the experimental proof for the rule against bare CBC. Reusing a GCM nonce was tested, and XOR of the two ciphertexts equalled XOR of the two plaintexts, so a nonce repeat is not a weakening but a break. Password hashing, the number that matters. SHA-256 hashes 683,994 times per second on 4 cores. Argon2id at 64 MB, 3 passes takes 412.8 ms, making plain SHA-256 for passwords wrong by a factor of 283,000 in attacker cost. Measured ladder: SHA-256 0.0015 ms, PBKDF2 600k 210.7 ms, Argon2id 19 MB 202.7 ms, 64 MB 412.8 ms, 256 MB 1678.9 ms. Security equivalence, and the weak link it exposes. AES-256 matches RSA-15360, not RSA-2048. A system using AES-256 with RSA-2048 key exchange is limited by the RSA, a point routinely missed in security reviews. What is not measured. No attack on real RSA-2048. No side-channel variance analysis. No GPU figures, since this machine has none. No post-quantum measurement of ML-KEM or ML-DSA, which is the largest gap and the most urgent one, because ciphertext captured today can be decrypted later. Vietnamese companion note in the Z-Tester vault.

Zenodo (CERN European Organization for Nuclear Research)
Cryptography and Residue Arithmetic
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon