Decrypt data using ECDH key exchange.
This API decrypts health data received from external HIPs/HIUs via ABDM. A shared secret is derived from the receiver’s private key and the sender’s public key. The IV and salt are computed from the XOR of sender and receiver nonces, and the data is decrypted using AES-256-GCM.
Algorithm details:
For more details, refer to the ABDM Encryption and Decryption Guide.
The API requires a Bearer token (JWT) for authentication.
Base64-encoded encrypted data to decrypt
Nonce associated with the receiver's key pair
Base64-encoded private key of the receiver
Nonce associated with the sender's key pair
Base64-encoded public key of the sender
OK
Decrypted plaintext data