Make WordPress Core


Ignore:
Timestamp:
05/25/2021 01:54:12 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Upgrade/Install: Update sodium_compat to v1.16.1.

The latest version of sodium_compat includes polyfills for new features slated to land in PHP 8.1:
https://paragonie.com/blog/2021/05/ristretto255-for-php-community

It also fixes a race condition with the autoloader that caused an "undefined constant" error on some systems:
https://github.com/paragonie/sodium_compat/issues/122

A full list of changes in this update can be found on GitHub:
https://github.com/paragonie/sodium_compat/compare/v1.14.0...v1.16.1

Follow-up to [49741].

Props paragoninitiativeenterprises, oxyrealm.
Fixes #53274.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/sodium_compat/lib/php72compat.php

    r49056 r51002  
    9595    'CRYPTO_STREAM_KEYBYTES',
    9696    'CRYPTO_STREAM_NONCEBYTES',
     97    'CRYPTO_STREAM_XCHACHA20_KEYBYTES',
     98    'CRYPTO_STREAM_XCHACHA20_NONCEBYTES',
    9799    'LIBRARY_MAJOR_VERSION',
    98100    'LIBRARY_MINOR_VERSION',
     
    12171219    }
    12181220}
     1221require_once dirname(__FILE__) . '/stream-xchacha20.php';
    12191222if (!is_callable('sodium_hex2bin')) {
    12201223    /**
Note: See TracChangeset for help on using the changeset viewer.