downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

openssl_csr_export_to_file> <OpenSSL 関数
[edit] Last updated: Fri, 25 May 2012

view this page in

openssl_cipher_iv_length

(PHP 5 >= PHP 5.3.3)

openssl_cipher_iv_length暗号 iv の長さを取得

説明

int openssl_cipher_iv_length ( string $method )

暗号 iv の長さを取得。

パラメータ

method

メソッド。

返り値

成功した場合は暗号の長さ、失敗した場合には FALSE を返します。

エラー / 例外

暗号アルゴリズムが未知の場合、 E_WARNING レベルのエラーを発生します。

例1 openssl_cipher_iv_length() の例

<?php
$method 
'AES-128-CBC';
$ivlen openssl_cipher_iv_length($method);

echo 
$ivlen;
?>

上の例の出力は、 たとえば以下のようになります。

16


add a note add a note User Contributed Notes openssl_cipher_iv_length
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites