WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/17/2019 05:19:21 PM (16 months ago)
Author:
desrosj
Message:

Upgrade/Install: Update sodium_compat to v1.10.0.

This adds a runtime_speed_test() method for estimating if the 32-bit implementation is fast enough for expensive computations.

Merges [45344] to the 5.2 branch.

Props paragoninitiativeenterprises, tellyworth.
See #47186.

Location:
branches/5.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.2

  • branches/5.2/src/wp-includes/sodium_compat/src/Crypto.php

    r44953 r45355  
    820820    public static function keyExchange($my_sk, $their_pk, $client_pk, $server_pk)
    821821    {
    822         return self::generichash(
    823             self::scalarmult($my_sk, $their_pk) .
     822        return ParagonIE_Sodium_Compat::crypto_generichash(
     823            ParagonIE_Sodium_Compat::crypto_scalarmult($my_sk, $their_pk) .
    824824            $client_pk .
    825825            $server_pk
Note: See TracChangeset for help on using the changeset viewer.