We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cad6d57 commit 16a5cf4Copy full SHA for 16a5cf4
1 file changed
src/Backend/OpenSSL.php
@@ -159,7 +159,7 @@ public function decrypt(
159
$options = OPENSSL_RAW_DATA | OPENSSL_ZERO_PADDING;
160
if ($this->useAuthTag) { // configure GCM mode
161
$authTag = substr($ciphertext, - self::AUTH_TAG_LEN);
162
- if (strlen($authTag) !== self::AUTH_TAG_LEN {
+ if (strlen($authTag) !== self::AUTH_TAG_LEN) {
163
throw new RuntimeException('Authentication tag length is invalid');
164
}
165
$ciphertext = substr($ciphertext, 0, - self::AUTH_TAG_LEN);
0 commit comments