Data Transfer Encryption Not Working

We have been struggling with getting Data Transfer working for last 2 months. We have posted several questions and issue but we are not able to get it working. We have also tried the github gist for Java and we still don’t see the data being available in the PHR app or Sandbox HIU interface.

Reference Posts of what all we have tried:

  1. How to supply tag information with GCM encrypted data?
  2. Not able to send data on Push Url
  3. Data is not displayed in the PHR app. Facing issues with Snippet
  4. Help us on curve25519

We have tried to implement same in PHP, Java, and Golang but none of these seems to be working with the PHR app when we send the data.

Can someone confirm if they have been able to get this working with PHR app?

Also, as per documentation, keyMaterial in the request is public key, correct? However, we receive base64 encoded data of 65 bytes. Can someone please confirm what exactly it this. Curve25519 has 32 bytes of public key. I believe, NDHM apps are not sending the 32 bytes public key and not accepting (& expecting) 32 bytes public key from senders. Can you confirm what exactly is being sent here as 65 bytes? I think this is the main reason we have not been able to get it working.

Some technical reasoning will be very helpful than pointing to the same Java gist over and over, please! And that official Java gists also create 32 bytes of public key. So why are we getting 65 bytes in the keyMaterial?

2 Likes

Hi @kishan.gor,

Did you find any solution for the PHP language ? or you moved to java ?

Same here, no one is helping
Because of 65 bytes keyvalue im getting error