Generate Checksum

Hii @IntegrationSupport

I have Integrate the HIP API
https://sandbox.abdm.gov.in/swagger/ndhm-hip.yaml

/v0.5/health-information/transfer

{
  "pageNumber": 0,
  "pageCount": 0,
  "transactionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "entries": [
    {
      "content": "Encrypted content of data packaged in FHIR bundle",
      "media": "application/fhir+json",
      "checksum": "string",
      "careContextReference": "RVH1008"
    },
    {
      "link": "https://data-from.net/sa2321afaf12e13",
      "media": "application/fhir+json",
      "checksum": "string",
      "careContextReference": "NCC1701"
    }
  ],
  "keyMaterial": {
    "cryptoAlg": "ECDH",
    "curve": "Curve25519",
    "dhPublicKey": {
      "expiry": "2023-09-05T09:47:48.728Z",
      "parameters": "Curve25519/32byte random key",
      "keyValue": "string"
    },
    "nonce": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  }
}

Please explain - how can generate checksum?
please send example

Regarding
Arjun Singh

@arjuns307, Hello, during the data preparation for data transfer, you prepare the health record in FHIR format. The data in FHIR format requires encryption. At the time of encrypting, this data is used to convert to Base 64. This value generated in base64 is put in checksum. Can you also refer webinar-8 on https://sandbox.abdm.gov.in/webinars. It does explain how to encrypt and convert to base64 and add value in checksum. Hope this helps.
Thanks.

Hi @arjuns307 : One important concept for checksum which has been missed out in our previous reply is - Checksum is very important & is one of the security aspect which the entities participating in ABDM must adopt.
Before the HIP encrypts the data it needs to perform a checksum and send it as part of data push url. Once HIU receives that whole request body and decrypts it, HIU would verify that the checksum matches the one HIP is sending. Hope this helps.

@SARCH1 OK Sir, Thanks you