Add modern cryptors #275
Annotations
10 warnings
|
mutation / PHP 8.5-ubuntu-latest:
src/Crypt/Cipher/OpenSSLAeadCipher.php#L69
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
throw new RuntimeException('Encryption requires the OpenSSL PHP extension.');
}
if (!array_key_exists($cipher, self::ALLOWED_CIPHERS)) {
- throw new RuntimeException($cipher . ' is not an allowed cipher.');
+ throw new RuntimeException($cipher);
}
[$this->keySize, $this->nonceSize] = self::ALLOWED_CIPHERS[$this->cipher];
}
|
|
mutation / PHP 8.5-ubuntu-latest:
src/Crypt/Cipher/OpenSSLAeadCipher.php#L69
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
throw new RuntimeException('Encryption requires the OpenSSL PHP extension.');
}
if (!array_key_exists($cipher, self::ALLOWED_CIPHERS)) {
- throw new RuntimeException($cipher . ' is not an allowed cipher.');
+ throw new RuntimeException(' is not an allowed cipher.');
}
[$this->keySize, $this->nonceSize] = self::ALLOWED_CIPHERS[$this->cipher];
}
|
|
mutation / PHP 8.5-ubuntu-latest:
src/Crypt/Cipher/OpenSSLAeadCipher.php#L69
Escaped Mutant for Mutator "Concat":
@@ @@
throw new RuntimeException('Encryption requires the OpenSSL PHP extension.');
}
if (!array_key_exists($cipher, self::ALLOWED_CIPHERS)) {
- throw new RuntimeException($cipher . ' is not an allowed cipher.');
+ throw new RuntimeException(' is not an allowed cipher.' . $cipher);
}
[$this->keySize, $this->nonceSize] = self::ALLOWED_CIPHERS[$this->cipher];
}
|
|
mutation / PHP 8.5-ubuntu-latest:
src/Crypt.php#L311
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
* @psalm-suppress PossiblyFalseOperand `openssl_decrypt()` is returned `false`, so `openssl_error_string()`
* always returns string.
*/
- throw new \RuntimeException('OpenSSL failure on decryption: ' . openssl_error_string());
+ throw new \RuntimeException('OpenSSL failure on decryption: ');
}
return $decrypted;
}
}
|
|
mutation / PHP 8.5-ubuntu-latest:
src/Crypt.php#L311
Escaped Mutant for Mutator "Concat":
@@ @@
* @psalm-suppress PossiblyFalseOperand `openssl_decrypt()` is returned `false`, so `openssl_error_string()`
* always returns string.
*/
- throw new \RuntimeException('OpenSSL failure on decryption: ' . openssl_error_string());
+ throw new \RuntimeException(openssl_error_string() . 'OpenSSL failure on decryption: ');
}
return $decrypted;
}
}
|
|
mutation / PHP 8.5-ubuntu-latest:
src/Crypt.php#L247
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
* @psalm-suppress PossiblyFalseOperand `openssl_encrypt()` is returned `false`, so `openssl_error_string()`
* always returns string.
*/
- throw new \RuntimeException('OpenSSL failure on encryption: ' . openssl_error_string());
+ throw new \RuntimeException('OpenSSL failure on encryption: ');
}
$authKey = hash_hkdf($this->kdfAlgorithm, $key, $keySize, $this->authorizationKeyInfo);
$signed = (new Mac())->sign($iv . $encrypted, $authKey);
|
|
mutation / PHP 8.5-ubuntu-latest:
src/Crypt.php#L247
Escaped Mutant for Mutator "Concat":
@@ @@
* @psalm-suppress PossiblyFalseOperand `openssl_encrypt()` is returned `false`, so `openssl_error_string()`
* always returns string.
*/
- throw new \RuntimeException('OpenSSL failure on encryption: ' . openssl_error_string());
+ throw new \RuntimeException(openssl_error_string() . 'OpenSSL failure on encryption: ');
}
$authKey = hash_hkdf($this->kdfAlgorithm, $key, $keySize, $this->authorizationKeyInfo);
$signed = (new Mac())->sign($iv . $encrypted, $authKey);
|
|
mutation / PHP 8.5-ubuntu-latest:
src/Crypt.php#L55
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
throw new \RuntimeException('Encryption requires the OpenSSL PHP extension.');
}
if (!array_key_exists($cipher, self::ALLOWED_CIPHERS)) {
- throw new \RuntimeException($cipher . ' is not an allowed cipher.');
+ throw new \RuntimeException($cipher);
}
}
/**
|
|
mutation / PHP 8.5-ubuntu-latest:
src/Crypt.php#L55
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
throw new \RuntimeException('Encryption requires the OpenSSL PHP extension.');
}
if (!array_key_exists($cipher, self::ALLOWED_CIPHERS)) {
- throw new \RuntimeException($cipher . ' is not an allowed cipher.');
+ throw new \RuntimeException(' is not an allowed cipher.');
}
}
/**
|
|
mutation / PHP 8.5-ubuntu-latest:
src/Crypt.php#L55
Escaped Mutant for Mutator "Concat":
@@ @@
throw new \RuntimeException('Encryption requires the OpenSSL PHP extension.');
}
if (!array_key_exists($cipher, self::ALLOWED_CIPHERS)) {
- throw new \RuntimeException($cipher . ' is not an allowed cipher.');
+ throw new \RuntimeException(' is not an allowed cipher.' . $cipher);
}
}
/**
|