Req #80036 [Opn]: Add a function to get the length of hash algorithm

From: Date: Mon, 31 Aug 2020 10:23:45 +0000
Subject: Req #80036 [Opn]: Add a function to get the length of hash algorithm
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228817@lists.php.net to get a copy of this message
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)

« previous php.bugs (#228817) next »