[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

(no description)

File Size: 305 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: Mon Sep 21 01:00:03 2020 Cross-referenced by PHPXref 0.7.1