getIVLength()); if (false === $bytes) { throw new AesException((string) openssl_error_string()); } return $bytes; } /** * Return length of generated IV. * * @return int * * @throws AesException */ public function getIVLength() { $length = openssl_cipher_iv_length($this->cipherMethod); if (false === $length) { throw new AesException((string) openssl_error_string()); } return $length; } /** * Return AES-256-CBC string. * * @return string */ public function getCipherMethod() { return $this->cipherMethod; } }