Skip to content

Commit

Permalink
throw exception if mode cannot be determinated
Browse files Browse the repository at this point in the history
  • Loading branch information
solverat committed Sep 12, 2024
1 parent f3b0bb8 commit 4530fd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/services/.gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

4 changes: 4 additions & 0 deletions src/Encrypter/OpenSslEncrypter.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ private function handleIv($in, $out, &$consumed): void
$this->iv = substr($this->buffer, 0, $this->blockSize);
$this->buffer = substr($this->buffer, $this->blockSize); // Remove IV from buffer
}

return;
}

throw new \Exception(sprintf('Unknown mode %s"', $this->mode));
}
}

0 comments on commit 4530fd8

Please sign in to comment.