cvs: phpdoc /ja/functions openssl.xml

From: Date: Tue, 26 Dec 2000 23:27:50 +0000
Subject: cvs: phpdoc /ja/functions openssl.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969333389@lists.php.net to get a copy of this message
hirokawa Tue Dec 26 15:27:50 2000 EDT Modified files: /phpdoc/ja/functions openssl.xml Log: update translation.

Index: phpdoc/ja/functions/openssl.xml diff -u phpdoc/ja/functions/openssl.xml:1.1 phpdoc/ja/functions/openssl.xml:1.2 --- phpdoc/ja/functions/openssl.xml:1.1 Tue Dec 26 14:23:12 2000 +++ phpdoc/ja/functions/openssl.xml Tue Dec 26 15:27:49 2000 @@ -1,26 +1,26 @@ <reference id="ref.openssl"> - <title>OpenSSL Functions</title> + <title>OpenSSL 関数</title> <titleabbrev>OpenSSL</titleabbrev> <partintro> <para> - This module uses the functions of <ulink - url="&url.openssl;">OpenSSL</ulink> for generation and verification - of signatures and for sealing (encrypting) and opening (decrypting) - data. You need to use OpenSSL >= 0.9.6 with this module. + このモジュールは、署名の生成および認証、そして、データのシール + (暗号化)およびオープン(復号化)を行うために、<ulink + url="&url.openssl;">OpenSSL</ulink> の関数を使用します。このモジュー + ルでは、OpenSSL >= 0.9.6 を使用する必要があります。 </para> <para> - OpenSSL offers many features that this module currently doesn't support. - Some of these may be added in the future. + OpenSSL は多くの機能を提供しますが、これらはまだこのモジュールでは + サポートされていません。 </para> </partintro> <refentry id="function.openssl-free-key"> <refnamediv> <refname>openssl_free_key</refname> - <refpurpose>Free key resource</refpurpose> + <refpurpose>キーリソースを開放する</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>void <function>openssl_free_key</function></funcdef> @@ -28,8 +28,9 @@ </funcprototype> </funcsynopsis> <para> - <function>openssl_free_key</function> frees the key associated with - the specified <parameter>key_identifier</parameter> from memory. + <function>openssl_free_key</function> は、指定した + <parameter>key_identifier</parameter> が指すキーをメモリから開放 + します。 </para> </refsect1> </refentry> @@ -37,26 +38,28 @@ <refentry id="function.openssl-get-privatekey"> <refnamediv> <refname>openssl_get_privatekey</refname> - <refpurpose>Prepare a PEM formatted private key for use</refpurpose> + <refpurpose>PEMフォーマットされた秘密キーを使用可能とする</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>int <function>openssl_get_privatekey</function></funcdef> <paramdef>string <parameter>key</parameter></paramdef> - <paramdef>string <parameter><optional>passphrase</optional></parameter></paramdef> + <paramdef>string + <parameter><optional>passphrase</optional></parameter> + </paramdef> </funcprototype> </funcsynopsis> <para> - Returns a positive key identifier on success, or false on error. + 成功時に正のキーID、エラー時にfalseを返します。 </para> <para> - <function>openssl_get_privatekey</function> parses the PEM - formatted private key specified by <parameter>key</parameter> - and prepares it for use by other functions. - The optional parameter <parameter>passphrase</parameter> must be used if - the specified key is encrypted (protected by a passphrase). + <function>openssl_get_privatekey</function> は、 + <parameter>key</parameter>で指定したPEMフォーマットの秘密キーをパー + スし、他の関数で使用可能な状態にします。オプションのパラメータ + <parameter>passphrase</parameter> は、指定したキーが暗号化されて + いる場合(passphraseで保護されている)に使用する必要があります。 </para> </refsect1> </refentry> @@ -64,10 +67,12 @@ <refentry id="function.openssl-get-publickey"> <refnamediv> <refname>openssl_get_publickey</refname> - <refpurpose>Extract public key from certificate and prepare it for use</refpurpose> + <refpurpose> + 証明書(certificate)から公開キーを展開し、使用可能とする + </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>int <function>openssl_get_publickey</function></funcdef> @@ -75,13 +80,12 @@ </funcprototype> </funcsynopsis> <para> - Returns a positive key identifier on success, or false on error. + 成功時に公開キー、エラー時にfalseを返します。 </para> <para> - <function>openssl_get_publickey</function> extracts the - public key from a X.509 certificate specified by - <parameter>certificate</parameter> and prepares it for use by other - functions. + <function>openssl_get_publickey</function> は、 + <parameter>certificate</parameter> で指定した X.509 証明書から公 + 開キーを展開し、他の関数で使用可能な状態にします。 </para> </refsect1> </refentry> @@ -89,10 +93,10 @@ <refentry id="function.openssl-open"> <refnamediv> <refname>openssl_open</refname> - <refpurpose>Open sealed data</refpurpose> + <refpurpose>シール(暗号化)されたデータをオープン(復号)する</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>bool <function>openssl_open</function></funcdef> @@ -103,43 +107,44 @@ </funcprototype> </funcsynopsis> <para> - Returns true on success, or false on error. If successful the opened - data is returned in <parameter>open_data</parameter>. + 成功時にtrue、エラー時にfalseを返します。成功した場合、オープンさ + れたデータが <parameter>open_data</parameter> に返されます。 </para> <para> - <function>openssl_open</function> opens (decrypts) - <parameter>sealed_data</parameter> using the private key associtated with - the key identifier <parameter>priv_key_id</parameter> and the envelope key - <parameter>env_key</parameter>. The envelope key is generated when the - data are sealed and can only be used by one specific private key. See - <function>openssl_seal</function> for more information. + <function>openssl_open</function> は、キーID + <parameter>priv_key_id</parameter> およびエンベロープキー + <parameter>env_key</parameter> に関連する公開キーを使用して、 + <parameter>sealed_data</parameter> をオープン(復号化)します。エン + ベロープキーは、データがシール(暗号化)された際に生成され、特定の + 一つの公開キーでのみ使用することが可能です。詳細な情報については、 + <function>openssl_seal</function> を参照下さい。 </para> <para> <example> - <title><function>openssl_open</function> example</title> + <title><function>openssl_open</function> の例</title> <programlisting role="php"> -// $sealed and $env_key are assumed to contain the sealed data -// and our envelope key, both given to us by the sealer. +// $sealed および $env_key に暗号化されたデータおよびエンベロープキー +// が含まれていると仮定。共にシール元(暗号化側)から与えられる。 -// fetch private key from file and ready it +// ファイルから公開キーを取得し、使用可能とする $fp = fopen("/src/openssl-0.9.6/demos/sign/key.pem", "r"); $priv_key = fread($fp, 8192); fclose($fp); $pkeyid = openssl_get_privatekey($priv_key); -// decrypt the data and store it in $open +// データを復号化し、$open に保存 if (openssl_open($sealed, $open, $env_key, $pkeyid)) echo "here is the opened data: ", $open; else echo "failed to open data"; -// free the private key from memory +// 公開キーをメモリから開放 openssl_free_key($pkeyid); </programlisting> </example> </para> <simpara> - See also <function>openssl_seal</function>. + <function>openssl_seal</function> も参照下さい。 </simpara> </refsect1> </refentry> @@ -147,10 +152,10 @@ <refentry id="function.openssl-seal"> <refnamediv> <refname>openssl_seal</refname> - <refpurpose>Seal data</refpurpose> + <refpurpose>データをシール(暗号化)する</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>int <function>openssl_seal</function></funcdef> @@ -180,7 +185,7 @@ </para> <para> <example> - <title><function>openssl_seal</function> example</title> + <title><function>openssl_seal</function> の例</title> <programlisting role="php"> // $data is assumed to contain the data to be sealed @@ -206,7 +211,7 @@ </example> </para> <simpara> - See also <function>openssl_open</function>. + <function>openssl_open</function> も参照下さい。 </simpara> </refsect1> </refentry> @@ -214,10 +219,10 @@ <refentry id="function.openssl-sign"> <refnamediv> <refname>openssl_sign</refname> - <refpurpose>Sign data</refpurpose> + <refpurpose>データの署名</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>bool <function>openssl_sign</function></funcdef> @@ -227,39 +232,38 @@ </funcprototype> </funcsynopsis> <para> - Returns true on success, or false on failure. - If successful the signature is returned in - <parameter>signature</parameter>. + 成功時にtrue、失敗した場合にfalseを返します。成功した場合、署名が + <parameter>signature</parameter> に返されます。 </para> <para> - <function>openssl_sign</function> computes a signature for the - specified <parameter>data</parameter> by using SHA1 for hashing - followed by encryption using the private key associated with - <parameter>priv_key_id</parameter>. Note that the data itself is - not encrypted. + <function>openssl_sign</function> は、指定した + <parameter>data</parameter> に関してハッシュ計算に SHA1 を使用し + て署名を計算し、その後、<parameter>priv_key_id</parameter> で指定 + した公開キーを使用して暗号化を行います。data 自体は暗号化されない + ことに注意して下さい。 </para> <para> <example> - <title><function>openssl_sign</function> example</title> + <title><function>openssl_sign</function> の例</title> <programlisting role="php"> -// $data is assumed to contain the data to be signed +// $data に署名するデータが含まれていると仮定 -// fetch private key from file and ready it +// ファイルから公開キーを取得し、使用可能とする $fp = fopen("/src/openssl-0.9.6/demos/sign/key.pem", "r"); $priv_key = fread($fp, 8192); fclose($fp); $pkeyid = openssl_get_privatekey($priv_key); -// compute signature +// 署名を計算 openssl_sign($data, $signature, $pkeyid); -// free the key from memory +// メモリからキーを開放する openssl_free_key($pkeyid); </programlisting> </example> </para> <simpara> - See also <function>openssl_verify</function>. + <function>openssl_verify</function> も参照下さい。 </simpara> </refsect1> </refentry> @@ -267,10 +271,10 @@ <refentry id="function.openssl-verify"> <refnamediv> <refname>openssl_verify</refname> - <refpurpose>Verify signature</refpurpose> + <refpurpose>署名を認証する</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>int <function>openssl_verify</function></funcdef> @@ -280,8 +284,8 @@ </funcprototype> </funcsynopsis> <para> - Returns 1 if the signature is correct, 0 if it is incorrect, and - -1 on error. + 署名(signature)が正しい場合に 1、正しくない場合に 0、エラーの場合 + に -1 を返します。 </para> <para> <function>openssl_verify</function> verifies that the @@ -292,7 +296,7 @@ </para> <para> <example> - <title><function>openssl_verify</function> example</title> + <title><function>openssl_verify</function> の例</title> <programlisting role="php"> // $data and $signature are assumed to contain the data and the signature @@ -317,7 +321,7 @@ </example> </para> <simpara> - See also <function>openssl_sign</function>. + <function>openssl_sign</function> も参照下さい。 </simpara> </refsect1> </refentry>
« previous php.doc (#969333389) next »