Make WordPress Core


Ignore:
Timestamp:
09/26/2022 01:58:53 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Upgrade/Install: Update sodium_compat to v1.19.0.

The latest version of sodium_compat includes improved compatibility with the PHP 8.0 named parameters functionality.

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

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

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

Props jrf, paragoninitiativeenterprises.
Fixes #56653.

File:
1 edited

Legend:

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

    r51002 r54310  
    5757     * @see ParagonIE_Sodium_Compat::ristretto255_from_hash()
    5858     *
    59      * @param string $r
    60      * @return string
    61      * @throws SodiumException
    62      */
    63     function sodium_crypto_core_ristretto255_from_hash($r)
    64     {
    65         return ParagonIE_Sodium_Compat::ristretto255_from_hash($r, true);
     59     * @param string $s
     60     * @return string
     61     * @throws SodiumException
     62     */
     63    function sodium_crypto_core_ristretto255_from_hash($s)
     64    {
     65        return ParagonIE_Sodium_Compat::ristretto255_from_hash($s, true);
    6666    }
    6767}
     
    7070     * @see ParagonIE_Sodium_Compat::ristretto255_is_valid_point()
    7171     *
    72      * @param string $p
     72     * @param string $s
    7373     * @return bool
    7474     * @throws SodiumException
    7575     */
    76     function sodium_crypto_core_ristretto255_is_valid_point($p)
    77     {
    78         return ParagonIE_Sodium_Compat::ristretto255_is_valid_point($p, true);
     76    function sodium_crypto_core_ristretto255_is_valid_point($s)
     77    {
     78        return ParagonIE_Sodium_Compat::ristretto255_is_valid_point($s, true);
    7979    }
    8080}
     
    9595     * @see ParagonIE_Sodium_Compat::ristretto255_scalar_add()
    9696     *
    97      * @param string $p
    98      * @param string $q
    99      * @return string
    100      * @throws SodiumException
    101      */
    102     function sodium_crypto_core_ristretto255_scalar_add($p, $q)
    103     {
    104         return ParagonIE_Sodium_Compat::ristretto255_scalar_add($p, $q, true);
     97     * @param string $x
     98     * @param string $y
     99     * @return string
     100     * @throws SodiumException
     101     */
     102    function sodium_crypto_core_ristretto255_scalar_add($x, $y)
     103    {
     104        return ParagonIE_Sodium_Compat::ristretto255_scalar_add($x, $y, true);
    105105    }
    106106}
     
    109109     * @see ParagonIE_Sodium_Compat::ristretto255_scalar_complement()
    110110     *
    111      * @param string $p
    112      * @return string
    113      * @throws SodiumException
    114      */
    115     function sodium_crypto_core_ristretto255_scalar_complement($p)
    116     {
    117         return ParagonIE_Sodium_Compat::ristretto255_scalar_complement($p, true);
     111     * @param string $s
     112     * @return string
     113     * @throws SodiumException
     114     */
     115    function sodium_crypto_core_ristretto255_scalar_complement($s)
     116    {
     117        return ParagonIE_Sodium_Compat::ristretto255_scalar_complement($s, true);
    118118    }
    119119}
     
    135135     * @see ParagonIE_Sodium_Compat::ristretto255_scalar_mul()
    136136     *
    137      * @param string $p
    138      * @param string $q
    139      * @return string
    140      * @throws SodiumException
    141      */
    142     function sodium_crypto_core_ristretto255_scalar_mul($p, $q)
    143     {
    144         return ParagonIE_Sodium_Compat::ristretto255_scalar_mul($p, $q, true);
     137     * @param string $x
     138     * @param string $y
     139     * @return string
     140     * @throws SodiumException
     141     */
     142    function sodium_crypto_core_ristretto255_scalar_mul($x, $y)
     143    {
     144        return ParagonIE_Sodium_Compat::ristretto255_scalar_mul($x, $y, true);
    145145    }
    146146}
     
    149149     * @see ParagonIE_Sodium_Compat::ristretto255_scalar_negate()
    150150     *
    151      * @param string $p
    152      * @return string
    153      * @throws SodiumException
    154      */
    155     function sodium_crypto_core_ristretto255_scalar_negate($p)
    156     {
    157         return ParagonIE_Sodium_Compat::ristretto255_scalar_negate($p, true);
     151     * @param string $s
     152     * @return string
     153     * @throws SodiumException
     154     */
     155    function sodium_crypto_core_ristretto255_scalar_negate($s)
     156    {
     157        return ParagonIE_Sodium_Compat::ristretto255_scalar_negate($s, true);
    158158    }
    159159}
     
    174174     * @see ParagonIE_Sodium_Compat::ristretto255_scalar_reduce()
    175175     *
    176      * @param string $p
    177      * @return string
    178      * @throws SodiumException
    179      */
    180     function sodium_crypto_core_ristretto255_scalar_reduce($p)
    181     {
    182         return ParagonIE_Sodium_Compat::ristretto255_scalar_reduce($p, true);
     176     * @param string $s
     177     * @return string
     178     * @throws SodiumException
     179     */
     180    function sodium_crypto_core_ristretto255_scalar_reduce($s)
     181    {
     182        return ParagonIE_Sodium_Compat::ristretto255_scalar_reduce($s, true);
    183183    }
    184184}
     
    187187     * @see ParagonIE_Sodium_Compat::ristretto255_scalar_sub()
    188188     *
    189      * @param string $p
    190      * @param string $q
    191      * @return string
    192      * @throws SodiumException
    193      */
    194     function sodium_crypto_core_ristretto255_scalar_sub($p, $q)
    195     {
    196         return ParagonIE_Sodium_Compat::ristretto255_scalar_sub($p, $q, true);
     189     * @param string $x
     190     * @param string $y
     191     * @return string
     192     * @throws SodiumException
     193     */
     194    function sodium_crypto_core_ristretto255_scalar_sub($x, $y)
     195    {
     196        return ParagonIE_Sodium_Compat::ristretto255_scalar_sub($x, $y, true);
    197197    }
    198198}
Note: See TracChangeset for help on using the changeset viewer.