Raw RSA calculator
Modular exponentiation for EMV public-key operations.
- Runs in your browser
- No sign-up
Input
Result computed (8-bit modulus)
Result
Offline data authentication failing in certification? IDNTEQ can trace the certificate chain. CPV / PVT preparation and remediation
About this tool
Runs in your browser. This page loads no analytics or third-party scripts and does not send what you type.
Compute data raised to an exponent modulo a modulus, the operation behind EMV offline data authentication. With exponent 03 or 010001, a CA modulus recovers an issuer certificate and an issuer modulus recovers an ICC certificate.
EMV certificate recovery
EMV offline data authentication recovers a certificate by raising it to the public exponent of the key that signed it, modulo that key’s modulus: the issuer certificate with the CA public key, the ICC certificate with the issuer public key. A correctly recovered EMV certificate begins with 6A and ends with BC, but those two bytes alone do not make it valid. To check the hash and the structure of issuer and ICC certificates, use the EMV certificate validator.
Spec references
- EMV 4.4 Book 2 §5 (Offline Data Authentication)
- EMV Book 2 §6 (RSA)
Verified against
- Specifications
- EMV 4.4 Book 2 (RSA recovery of certificates)
- Published examples in the tests
- None: no published example with these inputs was found. The checks below are the ones the tests run.
- Other checks in the tests
- Modular exponentiation against BigInt computations (2^10 mod 1000, textbook RSA n = 3233)
- Recovery of a made-up issuer certificate with a 1024-bit test CA key, checked with node:crypto
- Inputs
- Data, exponent and modulus in hex; the data must be smaller than the modulus.
- Not covered
- No padding, signature scheme or certificate parsing: use the EMV certificate validator for that.
- Last reviewed