C & PHP library HMAC differences
Posted: Mon Sep 04, 2017 12:26 pm
Hi,
I've been having a few problems with the C and PHP libraries.
I'm adapting the C code to work on iOS and when encrypting and decrypting files everything works, if I pass the file to another service that uses the PHP library (philios33) however the calculated hmac value isn't the same when the library hits the doDecryptFile method and subsequently call the $this->validateHMAC($enc_key_1, $enc_keys, $hmac_1, "HMAC 1") method on line 459.
Has anyone had this problem before or can anyone point me in the right direction?
Thanks in advance,
Stefano
I've been having a few problems with the C and PHP libraries.
I'm adapting the C code to work on iOS and when encrypting and decrypting files everything works, if I pass the file to another service that uses the PHP library (philios33) however the calculated hmac value isn't the same when the library hits the doDecryptFile method and subsequently call the $this->validateHMAC($enc_key_1, $enc_keys, $hmac_1, "HMAC 1") method on line 459.
Has anyone had this problem before or can anyone point me in the right direction?
Thanks in advance,
Stefano