openssl_cipher_iv_length
Gets the cipher iv length
Beschreibung
int openssl_cipher_iv_length
( string $method
)
Parameter-Liste
-
method
-
The cipher method, see openssl_get_cipher_methods for a list of potential values.
Rückgabewerte
Returns the cipher length on success, or FALSE on failure.
Fehler/Exceptions
Emits an E_WARNING level error when the cipher algorithm
is unknown.
Beispiele
Beispiel #1 openssl_cipher_iv_length example
<?php
$method = 'AES-128-CBC';
$ivlen = openssl_cipher_iv_length($method);
echo $ivlen;
?>
Das oben gezeigte Beispiel erzeugt
eine ähnliche Ausgabe wie: