[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/sodium_compat/src/Core/ -> SipHash.php (summary)

(no description)

File Size: 306 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ParagonIE_Sodium_Core_SipHash:: (4 methods):
  sipRound()
  add()
  rotl_64()
  sipHash24()


Class: ParagonIE_Sodium_Core_SipHash  - X-Ref

Class ParagonIE_SodiumCompat_Core_SipHash

Only uses 32-bit arithmetic, while the original SipHash used 64-bit integers
sipRound(array $v)   X-Ref

return: int[]
param: int[] $v

add(array $a, array $b)   X-Ref
Add two 32 bit integers representing a 64-bit integer.

return: array<int, mixed>
param: int[] $a
param: int[] $b

rotl_64($int0, $int1, $c)   X-Ref

return: array<int, mixed>
param: int $int0
param: int $int1
param: int $c

sipHash24($in, $key)   X-Ref
Implements Siphash-2-4 using only 32-bit numbers.

When we split an int into two, the higher bits go to the lower index.
e.g. 0xDEADBEEFAB10C92D becomes [
0 => 0xDEADBEEF,
1 => 0xAB10C92D
].

return: string
param: string $in
param: string $key



Generated : Tue Dec 17 08:20:01 2024 Cross-referenced by PHPXref