Make WordPress Core


Ignore:
Timestamp:
03/24/2022 03:18:31 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Upgrade/Install: Update sodium_compat to v1.17.1.

The latest version of sodium_compat includes further improvements for PHP 8.1 compatibility.

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

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

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

Props jrf, paragoninitiativeenterprises.
Fixes #55453.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/sodium_compat/src/Core32/XChaCha20.php

    r46586 r52988  
    6262        );
    6363    }
     64
     65    /**
     66     * @internal You should not use this directly from another application
     67     *
     68     * @param string $message
     69     * @param string $nonce
     70     * @param string $key
     71     * @param string $ic
     72     * @return string
     73     * @throws SodiumException
     74     * @throws TypeError
     75     */
     76    public static function ietfStreamXorIc($message, $nonce = '', $key = '', $ic = '')
     77    {
     78        return self::encryptBytes(
     79            new ParagonIE_Sodium_Core32_ChaCha20_IetfCtx(
     80                self::hChaCha20(self::substr($nonce, 0, 16), $key),
     81                "\x00\x00\x00\x00" . self::substr($nonce, 16, 8),
     82                $ic
     83            ),
     84            $message
     85        );
     86    }
    6487}
Note: See TracChangeset for help on using the changeset viewer.