[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

title

Body

[close]

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

Class ParagonIE_Sodium_Core_BLAKE2b Based on the work of Devi Mandiri in devi/salt.

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

Defines 21 functions

  new64()
  to64()
  add64()
  add364()
  xor64()
  rotr64()
  flatten64()
  load64()
  store64()
  pseudoConstructor()
  context()
  compress()
  G()
  increment_counter()
  update()
  finish()
  init()
  stringToSplFixedArray()
  SplFixedArrayToString()
  contextToString()
  stringToContext()

Functions
Functions that are not part of a class:

new64($high, $low)   X-Ref
Turn two 32-bit integers into a fixed array representing a 64-bit integer.

return: SplFixedArray
param: int $high
param: int $low

to64($num)   X-Ref
Convert an arbitrary number into an SplFixedArray of two 32-bit integers
that represents a 64-bit integer.

return: SplFixedArray
param: int $num

add64($x, $y)   X-Ref
Adds two 64-bit integers together, returning their sum as a SplFixedArray
containing two 32-bit integers (representing a 64-bit integer).

return: SplFixedArray
param: SplFixedArray $x
param: SplFixedArray $y

add364($x, $y, $z)   X-Ref

return: SplFixedArray
param: SplFixedArray $x
param: SplFixedArray $y
param: SplFixedArray $z

xor64(SplFixedArray $x, SplFixedArray $y)   X-Ref

return: SplFixedArray
param: SplFixedArray $x
param: SplFixedArray $y

rotr64($x, $c)   X-Ref

return: SplFixedArray
param: SplFixedArray $x
param: int $c

flatten64($x)   X-Ref

return: int
param: SplFixedArray $x

load64(SplFixedArray $x, $i)   X-Ref

return: SplFixedArray
param: SplFixedArray $x
param: int $i

store64(SplFixedArray $x, $i, SplFixedArray $u)   X-Ref

return: void
param: SplFixedArray $x
param: int $i
param: SplFixedArray $u

pseudoConstructor()   X-Ref
This just sets the $iv static variable.

return: void

context()   X-Ref
Returns a fresh BLAKE2 context.

return: SplFixedArray

compress(SplFixedArray $ctx, SplFixedArray $buf)   X-Ref

return: void
param: SplFixedArray $ctx
param: SplFixedArray $buf

G($r, $i, $a, $b, $c, $d, SplFixedArray $v, SplFixedArray $m)   X-Ref

return: SplFixedArray
param: int $r
param: int $i
param: int $a
param: int $b
param: int $c
param: int $d
param: SplFixedArray $v
param: SplFixedArray $m

increment_counter($ctx, $inc)   X-Ref

return: void
param: SplFixedArray $ctx
param: int $inc

update(SplFixedArray $ctx, SplFixedArray $p, $plen)   X-Ref

return: void
param: SplFixedArray $ctx
param: SplFixedArray $p
param: int $plen

finish(SplFixedArray $ctx, SplFixedArray $out)   X-Ref

return: SplFixedArray
param: SplFixedArray $ctx
param: SplFixedArray $out

init($key = null, $outlen = 64)   X-Ref

return: SplFixedArray
param: SplFixedArray|null $key
param: int $outlen

stringToSplFixedArray($str = '')   X-Ref
Convert a string into an SplFixedArray of integers

return: SplFixedArray
param: string $str

SplFixedArrayToString(SplFixedArray $a)   X-Ref
Convert an SplFixedArray of integers into a string

return: string
param: SplFixedArray $a

contextToString(SplFixedArray $ctx)   X-Ref

return: string
param: SplFixedArray $ctx

stringToContext($string)   X-Ref
Creates an SplFixedArray containing other SplFixedArray elements, from
a string (compatible with \Sodium\crypto_generichash_{init, update, final})

return: SplFixedArray
param: string $string



Generated: Fri Oct 25 08:20:01 2019 Cross-referenced by PHPXref 0.7