We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ad407ca + b16531f commit b44a4c4Copy full SHA for b44a4c4
src/Encryption.php
@@ -60,7 +60,7 @@ public static function encrypt($payload, $userPublicKey, $userAuthToken, $native
60
$userPublicKeyObject = $generator->getPublicKeyFrom($pointUserPublicKey->getX(), $pointUserPublicKey->getY(), $generator->getOrder());
61
62
// get shared secret from user public key and local private key
63
- $sharedSecret = hex2bin($math->decHex($userPublicKeyObject->getPoint()->mul($localPrivateKeyObject->getSecret())->getX()));
+ $sharedSecret = hex2bin($math->decHex((string) $userPublicKeyObject->getPoint()->mul($localPrivateKeyObject->getSecret())->getX()));
64
65
// generate salt
66
$salt = openssl_random_pseudo_bytes(16);
0 commit comments