Changeset 51002 for trunk/src/wp-includes/sodium_compat/src/Core/Util.php
- Timestamp:
- 05/25/2021 01:54:12 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/sodium_compat/src/Core/Util.php
r49741 r51002 288 288 289 289 /** 290 * Catch hash_update() failures and throw instead of silently proceding 291 * 292 * @param HashContext|resource &$hs 293 * @param string $data 294 * @return void 295 * @throws SodiumException 296 * @psalm-suppress PossiblyInvalidArgument 297 */ 298 protected static function hash_update(&$hs, $data) 299 { 300 if (!hash_update($hs, $data)) { 301 throw new SodiumException('hash_update() failed'); 302 } 303 } 304 305 /** 290 306 * Convert a hexadecimal string into a binary string without cache-timing 291 307 * leaks
Note: See TracChangeset
for help on using the changeset viewer.