From: Olaf Braun Date: Mon, 19 Feb 2024 11:20:38 +0000 (+0100) Subject: Update wcfsetup/install/files/lib/system/service/worker/Encryption.class.php X-Git-Tag: 6.1.0_Alpha_1~47^2~89 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9a77c83e30376a89c6473f755cce5dde38c49402;p=GitHub%2FWoltLab%2FWCF.git Update wcfsetup/install/files/lib/system/service/worker/Encryption.class.php Co-authored-by: Tim Düsterhus --- diff --git a/wcfsetup/install/files/lib/system/service/worker/Encryption.class.php b/wcfsetup/install/files/lib/system/service/worker/Encryption.class.php index 80654fc891..aae4195f2c 100644 --- a/wcfsetup/install/files/lib/system/service/worker/Encryption.class.php +++ b/wcfsetup/install/files/lib/system/service/worker/Encryption.class.php @@ -158,7 +158,7 @@ final class Encryption } \assert(Binary::safeStrlen($clientPublicKey) === 65); - $len = "\0A"; // 65 as Uint16BE + $len = \pack('n', 65); return "\0" . $len . $clientPublicKey . $len . $serverPublicKey; }