Req #65891 [Com]: PHP is missing a sha3() function

From: Date: Sat, 12 Jul 2014 19:57:30 +0000
Subject: Req #65891 [Com]: PHP is missing a sha3() function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186580@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65891&edit=1 ID: 65891 Comment by: ryacko at gmail dot com Reported by: scott dot baker at gmail dot com Summary: PHP is missing a sha3() function Status: Open Type: Feature/Change Request Package: hash related Operating System: Linux PHP Version: 5.5.5RC1 Block user comment: N Private report: N New Comment: Except that SHA-3 is a hash function with a variable length and variable security margin. One could add the four SHA3 standards, but that wouldn't make available all the possible ways to use SHA3. It could be used as stream cipher for instance. http://keccak.noekeon.org/tune.html Previous Comments: ------------------------------------------------------------------------ [2013-10-15 17:18:29] nikic@php.net I agree with Pierre. This is a hash function, so it belongs in the hash extension. There is no point in adding an individual function for every single hash type. ------------------------------------------------------------------------ [2013-10-15 16:50:48] scott dot baker at gmail dot com Perhaps we could have support for both hash() and sha3() methods? I really like the sha3() method that strawbrary wrote. It's very logical and easy to remember. hash() requires me to remember the order of parameters, and the hash name. sha3() seems more direct. ------------------------------------------------------------------------ [2013-10-14 06:04:09] pajoye@php.net I would rather add it to the hash extension, more consistent. ------------------------------------------------------------------------ [2013-10-13 22:00:27] scott dot baker at gmail dot com There has already been some work on this, it probably just needs to be merged in to core PHP? https://github.com/strawbrary/php-sha3 ------------------------------------------------------------------------ [2013-10-13 21:58:40] scott dot baker at gmail dot com Description: ------------ PHP has md5() and sha1() functions, but there is no sha3() function. Now that keccak has been officially declared the winner, PHP needs a sha3() function to match. Optionally support could be added to hash() for keccak, but I think a standalone sha3() would be preferable. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=65891&edit=1

« previous php.bugs (#186580) next »