Made message signing in Cryptography use SHA512 as the message content for... #1

Closed
netkas wants to merge 421 commits from master into dev
Showing only changes of commit 828b7c9b5c - Show all commits

View file

@ -39,21 +39,21 @@
throw new InvalidRpcArgumentException('peer', $e); throw new InvalidRpcArgumentException('peer', $e);
} }
if(!$rpcRequest->containsParameter('uuid')) if(!$rpcRequest->containsParameter('signature_uuid'))
{ {
throw new MissingRpcArgumentException('uuid'); throw new MissingRpcArgumentException('signature_uuid');
} }
try try
{ {
$uuid = Uuid::fromString($rpcRequest->getParameter('uuid')); $signatureUuid = Uuid::fromString($rpcRequest->getParameter('signature_uuid'));
} }
catch(InvalidArgumentException $e) catch(InvalidArgumentException $e)
{ {
throw new InvalidRpcArgumentException('uuid', $e); throw new InvalidRpcArgumentException('signature_uuid', $e);
} }
$signingKey = Socialbox::resolvePeerSignature($address, $uuid); $signingKey = Socialbox::resolvePeerSignature($address, $signatureUuid);
try try
{ {