Doc #81384 [NEW]: Secureness of GMP random functions undocumented

From: Date: Thu, 26 Aug 2021 09:12:50 +0000
Subject: Doc #81384 [NEW]: Secureness of GMP random functions undocumented
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-19106@lists.php.net to get a copy of this message
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)

« previous php.doc.bugs (#19106) next »