svn: /phpdoc/ja/trunk/reference/ gmp/functions/gmp-setbit.xml hash/functions/hash-pbkdf2.xml
| From: | Satoru Yoshida | Date: | Sun, 03 Mar 2019 22:41:01 +0000 |
| Subject: | svn: /phpdoc/ja/trunk/reference/ gmp/functions/gmp-setbit.xml hash/functions/hash-pbkdf2.xml | ||
| Groups: | php.doc.ja | ||
| Request: | Send a blank email to doc-ja+get-5019@lists.php.net to get a copy of this message | ||
satoruyoshida Sun, 03 Mar 2019 22:41:01 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=346969
Log:
sync en
Changed paths:
U phpdoc/ja/trunk/reference/gmp/functions/gmp-setbit.xml
U phpdoc/ja/trunk/reference/hash/functions/hash-pbkdf2.xml
Modified: phpdoc/ja/trunk/reference/gmp/functions/gmp-setbit.xml
===================================================================
--- phpdoc/ja/trunk/reference/gmp/functions/gmp-setbit.xml 2019-03-03 22:34:57 UTC (rev 346968)
+++ phpdoc/ja/trunk/reference/gmp/functions/gmp-setbit.xml 2019-03-03 22:41:01 UTC (rev 346969)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 333674 Maintainer: hirokawa Status: ready -->
+<!-- EN-Revision: 343899 Maintainer: hirokawa Status: ready -->
<refentry xmlns="http://docbook.org/ns/docbook"
xml:id="function.gmp-setbit">
<refnamediv>
<refname>gmp_setbit</refname>
@@ -11,9 +11,9 @@
&reftitle.description;
<methodsynopsis>
<type>void</type><methodname>gmp_setbit</methodname>
- <methodparam><type>GMP</type><parameter
role="reference">a</parameter></methodparam>
+
<methodparam><type>GMP</type><parameter>a</parameter></methodparam>
<methodparam><type>int</type><parameter>index</parameter></methodparam>
- <methodparam
choice="opt"><type>bool</type><parameter>bit_on</parameter><initializer>true</initializer></methodparam>
+ <methodparam
choice="opt"><type>bool</type><parameter>bit_on</parameter><initializer>&true;</initializer></methodparam>
</methodsynopsis>
<para>
<parameter>a</parameter> のビット <parameter>index</parameter>
Modified: phpdoc/ja/trunk/reference/hash/functions/hash-pbkdf2.xml
===================================================================
--- phpdoc/ja/trunk/reference/hash/functions/hash-pbkdf2.xml 2019-03-03 22:34:57 UTC (rev 346968)
+++ phpdoc/ja/trunk/reference/hash/functions/hash-pbkdf2.xml 2019-03-03 22:41:01 UTC (rev 346969)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 342106 Maintainer: masakielastic Status: working -->
+<!-- EN-Revision: 343899 Maintainer: masakielastic Status: working -->
<!-- Reviewed: no -->
<refentry xml:id="function.hash-pbkdf2" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -18,7 +18,7 @@
<methodparam><type>string</type><parameter>salt</parameter></methodparam>
<methodparam><type>int</type><parameter>iterations</parameter></methodparam>
<methodparam
choice="opt"><type>int</type><parameter>length</parameter><initializer>0</initializer></methodparam>
- <methodparam
choice="opt"><type>bool</type><parameter>raw_output</parameter><initializer>false</initializer></methodparam>
+ <methodparam
choice="opt"><type>bool</type><parameter>raw_output</parameter><initializer>&false;</initializer></methodparam>
</methodsynopsis>
</refsect1>
@@ -131,9 +131,9 @@
$password = "password";
$iterations = 1000;
-// ランダムな IV を、mcrypt_create_iv() や
-// openssl_random_pseudo_bytes() などの適切なソースを使って生成します。
-$salt = mcrypt_create_iv(16, MCRYPT_DEV_URANDOM);
+// ランダムな IV を、openssl_random_pseudo_bytes() や
+// random_bytes() などの適切なソースを使って生成します。
+$salt = openssl_random_pseudo_bytes(16);
$hash = hash_pbkdf2("sha256", $password, $salt, $iterations, 20);
echo $hash;
@@ -172,6 +172,7 @@
<member><function>hash_init</function></member>
<member><function>hash_hmac</function></member>
<member><function>hash_hmac_file</function></member>
+ <member><function>openssl_pbkdf2</function></member>
</simplelist>
</para>
</refsect1>