Changeset 61533 for branches/6.9/src/wp-includes/sodium_compat/src/File.php
- Timestamp:
- 01/26/2026 10:51:10 PM (3 months ago)
- Location:
- branches/6.9
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/sodium_compat/src/File.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.9
-
branches/6.9/src/wp-includes/sodium_compat/src/File.php
r60905 r61533 787 787 ParagonIE_Sodium_Compat::$fastMult = true; 788 788 789 if (ParagonIE_Sodium_Core_Ed25519::small_order($publicKey)) { 790 throw new SodiumException('Public key has small order'); 791 } 789 792 /** @var ParagonIE_Sodium_Core_Curve25519_Ge_P3 $A */ 790 793 $A = ParagonIE_Sodium_Core_Ed25519::ge_frombytes_negate_vartime($publicKey); 794 if (!ParagonIE_Sodium_Core_Ed25519::is_on_main_subgroup($A)) { 795 throw new SodiumException('Public key is not on a member of the main subgroup'); 796 } 791 797 792 798 $hs = hash_init('sha512');
Note: See TracChangeset
for help on using the changeset viewer.