[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

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

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

Defines 20 functions

  new64()
  to64()
  add64()
  add364()
  xor64()
  rotr64()
  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: ParagonIE_Sodium_Core32_Int64
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: ParagonIE_Sodium_Core32_Int64
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: ParagonIE_Sodium_Core32_Int64
param: ParagonIE_Sodium_Core32_Int64 $x
param: ParagonIE_Sodium_Core32_Int64 $y

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

return: ParagonIE_Sodium_Core32_Int64
param: ParagonIE_Sodium_Core32_Int64 $x
param: ParagonIE_Sodium_Core32_Int64 $y
param: ParagonIE_Sodium_Core32_Int64 $z

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

return: ParagonIE_Sodium_Core32_Int64
param: ParagonIE_Sodium_Core32_Int64 $x
param: ParagonIE_Sodium_Core32_Int64 $y

rotr64(ParagonIE_Sodium_Core32_Int64 $x, $c)   X-Ref

return: ParagonIE_Sodium_Core32_Int64
param: ParagonIE_Sodium_Core32_Int64 $x
param: int $c

load64($x, $i)   X-Ref

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

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

return: void
param: SplFixedArray $x
param: int $i
param: ParagonIE_Sodium_Core32_Int64 $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,$salt = null,$personal = null)   X-Ref

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

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: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1