xref: /PHP-8.2/ext/hash/tests/hash_algos.phpt (revision 23590f7c)
1--TEST--
2Hash: hash_algos() function : basic functionality
3--FILE--
4<?php
5
6echo "*** Testing hash_algos() : basic functionality ***\n";
7var_dump(hash_algos());
8
9?>
10--EXPECTF--
11*** Testing hash_algos() : basic functionality ***
12array(60) {
13  [%d]=>
14  string(3) "md2"
15  [%d]=>
16  string(3) "md4"
17  [%d]=>
18  string(3) "md5"
19  [%d]=>
20  string(4) "sha1"
21  [%d]=>
22  string(6) "sha224"
23  [%d]=>
24  string(6) "sha256"
25  [%d]=>
26  string(6) "sha384"
27  [%d]=>
28  string(10) "sha512/224"
29  [%d]=>
30  string(10) "sha512/256"
31  [%d]=>
32  string(6) "sha512"
33  [%d]=>
34  string(8) "sha3-224"
35  [%d]=>
36  string(8) "sha3-256"
37  [%d]=>
38  string(8) "sha3-384"
39  [%d]=>
40  string(8) "sha3-512"
41  [%d]=>
42  string(9) "ripemd128"
43  [%d]=>
44  string(9) "ripemd160"
45  [%d]=>
46  string(9) "ripemd256"
47  [%d]=>
48  string(9) "ripemd320"
49  [%d]=>
50  string(9) "whirlpool"
51  [%d]=>
52  string(10) "tiger128,3"
53  [%d]=>
54  string(10) "tiger160,3"
55  [%d]=>
56  string(10) "tiger192,3"
57  [%d]=>
58  string(10) "tiger128,4"
59  [%d]=>
60  string(10) "tiger160,4"
61  [%d]=>
62  string(10) "tiger192,4"
63  [%d]=>
64  string(6) "snefru"
65  [%d]=>
66  string(9) "snefru256"
67  [%d]=>
68  string(4) "gost"
69  [%d]=>
70  string(11) "gost-crypto"
71  [%d]=>
72  string(7) "adler32"
73  [%d]=>
74  string(5) "crc32"
75  [%d]=>
76  string(6) "crc32b"
77  [%d]=>
78  string(6) "crc32c"
79  [%d]=>
80  string(6) "fnv132"
81  [%d]=>
82  string(7) "fnv1a32"
83  [%d]=>
84  string(6) "fnv164"
85  [%d]=>
86  string(7) "fnv1a64"
87  [%d]=>
88  string(5) "joaat"
89  [%d]=>
90  string(8) "murmur3a"
91  [%d]=>
92  string(8) "murmur3c"
93  [%d]=>
94  string(8) "murmur3f"
95  [%d]=>
96  string(5) "xxh32"
97  [%d]=>
98  string(5) "xxh64"
99  [%d]=>
100  string(4) "xxh3"
101  [%d]=>
102  string(6) "xxh128"
103  [%d]=>
104  string(10) "haval128,3"
105  [%d]=>
106  string(10) "haval160,3"
107  [%d]=>
108  string(10) "haval192,3"
109  [%d]=>
110  string(10) "haval224,3"
111  [%d]=>
112  string(10) "haval256,3"
113  [%d]=>
114  string(10) "haval128,4"
115  [%d]=>
116  string(10) "haval160,4"
117  [%d]=>
118  string(10) "haval192,4"
119  [%d]=>
120  string(10) "haval224,4"
121  [%d]=>
122  string(10) "haval256,4"
123  [%d]=>
124  string(10) "haval128,5"
125  [%d]=>
126  string(10) "haval160,5"
127  [%d]=>
128  string(10) "haval192,5"
129  [%d]=>
130  string(10) "haval224,5"
131  [%d]=>
132  string(10) "haval256,5"
133}
134