mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-24 12:24:03 +00:00
EncryptionContext: fix exception message
This commit is contained in:
parent
d931a5bcc0
commit
222399d178
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user