- Timestamp:
- 06/16/2021 05:28:49 PM (4 years ago)
- Location:
- branches/5.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.7
-
branches/5.7/src/wp-includes/sodium_compat/src/Core32/Ed25519.php
r48121 r51171 208 208 * @throws SodiumException 209 209 * @throws TypeError 210 * @psalm-suppress PossiblyInvalidArgument 210 211 */ 211 212 public static function sign_detached($message, $sk) … … 225 226 # crypto_hash_sha512_final(&hs, nonce); 226 227 $hs = hash_init('sha512'); 227 hash_update($hs, self::substr($az, 32, 32));228 hash_update($hs, $message);228 self::hash_update($hs, self::substr($az, 32, 32)); 229 self::hash_update($hs, $message); 229 230 $nonceHash = hash_final($hs, true); 230 231 … … 245 246 # crypto_hash_sha512_final(&hs, hram); 246 247 $hs = hash_init('sha512'); 247 hash_update($hs, self::substr($sig, 0, 32));248 hash_update($hs, self::substr($pk, 0, 32));249 hash_update($hs, $message);248 self::hash_update($hs, self::substr($sig, 0, 32)); 249 self::hash_update($hs, self::substr($pk, 0, 32)); 250 self::hash_update($hs, $message); 250 251 $hramHash = hash_final($hs, true); 251 252
Note: See TracChangeset
for help on using the changeset viewer.