K045 / Asymmetric encryption, signatures and key exchange
ECIES
ECIES is a hybrid public-key encryption scheme proposed by Victor Shoup in 2001.
CRYPTOGRAPHY LAB / K045
Cryptography Lab · ECIES
Run real computations and inspect intermediate states step by step.
Educational only. Never enter real passwords or secret keys. Computation stays in your browser; input and trace values are not sent to a server. Do not use this implementation in production.
ECIES-style educational P-256 composition (ECDH + KDF2 + AES-CTR + HMAC; custom profile)
See the scope above for fixed examples, reduced parameters and supported variants. Standard operation names and formulas are retained.Output
Previous state
- Definition and overview
- ECIES is a hybrid public-key encryption scheme proposed by Victor Shoup in 2001. Source document ↗
- Classification and reversibility
- Reversible encryption with public key and decryption with private key. Source document ↗
- Key or secret requirements
- secp256k1 public key for encryption, private key for decryption. Source document ↗
- Operating principle and structure
- Hybrid construction combining KEM and DEM. Source document ↗
- Key size, block size and parameters
- Representative configuration uses secp256k1 and AES-256-GCM. Source document ↗
- Security strength and recommendation
- ECIES/ECDH lack quantum resistance, with increasing harvest-now-decrypt-later risk. Source document ↗
- Known attacks and vulnerabilities
- Poor recipient public-key validation may leak private-key information through ECDH. Source document ↗
- Standards and certification
- Standardized in ANSI X9.63, IEEE 1363a, ISO/IEC 18033-2, SECG SEC-1. Source document ↗
- Typical uses
- Protects SUPI confidentiality/integrity in standalone 5G. Source document ↗
- Implementations, libraries and tools
- Python eciespy and TypeScript, Rust, Go, WASM, Java, Dart, Ruby implementations. Source document ↗
- Decryption or decoding
- Pass recipient private key and ciphertext to decrypt to obtain plaintext. Source document ↗
- Advantages
- Some security assessments report no serious attacks discovered to date. Source document ↗
- Limitations and cautions
- Avoid XOR as symmetric encryption primitive except special cases. Source document ↗
- Distinguishing encryption, encoding and hashing
- Not confirmed in the survey
Practical examples
Example
Sender encrypts with recipient public key; recipient decrypts privately. Internally ephemeral ECDH and KDF derive a session key for symmetric AEAD data encryption.
Procedure
Supply recipient public key and plaintext to encrypt; private key and ciphertext to decrypt. Base64/Hex encoding/decoding is separate representation conversion.
Scenario
Hybrid encryption such as 5G SUPI protection uses public-key agreement and symmetric confidentiality/integrity. Use library to generate/send ciphertext and decrypt with receiver private key.
Pitfalls and alternatives
Not encoding or ordinary hashing. Derive keys via HKDF instead of raw ECDH secret; avoid old SHA1/3DES/XOR combinations and consider modern HPKE alternatives.
References
- Elliptic Curve Integrated Encryption Scheme - Crypto++ Wiki ↗
- Mechanism and Implementation in JavaScript | js ↗
- Mechanism and implementation | py ↗
- Key Encapsulation Mechanism-Based Integrated Encryption Scheme (KEM-IES) ↗
- docs/DD-ECIES-SPECIFICATION.md ↗
- TR 133 938 - V19.2.0 - 5G; 3GPP Cryptographic Inventory (3GPP TR 33.938 version 19.2.0 Release 19) ↗
- eciespy | py ↗
- ECIES Encryption - Example ↗
- ECIES ↗