Hello
I’m trying to decrypt the encrypted data but its giving me error says “mac check in GCM failed”
Data was pushed according to below request:
https://webhook.site/d0a44047-125a-4484-9076-5ff34b78c494/v0.5/health-information/hip/request
{
“transactionId”: “02993659-6ba0-43be-994f-45ba3a0b9a33”,
“requestId”: “47086ded-bc74-4c58-9430-5ed414ccfdc5”,
“timestamp”: “2021-12-10T10:02:55.978294”,
“hiRequest”: {
“consent”: {
“id”: “51b575e0-30ce-48bf-ac58-691df66678ee”
},
“dateRange”: {
“from”: “2014-12-10T10:02:25.586672”,
“to”: “2021-12-10T10:02:25.586718”
},
“dataPushUrl”: “https://dev.abdm.gov.in/patient-hiu/data/notification”,
“keyMaterial”: {
“cryptoAlg”: “ECDH”,
“curve”: “curve25519”,
“dhPublicKey”: {
“expiry”: “2021-12-12T10:02:25.847901”,
“parameters”: “Ephemeral public key”,
“keyValue”: “BGrnDi5oknGc/NJ7xJM4Er6kkWegQDtqbKJwQpse+aYZBQqWAELGAJP5yj1v5pDcW678fZL8B8gCtlyc5XqQo4U=”
},
“nonce”: “Qf0BYNgvNB5S270OqXL78DSgcZvmi6vU86g0tyje0Kg=”
}
}
}
Data push request :
https://dev.abdm.gov.in/patient-hiu/data/notification
{
“pageNumber”: 1,
“pageCount”: 1,
“transactionId”: “02993659-6ba0-43be-994f-45ba3a0b9a33”,
“entries”: [
{
“content”: “d3c+Qq1DQJLwNpMf2kRyKvMRqMrzOH/e0COoIXTl+L0a/alVROHmdOyqFyeq3t+S1B9DVxckscFVr4kNdVesA68K4aBupxfqGNjNy9KAxpr6qw+JsSLehJm939MvJ/bF+pflnwDmQDGO1WJ4hdAuYSeElOnEWNvf2V9hbC/gWjyUvx7xR9pOpj0hjyz3nUK3j8hDgXHK3+xqBoAQYheeDoiBlFc8+R99l5G3YFjWduAW6foBsvi/m5JwEEKVTRMCpDQNDxDH2wOltrF1oEKXLl7MCVqxlOVorqaD4S+l4wF0RamK2xWoM4aS+XxHhPe+5bseECf9bD/fXnAKTLI9OisAbiP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N6TWvAdDO1/odKchJ4eM9sTQr//5EhG9FH5BuSnF8/iRoB51q/eG72NEpj26lJzaHrasOfQz1V4CNdYAd+vMc9ygBzNwPlw2SWcRdFH6mVD0JcbawhJ2G82F+EJ55E60Wwkw8yCZ7Ab09OEuv3xC7WF3gkMY13q1tDhdeLxqOT9qtOqDva7V+HYh+xTLz/yzbV3sdMY0a5U3Iqicc6Ua9kWhT1GILvmbVB3abH6QdOI8jAGtg/8++NB9iGkFMedHo5dsg8pNeRXGCtTay4uvuHnQYHL9e3cJKl+jyu23uIa1ZGe0uNrTQT2rneHZGkP+3DSiZj7vA6tb7lyp5KFluHsXEct8K0VTPuc2yM2J3O1V4KVz7PO3AnLSBVRFrjXAhvIDQDBZQ5olvwQxAPFb/e6B5Q+9nVRncVEv/N3BZejHEU+Se”,
“media”: “application/fhir+json”,
“checksum”: “string”,
“careContextReference”: “DEMO-26-001”
}
],
“keyMaterial”: {
“cryptoAlg”: “ECDH”,
“curve”: “Curve25519”,
“dhPublicKey”: {
“expiry”: “2020-10-06T10:50:37.764Z”,
“parameters”: “Curve25519/32byte random key”,
“keyValue”: “MIIBMTCB6gYHKoZIzj0CATCB3gIBATArBgcqhkjOPQEBAiB/////////////////////////////////////////7TBEBCAqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqYSRShRAQge0Je0Je0Je0Je0Je0Je0Je0Je0Je0Je0JgtenHcQyGQEQQQqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq0kWiCuGaG4oIa04B7dLHdI0UySPU1+bXxhsinpxaJ+ztPZAiAQAAAAAAAAAAAAAAAAAAAAFN753qL3nNZYEmMaXPXT7QIBCANCAAQGd4XJqp5pkcYdDMEl9Y48tvxrYx1nN/xgwoxEO9ftlhRkQFZ/2zDWCDhqH1h26DMjH4Q2Q3nqoH0hySOY3kbg”
},
“nonce”: “3HgM0nMD9CRvv3u/sw6ypEK+S754GwDb2In+YO5mCzQ=”
}
}
Data Seen on app after the data push:
Then i’m trying to decrypt the above encrypted data as HIU using same keyMaterial which was sent in data push
“keyMaterial”: {
“cryptoAlg”: “ECDH”,
“curve”: “curve25519”,
“dhPublicKey”: {
“expiry”: “2021-12-12T10:02:25.847901”,
“parameters”: “Ephemeral public key”,
“keyValue”: “MIIBMTCB6gYHKoZIzj0CATCB3gIBATArBgcqhkjOPQEBAiB/////////////////////////////////////////7TBEBCAqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqYSRShRAQge0Je0Je0Je0Je0Je0Je0Je0Je0Je0Je0JgtenHcQyGQEQQQqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq0kWiCuGaG4oIa04B7dLHdI0UySPU1+bXxhsinpxaJ+ztPZAiAQAAAAAAAAAAAAAAAAAAAAFN753qL3nNZYEmMaXPXT7QIBCANCAAQGd4XJqp5pkcYdDMEl9Y48tvxrYx1nN/xgwoxEO9ftlhRkQFZ/2zDWCDhqH1h26DMjH4Q2Q3nqoH0hySOY3kbg”
},
“nonce”: “3HgM0nMD9CRvv3u/sw6ypEK+S754GwDb2In+YO5mCzQ=”
}
Now as show WEBINAR 4 and AS per shared DHKeyExchangeCrypto.cs file im trying to
senderRandom = 3HgM0nMD9CRvv3u/sw6ypEK+S754GwDb2In+YO5mCzQ=
senderReceiver = MIIBMTCB6gYHKoZIzj0CATCB3gIBATArBgcqhkjOPQEBAiB/////////////////////////////////////////7TBEBCAqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqYSRShRAQge0Je0Je0Je0Je0Je0Je0Je0Je0Je0Je0JgtenHcQyGQEQQQqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq0kWiCuGaG4oIa04B7dLHdI0UySPU1+bXxhsinpxaJ+ztPZAiAQAAAAAAAAAAAAAAAAAAAAFN753qL3nNZYEmMaXPXT7QIBCANCAAQGd4XJqp5pkcYdDMEl9Y48tvxrYx1nN/xgwoxEO9ftlhRkQFZ/2zDWCDhqH1h26DMjH4Q2Q3nqoH0hySOY3kbg
receiverRandom = Qf0BYNgvNB5S270OqXL78DSgcZvmi6vU86g0tyje0Kg=
receiverPrivateKey = ?? From where to get this value. So im generating new PrivateKey while decrypting.
Please guide me i’m doing as per the example & demo presented by @sukreet but not working