[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

(no description)

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

Defines 1 class

ParagonIE_Sodium_Core_ChaCha20:: (7 methods):
  rotate()
  quarterRound()
  encryptBytes()
  stream()
  ietfStream()
  ietfStreamXorIc()
  streamXorIc()


Class: ParagonIE_Sodium_Core_ChaCha20  - X-Ref

Class ParagonIE_Sodium_Core_ChaCha20

rotate($v, $n)   X-Ref
Bitwise left rotation

param: int $v
param: int $n
return: int

quarterRound($a, $b, $c, $d)   X-Ref
The ChaCha20 quarter round function. Works on four 32-bit integers.

param: int $a
param: int $b
param: int $c
param: int $d
return: array<int, int>

encryptBytes(ParagonIE_Sodium_Core_ChaCha20_Ctx $ctx,$message = '')   X-Ref

param: ParagonIE_Sodium_Core_ChaCha20_Ctx $ctx
param: string $message
return: string

stream($len = 64, $nonce = '', $key = '')   X-Ref

param: int $len
param: string $nonce
param: string $key
return: string

ietfStream($len, $nonce = '', $key = '')   X-Ref

param: int $len
param: string $nonce
param: string $key
return: string

ietfStreamXorIc($message, $nonce = '', $key = '', $ic = '')   X-Ref

param: string $message
param: string $nonce
param: string $key
param: string $ic
return: string

streamXorIc($message, $nonce = '', $key = '', $ic = '')   X-Ref

param: string $message
param: string $nonce
param: string $key
param: string $ic
return: string



Generated: Sun Dec 15 01:00:03 2019 Cross-referenced by PHPXref 0.7.1