[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

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

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

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

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

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

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

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

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

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

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

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

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

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

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



Generated : Thu Oct 22 08:20:02 2020 Cross-referenced by PHPXref