Make WordPress Core


Ignore:
Timestamp:
09/14/2022 12:11:11 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Upgrade/Install: Update sodium_compat to v1.18.0.

The latest version of sodium_compat includes some improvements, as well as a new feature which will also be included in PHP 8.2.

Release notes:
https://github.com/paragonie/sodium_compat/releases/tag/v1.18.0

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

Follow-up to [49741], [51002], [51591], [52988].

Props jrf, paragoninitiativeenterprises.
Fixes #56564.

File:
1 edited

Legend:

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

    r51002 r54150  
    4242    }
    4343}
     44if (!is_callable('sodium_crypto_stream_xchacha20_xor_ic')) {
     45    /**
     46     * @see ParagonIE_Sodium_Compat::crypto_stream_xchacha20_xor_ic()
     47     * @param string $message
     48     * @param string $nonce
     49     * @param int $counter
     50     * @param string $key
     51     * @return string
     52     * @throws SodiumException
     53     * @throws TypeError
     54     */
     55    function sodium_crypto_stream_xchacha20_xor_ic($message, $nonce, $counter, $key)
     56    {
     57        return ParagonIE_Sodium_Compat::crypto_stream_xchacha20_xor_ic($message, $nonce, $counter, $key, true);
     58    }
     59}
Note: See TracChangeset for help on using the changeset viewer.