Make WordPress Core


Ignore:
Timestamp:
12/09/2019 04:40:11 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Upgrade/Install: Update sodium_compat to v1.12.1.

This includes a speedup for signature verification on most platforms and bugfixes for 32-bit platforms.

Props paragoninitiativeenterprises, lukaswaudentio.
Fixes #48371.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/sodium_compat/src/Core/Ed25519.php

    r46586 r46858  
    277277            throw new SodiumException('Signature is too short');
    278278        }
    279         if (self::check_S_lt_L(self::substr($sig, 32, 32))) {
     279        if ((self::chrToInt($sig[63]) & 240) && self::check_S_lt_L(self::substr($sig, 32, 32))) {
    280280            throw new SodiumException('S < L - Invalid signature');
    281281        }
Note: See TracChangeset for help on using the changeset viewer.