From 06be21af0521f135ba0de41b90f9e64ad8e4b691 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Mon, 28 Aug 2017 19:12:35 -0700 Subject: use top level for verification --- Zotlabs/Lib/LDSignatures.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zotlabs/Lib') diff --git a/Zotlabs/Lib/LDSignatures.php b/Zotlabs/Lib/LDSignatures.php index 7afce7700..7bc4fe957 100644 --- a/Zotlabs/Lib/LDSignatures.php +++ b/Zotlabs/Lib/LDSignatures.php @@ -10,7 +10,7 @@ class LDSignatures { static function verify($data,$pubkey) { $ohash = self::hash(self::signable_options($data['signature'])); - $dhash = self::hash(self::signable_data($data['signature'])); + $dhash = self::hash(self::signable_data($data)); return rsa_verify($ohash . $dhash,base64_decode($data['signature']['signatureValue']), $pubkey); } -- cgit v1.2.3