Req #80036 [Opn]: Add a function to get the length of hash algorithm
Edit report at https://bugs.php.net/bug.php?id=80036&edit=1
ID: 80036
Updated by: nikic@php.net
Reported by: kayson at huida dot cn
Summary: Add a function to get the length of hash algorithm
Status: Open
Type: Feature/Change Request
Package: hash related
Operating System: Windows10
PHP Version: Next Minor Version
Block user comment: N
Private report: N
New Comment:
FWIW, it should be possible to get this via strlen(hash($algo, '', true)).
Previous Comments:
------------------------------------------------------------------------
[2020-08-31 03:14:55] kayson at huida dot cn
Description:
------------
In order to make my program more flexible, I hope to have a complete set of hash functions. For
example: hash_algo_size().
It is somewhat similar to the EVP_MD_size() function in openssl.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80036&edit=1
Thread (2 messages)