mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

This function works in exactly the same way as openssl_cipher_iv_length but for a key length. This is especially useful to make sure that the right key length is provided to openssl_encrypt and openssl_decrypt. In addtion the change also updates implementation of openssl_cipher_iv_length and adds a test for it.
12 lines
160 B
PHP
12 lines
160 B
PHP
--TEST--
|
|
openssl_cipher_iv_length() basic test
|
|
--EXTENSIONS--
|
|
openssl
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(openssl_cipher_iv_length('AES-128-CBC'));
|
|
|
|
?>
|
|
--EXPECT--
|
|
int(16)
|