private function ensureSupport()
{
$supportedAlgorithms = $this->getSupportedAlgorithms();
if (!in_array($this->getAlgorithm(), $supportedAlgorithms)) {
throw new \RuntimeException(sprintf('Encryption algorithm "%s" is not supported on this system.', $this->getAlgorithm()));
}
}