[ Index ]

PHP Cross Reference of WordPress

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

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

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

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

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

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

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
].

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



Generated: Wed Nov 6 01:00:02 2024 Cross-referenced by PHPXref 0.7.1