Changeset 61419 for trunk/src/wp-includes/sodium_compat/src/File.php
- Timestamp:
- 12/30/2025 10:53:23 PM (11 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/sodium_compat/src/File.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/sodium_compat/src/File.php
r60905 r61419 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.