From 222399d178475298882afd20853c2581ab9da512 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 18 Jun 2020 11:52:05 +0100 Subject: [PATCH] EncryptionContext: fix exception message --- src/network/mcpe/encryption/EncryptionContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/mcpe/encryption/EncryptionContext.php b/src/network/mcpe/encryption/EncryptionContext.php index 8abae1919b..4c98f2b22f 100644 --- a/src/network/mcpe/encryption/EncryptionContext.php +++ b/src/network/mcpe/encryption/EncryptionContext.php @@ -89,7 +89,7 @@ class EncryptionContext{ private function calculateChecksum(int $counter, string $payload) : string{ $hash = openssl_digest(Binary::writeLLong($counter) . $payload . $this->key, self::CHECKSUM_ALGO, true); if($hash === false){ - throw new \RuntimeException("Encryption error: " . openssl_error_string()); + throw new \RuntimeException("openssl_digest() error: " . openssl_error_string()); } return substr($hash, 0, 8); }