Skip to content

Commit 8b0678a

Browse files
committed
initial translation in hash/functions
1 parent 20f573e commit 8b0678a

15 files changed

+2325
-0
lines changed
+183
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- EN-Revision: 71e12e2df7b0bcf0dc2743681b73790ac0d45ccc Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
3+
<refentry xml:id="function.hash-algos" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
4+
<refnamediv>
5+
<refname>hash_algos</refname>
6+
<refpurpose>Retorna uma lista de algoritmos de hash registrados</refpurpose>
7+
</refnamediv>
8+
<refsect1 role="description">
9+
&reftitle.description;
10+
<methodsynopsis>
11+
<type>array</type><methodname>hash_algos</methodname>
12+
<void/>
13+
</methodsynopsis>
14+
</refsect1>
15+
16+
<refsect1 role="parameters">
17+
&reftitle.parameters;
18+
&no.function.parameters;
19+
</refsect1>
20+
21+
<refsect1 role="returnvalues">
22+
&reftitle.returnvalues;
23+
<para>
24+
Retorna um array indexado numericamente contendo a lista de algoritmos de
25+
hash suportados.
26+
</para>
27+
</refsect1>
28+
29+
<refsect1 role="changelog"><!-- {{{ -->
30+
&reftitle.changelog;
31+
<para>
32+
<informaltable>
33+
<tgroup cols="2">
34+
<thead>
35+
<row>
36+
<entry>&Version;</entry>
37+
<entry>&Description;</entry>
38+
</row>
39+
</thead>
40+
<tbody>
41+
<row>
42+
<entry>8.1.0</entry>
43+
<entry>
44+
Foi adicionado suporte para algoritmos MurmurHash3 e xxHash.
45+
</entry>
46+
</row>
47+
<row>
48+
<entry>7.4.0</entry>
49+
<entry>
50+
Foi adicionado suporte para crc32c.
51+
</entry>
52+
</row>
53+
<row>
54+
<entry>7.1.0</entry>
55+
<entry>
56+
Suporte para sha512/224, sha512/256, sha3-224, sha3-256, sha3-384 e
57+
sha3-512 foi adicionado.
58+
</entry>
59+
</row>
60+
</tbody>
61+
</tgroup>
62+
</informaltable>
63+
</para>
64+
</refsect1><!-- }}} -->
65+
66+
<refsect1 role="examples">
67+
&reftitle.examples;
68+
<para>
69+
<example>
70+
<title>Exemplo de <function>hash_algos</function></title>
71+
<para>
72+
A partir do PHP 8.1.0, <function>hash_algos</function> retornará a
73+
seguinte lista de nomes de algoritmos.
74+
</para>
75+
<programlisting role="php">
76+
<![CDATA[
77+
<?php
78+
print_r(hash_algos());
79+
?>
80+
]]>
81+
</programlisting>
82+
&example.outputs.similar;
83+
<screen>
84+
<![CDATA[
85+
Array
86+
(
87+
[0] => md2
88+
[1] => md4
89+
[2] => md5
90+
[3] => sha1
91+
[4] => sha224
92+
[5] => sha256
93+
[6] => sha384
94+
[7] => sha512/224
95+
[8] => sha512/256
96+
[9] => sha512
97+
[10] => sha3-224
98+
[11] => sha3-256
99+
[12] => sha3-384
100+
[13] => sha3-512
101+
[14] => ripemd128
102+
[15] => ripemd160
103+
[16] => ripemd256
104+
[17] => ripemd320
105+
[18] => whirlpool
106+
[19] => tiger128,3
107+
[20] => tiger160,3
108+
[21] => tiger192,3
109+
[22] => tiger128,4
110+
[23] => tiger160,4
111+
[24] => tiger192,4
112+
[25] => snefru
113+
[26] => snefru256
114+
[27] => gost
115+
[28] => gost-crypto
116+
[29] => adler32
117+
[30] => crc32
118+
[31] => crc32b
119+
[32] => crc32c
120+
[33] => fnv132
121+
[34] => fnv1a32
122+
[35] => fnv164
123+
[36] => fnv1a64
124+
[37] => joaat
125+
[38] => murmur3a
126+
[39] => murmur3c
127+
[40] => murmur3f
128+
[41] => xxh32
129+
[42] => xxh64
130+
[43] => xxh3
131+
[44] => xxh128
132+
[45] => haval128,3
133+
[46] => haval160,3
134+
[47] => haval192,3
135+
[48] => haval224,3
136+
[49] => haval256,3
137+
[50] => haval128,4
138+
[51] => haval160,4
139+
[52] => haval192,4
140+
[53] => haval224,4
141+
[54] => haval256,4
142+
[55] => haval128,5
143+
[56] => haval160,5
144+
[57] => haval192,5
145+
[58] => haval224,5
146+
[59] => haval256,5
147+
)
148+
]]>
149+
</screen>
150+
</example>
151+
</para>
152+
</refsect1>
153+
154+
<refsect1 role="seealso"><!-- {{{ -->
155+
&reftitle.seealso;
156+
<simplelist>
157+
<member><function>hash</function></member>
158+
<member><function>hash_hmac_algos</function></member>
159+
</simplelist>
160+
</refsect1><!-- }}} -->
161+
162+
</refentry>
163+
164+
<!-- Keep this comment at the end of the file
165+
Local variables:
166+
mode: sgml
167+
sgml-omittag:t
168+
sgml-shorttag:t
169+
sgml-minimize-attributes:nil
170+
sgml-always-quote-attributes:t
171+
sgml-indent-step:1
172+
sgml-indent-data:t
173+
indent-tabs-mode:nil
174+
sgml-parent-document:nil
175+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
176+
sgml-exposed-tags:nil
177+
sgml-local-catalogs:nil
178+
sgml-local-ecat-files:nil
179+
End:
180+
vim600: syn=xml fen fdm=syntax fdl=2 si
181+
vim: et tw=78 syn=sgml
182+
vi: ts=1 sw=1
183+
-->
+116
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- EN-Revision: 584a9fb976cccc93109776a904ec1c5ddb2d580f Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
3+
<refentry xml:id="function.hash-copy" xmlns="http://docbook.org/ns/docbook">
4+
<refnamediv>
5+
<refname>hash_copy</refname>
6+
<refpurpose>Copia contexto de hash</refpurpose>
7+
</refnamediv>
8+
<refsect1 role="description">
9+
&reftitle.description;
10+
<methodsynopsis>
11+
<type>HashContext</type><methodname>hash_copy</methodname>
12+
<methodparam><type>HashContext</type><parameter>context</parameter></methodparam>
13+
</methodsynopsis>
14+
</refsect1>
15+
16+
<refsect1 role="parameters">
17+
&reftitle.parameters;
18+
<para>
19+
<variablelist>
20+
<varlistentry>
21+
<term><parameter>context</parameter></term>
22+
<listitem>
23+
<para>
24+
Contexto de hash retornado por <function>hash_init</function>.
25+
</para>
26+
</listitem>
27+
</varlistentry>
28+
</variablelist>
29+
</para>
30+
</refsect1>
31+
32+
<refsect1 role="returnvalues">
33+
&reftitle.returnvalues;
34+
<para>
35+
Retorna uma cópia do contexto de hash.
36+
</para>
37+
</refsect1>
38+
39+
<refsect1 role="changelog">
40+
&reftitle.changelog;
41+
<para>
42+
<informaltable>
43+
<tgroup cols="2">
44+
<thead>
45+
<row>
46+
<entry>&Version;</entry>
47+
<entry>&Description;</entry>
48+
</row>
49+
</thead>
50+
<tbody>
51+
<row>
52+
<entry>7.2.0</entry>
53+
<entry>
54+
Aceita e retorna <classname>HashContext</classname> em vez de recurso.
55+
</entry>
56+
</row>
57+
</tbody>
58+
</tgroup>
59+
</informaltable>
60+
</para>
61+
</refsect1>
62+
63+
<refsect1 role="examples">
64+
&reftitle.examples;
65+
<para>
66+
<example>
67+
<title>Exemplo de <function>hash_copy</function></title>
68+
<programlisting role="php">
69+
<![CDATA[
70+
<?php
71+
$context = hash_init("sha256");
72+
hash_update($context, "The quick brown fox ");
73+
74+
/* copia o contexto para poder continuar a usá-lo */
75+
$copy_context = hash_copy($context);
76+
77+
echo hash_final($context), "\n";
78+
79+
hash_update($copy_context, "jumped over the lazy dog.");
80+
echo hash_final($copy_context), "\n";
81+
?>
82+
]]>
83+
</programlisting>
84+
&example.outputs;
85+
<screen>
86+
<![CDATA[
87+
b29d66e56ed90cce9b0165c43fedec612b60a071974d8be4513e18580d55b5bd
88+
68b1282b91de2c054c36629cb8dd447f12f096d3e3c587978dc2248444633483
89+
]]>
90+
</screen>
91+
</example>
92+
</para>
93+
</refsect1>
94+
95+
</refentry>
96+
97+
<!-- Keep this comment at the end of the file
98+
Local variables:
99+
mode: sgml
100+
sgml-omittag:t
101+
sgml-shorttag:t
102+
sgml-minimize-attributes:nil
103+
sgml-always-quote-attributes:t
104+
sgml-indent-step:1
105+
sgml-indent-data:t
106+
indent-tabs-mode:nil
107+
sgml-parent-document:nil
108+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
109+
sgml-exposed-tags:nil
110+
sgml-local-catalogs:nil
111+
sgml-local-ecat-files:nil
112+
End:
113+
vim600: syn=xml fen fdm=syntax fdl=2 si
114+
vim: et tw=78 syn=sgml
115+
vi: ts=1 sw=1
116+
-->

0 commit comments

Comments
 (0)