Skip to content

Commit

Permalink
Remove Unnecessary Variables
Browse files Browse the repository at this point in the history
  • Loading branch information
IlicMiljan committed Mar 7, 2024
1 parent 58fe3e7 commit f5a7afd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/Cipher/AdvancedEncryptionStandardCipher.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public function __construct(
public function encrypt(#[SensitiveParameter] string $string): string
{
$iv = $this->generateInitializationVector(self::CIPHER);
$tag = '';

$encryptedString = openssl_encrypt($string, self::CIPHER, $this->key, 0, $iv, $tag, '', self::TAG_LENGTH);

Expand Down
1 change: 0 additions & 1 deletion tests/Cipher/AsymmetricEncryptionCipherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ protected function setUp(): void
/** @var string[] $asymmetricKeyDetails */
$asymmetricKeyDetails = openssl_pkey_get_details($asymmetricKey);

$privateKey = '';
openssl_pkey_export($asymmetricKey, $privateKey);

$this->cipher = new AsymmetricEncryptionCipher($asymmetricKeyDetails['key'], $privateKey);
Expand Down

0 comments on commit f5a7afd

Please sign in to comment.