PHP 7 introduced the random_bytes function, which is required by the Defuse PHP-Encryption library. To provide backward-compatibility with versions of PHP prior to 7.0, it is recommended that the random_compat PHP library is installed. Currently, Real AES only checks to make sure the random_bytes function is available during encryption. Defuse PHP-Encryption, however, verifies that the function exists during its environment check, which also takes place during decryption. Real AES needs to load the random_compat library during decryption for versions of PHP below 7.0.

CommentFileSizeAuthor
#2 2953069-2.patch1.78 KBrlhawk

Comments

rlhawk created an issue. See original summary.

rlhawk’s picture

Status: Active » Needs review
StatusFileSize
new1.78 KB
tynor’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me.

  • rlhawk committed dbee50d on 7.x-2.x
    Issue #2953069 by rlhawk, tynor: Ensure random_bytes function is...
rlhawk’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.