Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Nguyen Van Nguyen <[email protected]>
  • Loading branch information
nguyennv committed Jan 17, 2024
1 parent 0fed77b commit 5d1b1e7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/Packet/AeadEncryptedData.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class AeadEncryptedData extends AbstractPacket implements EncryptedDataPacketInt
use EncryptedDataTrait;

const VERSION = 1;

const ZERO_CHAR = "\x00";

/**
Expand Down
6 changes: 3 additions & 3 deletions src/Packet/SecretKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Packet/SymEncryptedIntegrityProtectedData.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit 5d1b1e7

Please sign in to comment.