Commit graph

95 commits

Author SHA1 Message Date
Juliette
03bb26ae70
PHP 8.1 | Update hash_algos() documentation
> **MurmurHash3**
>
> Added support for MurmurHash3 with streaming support. The following variants are implemented:
> * murmur3a, 32-bit hash
> * murmur3c, 128-bit hash for x86
> * murmur3f, 128-bit hash for x64
>
> **xxHash**
>
> Added support for xxHash. The following variants are implemented:
> * xxh32, 32-bit hash
> * xxh64, 64-bit hash
> * xxh3, 64-bit hash
> * xxh128, 128-bit hash

Refs:
* https://www.php.net/manual/en/migration81.new-features.php#migration81.new-features.hash.murmurhash3
* https://github.com/php/php-src/pull/6059
* 72e91e9fc8
* https://www.php.net/manual/en/migration81.new-features.php#migration81.new-features.hash.xxhash
* https://github.com/php/php-src/pull/6524
* 23590f7c53

Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>

Closes GH-1451.
2022-03-11 14:20:23 +01:00
Christoph M. Becker
1adf24615e
Update name of 3rd param of hash_hmac_file()
See <https://github.com/php/php-src/issues/7826>.
2021-12-26 13:07:57 +01:00
Yoshinari Takaoka
4b4c8b4740
fixed function name in changelog 2021-12-18 10:23:36 +09:00
Máté Kocsis
ac6b36357e
Update ext/hash documentation
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-1215.
2021-12-17 15:15:19 +01:00
Fabien Villepinte
537e1dfad9
Add missing final modifier
Closes GH-1152.
2021-11-29 13:47:04 +01:00
Christoph M. Becker
8ad9c12d9b
Fix #81473: hash_pbkdf2 truncate in hex
We extend the example to show the behavior of raw binary results.
2021-09-27 14:33:58 +02:00
Máté Kocsis
7f99d5e488
Remove some unnecessary methodsynopsis role attributes (#913) 2021-09-14 14:37:29 +02:00
Yoshinari Takaoka
abb0c22310
Deleted old PHP 5.3 -> 5.4 tiger hash compatibility example. (#926) 2021-09-08 00:41:10 +01:00
George Peter Banyard
68c2c87150 Fix extension doc membership 2021-06-13 23:23:33 +01:00
George Peter Banyard
4283ca8aa3 Fix section order issues in Hash extension
Part of #658
2021-06-06 18:03:03 +01:00
Yoshinari Takaoka
2a3060d1bb Added PHP 8 into versions.xml for hash based on stubs.
Closes GH-377.
2021-01-24 12:22:38 +01:00
Christoph Michael Becker
e41806c30b Revert revision(s) 351724 from phpdoc/en/trunk:
Document false and null return types

Cf. <https://news-web.php.net/php.doc.cvs/17645>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351730 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 18:05:44 +00:00
Jakub Vrana
c80da7c04a Document false and null return types
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351724 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 12:54:59 +00:00
Christoph Michael Becker
dabaf662b1 Generate hash methodsynopses based on stubs
Patch contributed by Máté Kocsis <kocsismate@woohoolabs.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351417 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-17 22:46:27 +00:00
Christoph Michael Becker
86e6094e86 Use canonical type names
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351133 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 15:39:04 +00:00
Andrey Gromov
01a7e4684e Fixes from volunteers
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350953 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-20 08:54:50 +00:00
Christoph Michael Becker
3e15d2894f Remove more changelog entries, mostly from PHP 5.4 era
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350656 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 14:15:17 +00:00
Christoph Michael Becker
7f569e1f17 Remove more changelog entries, mostly from PHP 5.3 era
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350655 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 14:08:59 +00:00
Christoph Michael Becker
d666d3b377 Updated hash_algos doc for PHP 7.4
Patch contributed by Graham Campbell.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350291 c90b9560-bf6c-de11-be94-00142212c4b1
2020-08-08 12:55:04 +00:00
Christoph Michael Becker
ff3d7bb38b Link to hash_algos() from hash() and hash_file()
Patch provided by Ryan McCue <me@ryanmccue.info>.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349408 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-13 18:01:28 +00:00
Christoph Michael Becker
72b399e30b ext/hash is always enabled as of PHP 7.4.0
Cf. <https://wiki.php.net/rfc/permanent_hash_ext>.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346033 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-22 19:17:08 +00:00
Peter Cowburn
0dad2268d5 add missing svn properties, svn:eol-style and svn:keywords
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344522 c90b9560-bf6c-de11-be94-00142212c4b1
2018-03-15 22:01:56 +00:00
Christoph Michael Becker
72ff27ac10 Document new hash algos as of PHP 7.1.0
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344357 c90b9560-bf6c-de11-be94-00142212c4b1
2018-02-24 18:14:35 +00:00
Christoph Michael Becker
173b1454c1 Clarify return value for non-cryptographic algos
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344350 c90b9560-bf6c-de11-be94-00142212c4b1
2018-02-24 15:54:44 +00:00
Jakub Vrana
a27cf494d2 Add new classes to versions.xml
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344042 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-29 13:43:22 +00:00
Jakub Vrana
3e9734391f Add new functions to versions.xml
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344041 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-29 13:39:15 +00:00
Jakub Vrana
a151e4db99 Add HashContext
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344012 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-28 16:47:31 +00:00
Jakub Vrana
f3e46c7b29 Fix #75739: Hash uses objects since PHP 7.2.0
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344006 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-28 13:32:11 +00:00
Jakub Vrana
b8758b0605 Use entities in initializer
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343899 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-25 19:11:34 +00:00
Christoph Michael Becker
38fb328862 Fix bug #75266: hash_algos doesnt work properly for listing HMAC algos
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343152 c90b9560-bf6c-de11-be94-00142212c4b1
2017-09-27 15:13:33 +00:00
Mark Jones
dfb5e6fa03 openssl_pbkf2 commit, removing bad ciphers from get cipher methods example
https://bugs.php.net/bug.php?id=71817


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343015 c90b9560-bf6c-de11-be94-00142212c4b1
2017-09-06 20:12:11 +00:00
Andrey Gromov
1fed7cc0df typo
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342645 c90b9560-bf6c-de11-be94-00142212c4b1
2017-07-04 17:10:03 +00:00
Andrey Gromov
7315ad1258 typo fix
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342644 c90b9560-bf6c-de11-be94-00142212c4b1
2017-07-04 16:53:22 +00:00
Andrey Andreev
a028258b51 Fix docs bug #66366: Tiger hash BC not documented in migration54
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342107 c90b9560-bf6c-de11-be94-00142212c4b1
2017-03-13 10:19:17 +00:00
Andrey Andreev
722c4a62ca Add changelogs for non-crypto hashes being blacklisted for HMACs as of PHP 7.2.0
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342106 c90b9560-bf6c-de11-be94-00142212c4b1
2017-03-13 09:46:54 +00:00
Andrey Andreev
e099327c0b Add hash_hkdf() documentation
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341989 c90b9560-bf6c-de11-be94-00142212c4b1
2017-02-28 11:20:58 +00:00
Adam Harvey
41d8e7ffe4 Update version information to include PHP 7.
This was mostly done programmatically, and is likely wrong for a small number
of functions. We may have to wait for bug reports, unless someone wants to
review this by hand. Basic efforts were made to avoid adding "PHP 7" to
functions that were removed in PHP 5.x (x > 0) and PHP 7, but there are
undoubtedly still issues.

In case we're still using Docbook for PHP 8, I've uploaded the script that I
wrote to do this to GitHub at
https://github.com/LawnGnome/php-doc-version-migrator.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338406 c90b9560-bf6c-de11-be94-00142212c4b1
2016-01-04 21:40:07 +00:00
Christoph Michael Becker
22eec6c860 added example regarding changed byte-order of tiger hashes as of PHP 5.4 (fixes #61307)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336947 c90b9560-bf6c-de11-be94-00142212c4b1
2015-06-14 15:00:38 +00:00
Pieter Hordijk
8547098010 Changed i.e. -> e.g. as per https://bugs.php.net/bug.php?id=69507
http://www.grammarly.com/blog/2014/know-your-latin-i-e-vs-e-g/

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336629 c90b9560-bf6c-de11-be94-00142212c4b1
2015-04-23 08:29:06 +00:00
Matt Li
70f06fd96c Clarified as per bug #46557 and note #116544
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335782 c90b9560-bf6c-de11-be94-00142212c4b1
2015-01-21 05:46:38 +00:00
Mike Griffiths
cb94cca3e4 Added word 'immediately' to add clarity, address bug #68328
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335150 c90b9560-bf6c-de11-be94-00142212c4b1
2014-10-30 10:04:51 +00:00
Simion Onea
14af302c9c Making the XML definition consistent across the entire project.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334762 c90b9560-bf6c-de11-be94-00142212c4b1
2014-09-05 07:44:07 +00:00
Tjerk Anne Meesters
92d06574ba Added length information leak when parameters of hash_equals() aren't of equal lengths.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334682 c90b9560-bf6c-de11-be94-00142212c4b1
2014-09-01 00:08:06 +00:00
Adam Harvey
b9524cc57c Fix last commit. Sorry!
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334632 c90b9560-bf6c-de11-be94-00142212c4b1
2014-08-28 04:26:20 +00:00
Adam Harvey
29b7b9e17d Note the addition of gost-crypto on the hash_algos() page, and update the list.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334630 c90b9560-bf6c-de11-be94-00142212c4b1
2014-08-28 03:53:50 +00:00
Peter Cowburn
378c046c40 initial hash_equals() page
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334601 c90b9560-bf6c-de11-be94-00142212c4b1
2014-08-25 20:17:58 +00:00
Philip Olson
d06d3727d5 Mentions a case that false is returned. Patch by Alok Menghrajani.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332977 c90b9560-bf6c-de11-be94-00142212c4b1
2014-03-12 23:25:43 +00:00
Nikita Popov
ac78bae531 Improve hash_pbkdf2 docs
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332089 c90b9560-bf6c-de11-be94-00142212c4b1
2013-11-09 11:52:44 +00:00
Joe Watkins
898667f44c #64933 clarity in prototype
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331807 c90b9560-bf6c-de11-be94-00142212c4b1
2013-10-13 17:43:44 +00:00
Pieter Hordijk
3e6a2269a8 Added text about retrieving supported algos
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331014 c90b9560-bf6c-de11-be94-00142212c4b1
2013-07-24 11:24:53 +00:00