cvs: phpdoc /ja/functions openssl.xml strings.xml
| From: | Rui Hirokawa | Date: | Wed, 27 Dec 2000 22:09:00 +0000 |
| Subject: | cvs: phpdoc /ja/functions openssl.xml strings.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969333408@lists.php.net to get a copy of this message | ||
hirokawa Wed Dec 27 14:09:00 2000 EDT
Modified files:
/phpdoc/ja/functions openssl.xml strings.xml
Log:
update translation.
Index: phpdoc/ja/functions/openssl.xml
diff -u phpdoc/ja/functions/openssl.xml:1.2 phpdoc/ja/functions/openssl.xml:1.3
--- phpdoc/ja/functions/openssl.xml:1.2 Tue Dec 26 15:27:49 2000
+++ phpdoc/ja/functions/openssl.xml Wed Dec 27 14:08:59 2000
@@ -166,45 +166,43 @@
</funcprototype>
</funcsynopsis>
<para>
- Returns the length of the sealed data on success, or false on error.
- If successful the sealed data is returned in
- <parameter>sealed_data</parameter>, and the envelope keys in
- <parameter>env_keys</parameter>.
-
+
æåæã«ã·ã¼ã«(æå·å)ããããã¼ã¿ã®é·ããã¨ã©ã¼æã«falseãè¿ãã¾
+
ããæåæã«ã¯ãæå·åããããã¼ã¿ã
+
<parameter>sealed_data</parameter>ã«ãã¨ã³ããã¼ããã¼ã
+ <parameter>env_keys</parameter> ã«è¿ããã¾ãã
</para>
<para>
- <function>openssl_seal</function> seals (encrypts)
- <parameter>data</parameter> by using RC4 with a randomly generated
- secret key. The key is encrypted with each of the public keys
- associated with the identifiers in <parameter>pub_key_ids</parameter>
- and each encrypted key is returned
- in <parameter>env_keys</parameter>. This means that one can send
- sealed data to multiple recipients (provided one has obtained their
- public keys). Each recipient must receive both the sealed data and
- the envelope key that was encrypted with the recipient's public key.
+ <function>openssl_seal</function>
ã¯ãã©ã³ãã ã«çæãããç§å¯ãã¼
+ ã«ãã RC4 ã使ç¨ãã¦
<parameter>data</parameter>ãã·ã¼ã«(æå·å)
+
ãã¾ãããã®ãã¼ã¯ã<parameter>pub_key_ids</parameter>
ãIDã¨ãã
+
åå
¬éãã¼ã§æå·åããã¾ããããã¯ãæå·åããããã¼ã¿ãè¤æ°ã®å
+
ä¿¡è
ã«éä¿¡ã§ãããã¨ãæå³ãã¾ãã(ãã®éãååä¿¡è
ã¯éä¿¡å´ã«å
Ž
+
ãã¼ãæä¾ãã¾ãã)ååä¿¡è
ã¯ãæå·åããããã¼ã¿ã¨ãã®åä¿¡è
ã®å
¬
+
éãã¼ã§æå·åãããã¨ã³ããã¼ããã¼ãåãåãå¿
è¦ãããã¾ãã
</para>
<para>
<example>
<title><function>openssl_seal</function> ã®ä¾</title>
<programlisting role="php">
-// $data is assumed to contain the data to be sealed
+// $data
ã«ã¯ãæå·åããããã¼ã¿ãå«ã¾ãã¦ããã¨ä»®å®
-// fetch public keys for our recipients, and ready them
+//
åä¿¡è
ã®å
¬éãã¼ãåå¾ãã使ç¨å¯è½ã«ãã
$fp = fopen("/src/openssl-0.9.6/demos/maurice/cert.pem", "r");
$cert = fread($fp, 8192);
fclose($fp);
$pk1 = openssl_get_publickey($cert);
-// Repeat for second recipient
+// 2çªç®ã®åä¿¡è
ã«ã¤ãã¦ãåæ§
$fp = fopen("/src/openssl-0.9.6/demos/sign/cert.pem", "r");
$cert = fread($fp, 8192);
fclose($fp);
$pk2 = openssl_get_publickey($cert);
-// seal message, only owners of $pk1 and $pk2 can decrypt $sealed with keys
-// $ekeys[0] and $ekeys[1] respectively.
+// ã¡ãã»ã¼ã¸ãæå·åã$pk1 ããã³ $pk2
ã®ææè
ã®ã¿ããæå·åããã
+//
ãã¼ã¿ãããããã¨ã³ããã¼ããã¼$ekeys[0]ããã³$ekeys[1]ã§å¾©å·åã
+// ããã¨ãå¯è½
openssl_seal($data, $sealed, $ekeys, array($pk1,$pk2));
-// free the keys from memory
+// ãã¼ãã¡ã¢ãªããéæ¾ãã
openssl_free_key($pk1);
openssl_free_key($pk2);
</programlisting>
@@ -219,7 +217,7 @@
<refentry id="function.openssl-sign">
<refnamediv>
<refname>openssl_sign</refname>
- <refpurpose>ãã¼ã¿ã®ç½²å</refpurpose>
+ <refpurpose>ç½²åãçæãã</refpurpose>
</refnamediv>
<refsect1>
<title>説æ</title>
@@ -288,34 +286,35 @@
ã« -1 ãè¿ãã¾ãã
</para>
<para>
- <function>openssl_verify</function> verifies that the
- <parameter>signature</parameter> is correct for the specified
- <parameter>data</parameter> using the public key associated with
- <parameter>pub_key_id</parameter>. This must be the public key
- corresponding to the private key used for signing.
+ <function>openssl_verify</function> ã¯ã
+ <parameter>pub_key_id</parameter>
ãæãå
¬éãã¼ã使ç¨ãã¦æå®ã
+ ã <parameter>data</parameter> ã«é¢ãã¦
+ <parameter>signature</parameter>
ãæ£ãããã¨ã確èªãã¾ããç½²åã
+
æ£ããã¨å¤å®ãããããã«ã¯ããã®å
¬éãã¼ãç½²åã®éã«ä½¿ç¨ããç§å¯
+
ãã¼ã«å¯¾å¿ãã¦ãããã¨ãå¿
è¦ã¨ãã¾ãã
</para>
<para>
<example>
<title><function>openssl_verify</function> ã®ä¾</title>
<programlisting role="php">
-// $data and $signature are assumed to contain the data and the signature
+// $data ããã³ $signature
ã¯ãã¼ã¿ããã³ç½²åãå«ã¾ãã¦ããã¨ä»®å®
-// fetch public key from certificate and ready it
+//
èªè¨¼å±ããå
¬éãã¼ãåå¾ãã使ç¨å¯è½ã«ãã
$fp = fopen("/src/openssl-0.9.6/demos/sign/cert.pem", "r");
$cert = fread($fp, 8192);
fclose($fp);
$pubkeyid = openssl_get_publickey($cert);
-// state whether signature is okay or not
+// ç½²åãæ£ãããã©ããã確èª
$ok = openssl_verify($data, $signature, $pubkeyid);
if ($ok == 1)
- echo "good";
+ echo "æ£ããã§ã";
elseif ($ok == 0)
- echo "bad";
+ echo "æ£ããããã¾ãã";
else
- echo "ugly, error checking signature";
+ echo
"ç½²åã確èªããéã«ã¨ã©ã¼ãçºçãã¾ãã";
-// free the key from memory
+// ã¡ã¢ãªãããã¼ãéæ¾
openssl_free_key($pubkeyid);
</programlisting>
</example>
Index: phpdoc/ja/functions/strings.xml
diff -u phpdoc/ja/functions/strings.xml:1.23 phpdoc/ja/functions/strings.xml:1.24
--- phpdoc/ja/functions/strings.xml:1.23 Sat Dec 23 21:35:38 2000
+++ phpdoc/ja/functions/strings.xml Wed Dec 27 14:08:59 2000
@@ -838,6 +838,38 @@
</refsect1>
</refentry>
+ <refentry id="function.iconv">
+ <refnamediv>
+ <refname>iconv</refname>
+
<refpurpose>æååã®ã³ã¼ãã夿ãã</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>説æ</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>string <function>iconv</function></funcdef>
+ <paramdef>string <parameter>in</parameter></paramdef>
+ <paramdef>string <parameter>out</parameter></paramdef>
+ <paramdef>string <parameter>str</parameter></paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <function>iconv</function> ã¯ã<parameter>in</parameter>
ã§ã¨ã³ã³ã¼
+ ããããæåå <parameter>str</parameter>
ãã¨ã³ã³ã¼ã
+ <parameter>out</parameter>
ã«å¤æããçµæã®æååãè¿ãã¾ãã
+ <example>
+ <title><function>iconv</function>ã®ä¾</title>
+ <programlisting role="php">
+print iconv ("UTF-8", "EUC-JP" $str);
+ </programlisting>
+ </example>
+ </para>
+ <simpara>
+ <function>iconv</function> ã¯ãPHP 4.0.5
ã§å°å
¥ããã¾ããã
+ </simpara>
+ </refsect1>
+ </refentry>
+
<refentry id="function.implode">
<refnamediv>
<refname>implode</refname>