Skip to main content
ABDM’s HIE-CM specification requires a specific ECDH-based encryption scheme for exchanging health records between parties. Use the open-source eka-care/abdm-ecdh library to perform all cryptographic operations.
The library implements ECDH key agreement on Curve25519 (Weierstrass form) — matching Java/BouncyCastle — with HKDF-SHA256 key derivation and AES-256-GCM encryption. This is the same algorithm required by ABDM.

Installation

Usage

Key Material

GenerateKeyMaterial / generate_key_material returns:

Cryptographic Details

For more details, see the ABDM Encryption and Decryption Guide and the abdm-ecdh source.