Skip to content

Version 0.5.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@paragonie-scott paragonie-scott released this 18 Feb 02:32
· 598 commits to master since this release
v0.5.0
  • Security fix: Our hash_equals() polyfill would return a false positive if the first byte matched. This was originally identified by a strange unit test failure, analyzed by @defuse, then a proposed future-proofing was suggested by @solardiz. This would not have affected PHP 5.6 or newer.
  • ParagonIE_Sodium_File is now feature-complete for the operations we wish to expose (i.e. encrypting, signing, and verifying files).
    • Unlike Halite, it does not attempt to mitigate TOCTOU vulnerabilities. If TOCTOU is relevant to your threat model, you are encouraged to load the entire files into memory and use ParagonIE_Sodium_Compat instead of ParagonIE_Sodium_File.
  • More multiplication operations have been replaced with our constant time loop. See cryptographically secure PHP development for more information.