Doc #81384 [NEW]: Secureness of GMP random functions undocumented
From: michelbach94 at gmail dot com
Operating system: any
PHP version: 8.0.9
Package: GNU MP related
Bug Type: Documentation Problem
Bug description:Secureness of GMP random functions undocumented
Description:
------------
Usually, the documentation of PHP functions that return randomness says
whether the respective function is cryptographically secure. However,
this is not the case with the GMP randomness functions gmp_random_bits()
and gmp_random_range() (nor with the deprecated gmp_random()).
From a Google search, I found that these functions are not
cryptographically secure sources of randomness
(https://stackoverflow.com/a/56377850). This should be added to the
documentation as PHP's GMP implementation being able to handle large
numbers is very welcoming to the implementation of cryptographic
primitives.
--
Edit bug report at https://bugs.php.net/bug.php?id=81384&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81384&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81384&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81384&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81384&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81384&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81384&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81384&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81384&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81384&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81384&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81384&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81384&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81384&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81384&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81384&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81384&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81384&r=mysqlcfg
Thread (3 messages)
- michelbach94 at gmail dot com