From ac64ddb114a5ce36549f01c7834f48362515a88f Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 12 May 2015 01:39:04 +0200 Subject: [PATCH] Wrong naming ... :-( Signed-off-by: Roland Haeder --- application/hub/main/package/class_NetworkPackage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/hub/main/package/class_NetworkPackage.php b/application/hub/main/package/class_NetworkPackage.php index 688b978d2..46c0e311e 100644 --- a/application/hub/main/package/class_NetworkPackage.php +++ b/application/hub/main/package/class_NetworkPackage.php @@ -654,7 +654,7 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R // Fake array $data = array( self::PACKAGE_CONTENT_SENDER => $senderId, - self::PACKAGE_CONTENT_CONTENT => $content, + self::PACKAGE_CONTENT_MESSAGE => $content, self::PACKAGE_CONTENT_HASH => '' ); @@ -676,7 +676,7 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R private function isPackageHashValid (array $decodedArray) { // Check validity //* DEBUG-DIE: */ die(__METHOD__ . ': decodedArray=' . print_r($decodedArray, TRUE)); - $isHashValid = Scrypt::checkScrypt($decodedArray[self::PACKAGE_CONTENT_SENDER] . ':' . $decodedArray[self::PACKAGE_CONTENT_CONTENT] . ':' . $this->determineSenderPrivateKeyHash($decodedArray), $decodedArray[self::PACKAGE_CONTENT_HASH]); + $isHashValid = Scrypt::checkScrypt($decodedArray[self::PACKAGE_CONTENT_SENDER] . ':' . $decodedArray[self::PACKAGE_CONTENT_MESSAGE] . ':' . $this->determineSenderPrivateKeyHash($decodedArray), $decodedArray[self::PACKAGE_CONTENT_HASH]); // Return it //* DEBUG-DIE: */ die(__METHOD__ . ': isHashValid=' . intval($isHashValid) . ',decodedArray=' . print_r($decodedArray, TRUE)); -- 2.39.5