[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

title

Body

[close]

/wp-includes/sodium_compat/lib/ -> php72compat.php (summary)

This file will monkey patch the pure-PHP implementation in place of the PECL functions and constants, but only if they do not already exist. Thus, the functions or constants just proxy to the appropriate ParagonIE_Sodium_Compat method or class constant, respectively.

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

Defines 70 functions

  sodium_bin2hex()
  sodium_compare()
  sodium_crypto_aead_aes256gcm_decrypt()
  sodium_crypto_aead_aes256gcm_encrypt()
  sodium_crypto_aead_aes256gcm_is_available()
  sodium_crypto_aead_chacha20poly1305_decrypt()
  sodium_crypto_aead_chacha20poly1305_encrypt()
  sodium_crypto_aead_chacha20poly1305_keygen()
  sodium_crypto_aead_chacha20poly1305_ietf_decrypt()
  sodium_crypto_aead_chacha20poly1305_ietf_encrypt()
  sodium_crypto_aead_chacha20poly1305_ietf_keygen()
  sodium_crypto_aead_xchacha20poly1305_ietf_decrypt()
  sodium_crypto_aead_xchacha20poly1305_ietf_encrypt()
  sodium_crypto_aead_xchacha20poly1305_ietf_keygen()
  sodium_crypto_auth()
  sodium_crypto_auth_keygen()
  sodium_crypto_auth_verify()
  sodium_crypto_box()
  sodium_crypto_box_keypair()
  sodium_crypto_box_keypair_from_secretkey_and_publickey()
  sodium_crypto_box_open()
  sodium_crypto_box_publickey()
  sodium_crypto_box_publickey_from_secretkey()
  sodium_crypto_box_seal()
  sodium_crypto_box_seal_open()
  sodium_crypto_box_secretkey()
  sodium_crypto_box_seed_keypair()
  sodium_crypto_generichash()
  sodium_crypto_generichash_final()
  sodium_crypto_generichash_init()
  sodium_crypto_generichash_keygen()
  sodium_crypto_generichash_update()
  sodium_crypto_kx()
  sodium_crypto_pwhash()
  sodium_crypto_pwhash_str()
  sodium_crypto_pwhash_str_verify()
  sodium_crypto_pwhash_scryptsalsa208sha256()
  sodium_crypto_pwhash_scryptsalsa208sha256_str()
  sodium_crypto_pwhash_scryptsalsa208sha256_str_verify()
  sodium_crypto_scalarmult()
  sodium_crypto_scalarmult_base()
  sodium_crypto_secretbox()
  sodium_crypto_secretbox_keygen()
  sodium_crypto_secretbox_open()
  sodium_crypto_shorthash()
  sodium_crypto_shorthash_keygen()
  sodium_crypto_sign()
  sodium_crypto_sign_detached()
  sodium_crypto_sign_keypair()
  sodium_crypto_sign_open()
  sodium_crypto_sign_publickey()
  sodium_crypto_sign_publickey_from_secretkey()
  sodium_crypto_sign_secretkey()
  sodium_crypto_sign_seed_keypair()
  sodium_crypto_sign_verify_detached()
  sodium_crypto_sign_ed25519_pk_to_curve25519()
  sodium_crypto_sign_ed25519_sk_to_curve25519()
  sodium_crypto_stream()
  sodium_crypto_stream_keygen()
  sodium_crypto_stream_xor()
  sodium_hex2bin()
  sodium_increment()
  sodium_library_version_major()
  sodium_library_version_minor()
  sodium_version_string()
  sodium_memcmp()
  sodium_memzero()
  sodium_randombytes_buf()
  sodium_randombytes_uniform()
  sodium_randombytes_random16()

Functions
Functions that are not part of a class:

sodium_bin2hex($string)   X-Ref

param: string $string
return: string

sodium_compare($a, $b)   X-Ref

param: string $a
param: string $b
return: int

sodium_crypto_aead_aes256gcm_decrypt($message, $assocData, $nonce, $key)   X-Ref

param: string $message
param: string $assocData
param: string $nonce
param: string $key
return: string|bool

sodium_crypto_aead_aes256gcm_encrypt($message, $assocData, $nonce, $key)   X-Ref

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

sodium_crypto_aead_aes256gcm_is_available()   X-Ref

return: bool

sodium_crypto_aead_chacha20poly1305_decrypt($message, $assocData, $nonce, $key)   X-Ref

param: string $message
param: string $assocData
param: string $nonce
param: string $key
return: string|bool

sodium_crypto_aead_chacha20poly1305_encrypt($message, $assocData, $nonce, $key)   X-Ref

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

sodium_crypto_aead_chacha20poly1305_keygen()   X-Ref

return: string

sodium_crypto_aead_chacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key)   X-Ref

param: string $message
param: string $assocData
param: string $nonce
param: string $key
return: string|bool

sodium_crypto_aead_chacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key)   X-Ref

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

sodium_crypto_aead_chacha20poly1305_ietf_keygen()   X-Ref

return: string

sodium_crypto_aead_xchacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key)   X-Ref

param: string $message
param: string $assocData
param: string $nonce
param: string $key
return: string|bool

sodium_crypto_aead_xchacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key)   X-Ref

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

sodium_crypto_aead_xchacha20poly1305_ietf_keygen()   X-Ref

return: string

sodium_crypto_auth($message, $key)   X-Ref

param: string $message
param: string $key
return: string

sodium_crypto_auth_keygen()   X-Ref

return: string

sodium_crypto_auth_verify($mac, $message, $key)   X-Ref

param: string $mac
param: string $message
param: string $key
return: bool

sodium_crypto_box($message, $nonce, $kp)   X-Ref

param: string $message
param: string $nonce
param: string $kp
return: string

sodium_crypto_box_keypair()   X-Ref

return: string

sodium_crypto_box_keypair_from_secretkey_and_publickey($sk, $pk)   X-Ref

param: string $sk
param: string $pk
return: string

sodium_crypto_box_open($message, $nonce, $kp)   X-Ref

param: string $message
param: string $nonce
param: string $kp
return: string|bool

sodium_crypto_box_publickey($keypair)   X-Ref

param: string $keypair
return: string

sodium_crypto_box_publickey_from_secretkey($sk)   X-Ref

param: string $sk
return: string

sodium_crypto_box_seal($message, $publicKey)   X-Ref

param: string $message
param: string $publicKey
return: string

sodium_crypto_box_seal_open($message, $kp)   X-Ref

param: string $message
param: string $kp
return: string|bool

sodium_crypto_box_secretkey($keypair)   X-Ref

param: string $keypair
return: string

sodium_crypto_box_seed_keypair($seed)   X-Ref

param: string $seed
return: string

sodium_crypto_generichash($message, $key = null, $outLen = 32)   X-Ref

param: string $message
param: string|null $key
param: int $outLen
return: string

sodium_crypto_generichash_final(&$ctx, $outputLength = 32)   X-Ref

param: string|null $ctx
param: int $outputLength
return: string

sodium_crypto_generichash_init($key = null, $outLen = 32)   X-Ref

param: string|null $key
param: int $outLen
return: string

sodium_crypto_generichash_keygen()   X-Ref

return: string

sodium_crypto_generichash_update(&$ctx, $message = '')   X-Ref

param: string|null $ctx
param: string $message
return: void

sodium_crypto_kx($my_secret, $their_public, $client_public, $server_public)   X-Ref

param: string $my_secret
param: string $their_public
param: string $client_public
param: string $server_public
return: string

sodium_crypto_pwhash($outlen, $passwd, $salt, $opslimit, $memlimit, $algo = null)   X-Ref

param: int $outlen
param: string $passwd
param: string $salt
param: int $opslimit
param: int $memlimit
param: int|null $algo
return: string

sodium_crypto_pwhash_str($passwd, $opslimit, $memlimit)   X-Ref

param: string $passwd
param: int $opslimit
param: int $memlimit
return: string

sodium_crypto_pwhash_str_verify($passwd, $hash)   X-Ref

param: string $passwd
param: string $hash
return: bool

sodium_crypto_pwhash_scryptsalsa208sha256($outlen, $passwd, $salt, $opslimit, $memlimit)   X-Ref

param: int $outlen
param: string $passwd
param: string $salt
param: int $opslimit
param: int $memlimit
return: string

sodium_crypto_pwhash_scryptsalsa208sha256_str($passwd, $opslimit, $memlimit)   X-Ref

param: string $passwd
param: int $opslimit
param: int $memlimit
return: string

sodium_crypto_pwhash_scryptsalsa208sha256_str_verify($passwd, $hash)   X-Ref

param: string $passwd
param: string $hash
return: bool

sodium_crypto_scalarmult($n, $p)   X-Ref

param: string $n
param: string $p
return: string

sodium_crypto_scalarmult_base($n)   X-Ref

param: string $n
return: string

sodium_crypto_secretbox($message, $nonce, $key)   X-Ref

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

sodium_crypto_secretbox_keygen()   X-Ref

return: string

sodium_crypto_secretbox_open($message, $nonce, $key)   X-Ref

param: string $message
param: string $nonce
param: string $key
return: string|bool

sodium_crypto_shorthash($message, $key = '')   X-Ref

param: string $message
param: string $key
return: string

sodium_crypto_shorthash_keygen()   X-Ref

return: string

sodium_crypto_sign($message, $sk)   X-Ref

param: string $message
param: string $sk
return: string

sodium_crypto_sign_detached($message, $sk)   X-Ref

param: string $message
param: string $sk
return: string

sodium_crypto_sign_keypair()   X-Ref

return: string

sodium_crypto_sign_open($signedMessage, $pk)   X-Ref

param: string $signedMessage
param: string $pk
return: string|bool

sodium_crypto_sign_publickey($keypair)   X-Ref

param: string $keypair
return: string

sodium_crypto_sign_publickey_from_secretkey($sk)   X-Ref

param: string $sk
return: string

sodium_crypto_sign_secretkey($keypair)   X-Ref

param: string $keypair
return: string

sodium_crypto_sign_seed_keypair($seed)   X-Ref

param: string $seed
return: string

sodium_crypto_sign_verify_detached($signature, $message, $pk)   X-Ref

param: string $signature
param: string $message
param: string $pk
return: bool

sodium_crypto_sign_ed25519_pk_to_curve25519($pk)   X-Ref

param: string $pk
return: string

sodium_crypto_sign_ed25519_sk_to_curve25519($sk)   X-Ref

param: string $sk
return: string

sodium_crypto_stream($len, $nonce, $key)   X-Ref

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

sodium_crypto_stream_keygen()   X-Ref

return: string

sodium_crypto_stream_xor($message, $nonce, $key)   X-Ref

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

sodium_hex2bin($string)   X-Ref

param: string $string
return: string

sodium_increment(&$string)   X-Ref

param: string $string
return: void

sodium_library_version_major()   X-Ref

return: int

sodium_library_version_minor()   X-Ref

return: int

sodium_version_string()   X-Ref

return: string

sodium_memcmp($a, $b)   X-Ref

param: string $a
param: string $b
return: int

sodium_memzero(&$str)   X-Ref

param: string $str
return: void

sodium_randombytes_buf($amount)   X-Ref

param: int $amount
return: string

sodium_randombytes_uniform($upperLimit)   X-Ref

param: int $upperLimit
return: int

sodium_randombytes_random16()   X-Ref

return: int



Generated: Tue May 21 08:20:01 2019 Cross-referenced by PHPXref 0.7