From 5d1b1e717922655934118c38bec462e400cf01ba Mon Sep 17 00:00:00 2001 From: Nguyen Van Nguyen Date: Wed, 17 Jan 2024 16:22:01 +0700 Subject: [PATCH] WIP Signed-off-by: Nguyen Van Nguyen --- src/Packet/AeadEncryptedData.php | 1 - src/Packet/SecretKey.php | 6 +++--- src/Packet/SymEncryptedIntegrityProtectedData.php | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Packet/AeadEncryptedData.php b/src/Packet/AeadEncryptedData.php index abdbd8f7..105fa426 100644 --- a/src/Packet/AeadEncryptedData.php +++ b/src/Packet/AeadEncryptedData.php @@ -37,7 +37,6 @@ class AeadEncryptedData extends AbstractPacket implements EncryptedDataPacketInt use EncryptedDataTrait; const VERSION = 1; - const ZERO_CHAR = "\x00"; /** diff --git a/src/Packet/SecretKey.php b/src/Packet/SecretKey.php index 73f8ddc6..e5d59594 100644 --- a/src/Packet/SecretKey.php +++ b/src/Packet/SecretKey.php @@ -46,9 +46,9 @@ */ class SecretKey extends AbstractPacket implements SecretKeyPacketInterface { - const HASH_ALGO = 'sha1'; - const ZERO_CHAR = "\x00"; - const CIPHER_MODE = 'cfb'; + const HASH_ALGO = 'sha1'; + const ZERO_CHAR = "\x00"; + const CIPHER_MODE = 'cfb'; /** * Constructor diff --git a/src/Packet/SymEncryptedIntegrityProtectedData.php b/src/Packet/SymEncryptedIntegrityProtectedData.php index 9e78f05c..72a733a9 100644 --- a/src/Packet/SymEncryptedIntegrityProtectedData.php +++ b/src/Packet/SymEncryptedIntegrityProtectedData.php @@ -40,7 +40,7 @@ class SymEncryptedIntegrityProtectedData extends AbstractPacket implements Encry const VERSION = 1; const HASH_ALGO = 'sha1'; - const ZERO_CHAR = "\x0"; + const ZERO_CHAR = "\x00"; const CIPHER_MODE = 'cfb'; const SUFFIX_OCTETS = "\xd3\x14";