Grøstl hash function for PHP - PHP extension
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
tests Revision 0.1 Mar 4, 2011
Groestl-opt.c Revision 0.1 Mar 4, 2011
Groestl-opt.h Revision 0.1 Mar 4, 2011
README Updated README Mar 4, 2011
brg_endian.h Revision 0.1 Mar 4, 2011
config.m4 Revision 0.1 Mar 4, 2011
php_groestl.c Revision 0.1 Mar 4, 2011
php_groestl.h Revision 0.1 Mar 4, 2011
tables.h Revision 0.1 Mar 4, 2011


Grøstl hash function for PHP 
Version 0.1

Grøstl is a new cryptographic hash function designed in response to the
Cryptographic Hash Algorithm Competition announced by NIST. Grøstl is one of
the five finalists in the competition and it is a tweaked version of its
predecessor called Grøstl-0, the original submission to the competition. 

The author of this extension was in no way involved in the development of the
Grøstl hash function. The hash source code was taken directly from NIST
submission package with a few minor variable name changes so that it would play
nice with PHP.

See the CREDITS section for more details.


You'll need to have the PHP 5 development package and a working build
environment to compile this module.

To compile and install:

   ./configure --enable-groestl
   sudo make install

Then add the following to your php.ini file:


Function Description:
   string groestl_hash(string $string [, int bit_length = 512])


   // Build a base-64 encoded hash
   $hash = base64_encode(groestl_hash('Hello, world.'));


The Grøstl team: Søren Steffen Thomsen, Martin Schläffer, Christian Rechberger,
Florian Mendel, Krystian Matusiewicz, Lars R. Knudsen, Praveen Gauravaram

PHP extension written by Bryan C. Geraghty <>

For more details, see:


The SHA-3 Submission Requirements states:

   "Each submitted algorithm must be available worldwide on a royalty free
   basis during the period of the hash function competition."

If the algorithm is selected as the winner of the competition, the following

   "an irrevocable nonexclusive royalty-free license to practice the referenced
   algorithm, reference implementation or the optimized implementations"

If the algorithm is not selected as the winner, the license will be determined
by the team.