[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

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: 1665 lines (47 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 91 functions

  sodium_add()
  sodium_base642bin()
  sodium_bin2base64()
  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_kdf_keygen()
  sodium_crypto_kdf_derive_from_key()
  sodium_crypto_kx()
  sodium_crypto_kx_seed_keypair()
  sodium_crypto_kx_keypair()
  sodium_crypto_kx_client_session_keys()
  sodium_crypto_kx_server_session_keys()
  sodium_crypto_kx_secretkey()
  sodium_crypto_kx_publickey()
  sodium_crypto_pwhash()
  sodium_crypto_pwhash_str()
  sodium_crypto_pwhash_str_needs_rehash()
  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_secretstream_xchacha20poly1305_init_push()
  sodium_crypto_secretstream_xchacha20poly1305_push()
  sodium_crypto_secretstream_xchacha20poly1305_init_pull()
  sodium_crypto_secretstream_xchacha20poly1305_pull()
  sodium_crypto_secretstream_xchacha20poly1305_rekey()
  sodium_crypto_secretstream_xchacha20poly1305_keygen()
  sodium_crypto_shorthash()
  sodium_crypto_shorthash_keygen()
  sodium_crypto_sign()
  sodium_crypto_sign_detached()
  sodium_crypto_sign_keypair_from_secretkey_and_publickey()
  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_pad()
  sodium_unpad()
  sodium_randombytes_buf()
  sodium_randombytes_uniform()
  sodium_randombytes_random16()

Functions
Functions that are not part of a class:

sodium_add(&$string1,$string2)   X-Ref

return: void
param: string $string1
param: string $string2

sodium_base642bin($string,$variant,$ignore ='')   X-Ref

return: string
param: string $string
param: int $variant
param: string $ignore

sodium_bin2base64($string,$variant)   X-Ref

return: string
param: string $string
param: int $variant

sodium_bin2hex($string)   X-Ref

return: string
param: string $string

sodium_compare($string1,$string2)   X-Ref

return: int
param: string $string1
param: string $string2

sodium_crypto_aead_aes256gcm_decrypt($ciphertext,$additional_data,$nonce,$key)   X-Ref

return: string|bool
param: string $ciphertext
param: string $additional_data
param: string $nonce
param: string $key

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

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

sodium_crypto_aead_aes256gcm_is_available()   X-Ref

return: bool

sodium_crypto_aead_chacha20poly1305_decrypt($ciphertext,$additional_data,$nonce,$key)   X-Ref

return: string|bool
param: string $ciphertext
param: string $additional_data
param: string $nonce
param: string $key

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

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

sodium_crypto_aead_chacha20poly1305_keygen()   X-Ref

return: string

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

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

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

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

sodium_crypto_aead_chacha20poly1305_ietf_keygen()   X-Ref

return: string

sodium_crypto_aead_xchacha20poly1305_ietf_decrypt($ciphertext,$additional_data,$nonce,$key)   X-Ref

return: string|bool
param: string $ciphertext
param: string $additional_data
param: string $nonce
param: string $key

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

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

sodium_crypto_aead_xchacha20poly1305_ietf_keygen()   X-Ref

return: string

sodium_crypto_auth($message,$key)   X-Ref

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

sodium_crypto_auth_keygen()   X-Ref

return: string

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

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

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

return: string
param: string $message
param: string $nonce
param: string $key_pair

sodium_crypto_box_keypair()   X-Ref

return: string

sodium_crypto_box_keypair_from_secretkey_and_publickey($secret_key,$public_key)   X-Ref

return: string
param: string $secret_key
param: string $public_key

sodium_crypto_box_open($ciphertext,$nonce,$key_pair)   X-Ref

return: string|bool
param: string $ciphertext
param: string $nonce
param: string $key_pair

sodium_crypto_box_publickey($key_pair)   X-Ref

return: string
param: string $key_pair

sodium_crypto_box_publickey_from_secretkey($secret_key)   X-Ref

return: string
param: string $secret_key

sodium_crypto_box_seal($message,$public_key)   X-Ref

return: string
param: string $message
param: string $public_key

sodium_crypto_box_seal_open($message,$key_pair)   X-Ref

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

sodium_crypto_box_secretkey($key_pair)   X-Ref

return: string
param: string $key_pair

sodium_crypto_box_seed_keypair($seed)   X-Ref

return: string
param: string $seed

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

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

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

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

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

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

sodium_crypto_generichash_keygen()   X-Ref

return: string

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

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

sodium_crypto_kdf_keygen()   X-Ref

return: string

sodium_crypto_kdf_derive_from_key($subkey_length,$subkey_id,$context,$key)   X-Ref

return: string
param: int $subkey_length
param: int $subkey_id
param: string $context
param: string $key

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

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

sodium_crypto_kx_seed_keypair($seed)   X-Ref

return: string
param: string $seed

sodium_crypto_kx_keypair()   X-Ref

return: string

sodium_crypto_kx_client_session_keys($client_key_pair,$server_key)   X-Ref

return: array{0: string, 1: string}
param: string $client_key_pair
param: string $server_key

sodium_crypto_kx_server_session_keys($server_key_pair,$client_key)   X-Ref

return: array{0: string, 1: string}
param: string $server_key_pair
param: string $client_key

sodium_crypto_kx_secretkey($key_pair)   X-Ref

return: string
param: string $key_pair

sodium_crypto_kx_publickey($key_pair)   X-Ref

return: string
param: string $key_pair

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

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

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

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

sodium_crypto_pwhash_str_needs_rehash($hash,$opslimit,$memlimit)   X-Ref

return: bool
param: string $hash
param: int $opslimit
param: int $memlimit

sodium_crypto_pwhash_str_verify($passwd,$hash)   X-Ref

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

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

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

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

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

sodium_crypto_pwhash_scryptsalsa208sha256_str_verify($passwd,$hash)   X-Ref

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

sodium_crypto_scalarmult($n,$p)   X-Ref

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

sodium_crypto_scalarmult_base($n)   X-Ref

return: string
param: string $n

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

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

sodium_crypto_secretbox_keygen()   X-Ref

return: string

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

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

sodium_crypto_secretstream_xchacha20poly1305_init_push($key)   X-Ref

return: array<int, string>
param: string $key

sodium_crypto_secretstream_xchacha20poly1305_push(&$state,$message,$additional_data = '',$tag = 0)   X-Ref

return: string
param: string $state
param: string $message
param: string $additional_data
param: int $tag

sodium_crypto_secretstream_xchacha20poly1305_init_pull($header,$key)   X-Ref

return: string
param: string $header
param: string $key

sodium_crypto_secretstream_xchacha20poly1305_pull(&$state,$ciphertext,$additional_data = '')   X-Ref

return: bool|array{0: string, 1: int}
param: string $state
param: string $ciphertext
param: string $additional_data

sodium_crypto_secretstream_xchacha20poly1305_rekey(&$state)   X-Ref

return: void
param: string $state

sodium_crypto_secretstream_xchacha20poly1305_keygen()   X-Ref

return: string

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

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

sodium_crypto_shorthash_keygen()   X-Ref

return: string

sodium_crypto_sign($message,$secret_key)   X-Ref

return: string
param: string $message
param: string $secret_key

sodium_crypto_sign_detached($message,$secret_key)   X-Ref

return: string
param: string $message
param: string $secret_key

sodium_crypto_sign_keypair_from_secretkey_and_publickey($secret_key,$public_key)   X-Ref

return: string
param: string $secret_key
param: string $public_key

sodium_crypto_sign_keypair()   X-Ref

return: string

sodium_crypto_sign_open($signedMessage, $public_key)   X-Ref

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

sodium_crypto_sign_publickey($key_pair)   X-Ref

return: string
param: string $key_pair

sodium_crypto_sign_publickey_from_secretkey($secret_key)   X-Ref

return: string
param: string $secret_key

sodium_crypto_sign_secretkey($key_pair)   X-Ref

return: string
param: string $key_pair

sodium_crypto_sign_seed_keypair($seed)   X-Ref

return: string
param: string $seed

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

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

sodium_crypto_sign_ed25519_pk_to_curve25519($public_key)   X-Ref

return: string
param: string $public_key

sodium_crypto_sign_ed25519_sk_to_curve25519($secret_key)   X-Ref

return: string
param: string $secret_key

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

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

sodium_crypto_stream_keygen()   X-Ref

return: string

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

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

sodium_hex2bin($string,$ignore = '')   X-Ref

return: string
param: string $string
param: string $ignore

sodium_increment(&$string)   X-Ref

return: void
param: string $string

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($string1,$string2)   X-Ref

return: int
param: string $string1
param: string $string2

sodium_memzero(&$string)   X-Ref

return: void
param: string $string

sodium_pad($unpadded,$block_size)   X-Ref

return: string
param: string $unpadded
param: int $block_size

sodium_unpad($padded,$block_size)   X-Ref

return: string
param: string $padded
param: int $block_size

sodium_randombytes_buf($amount)   X-Ref

return: string
param: int $amount

sodium_randombytes_uniform($upperLimit)   X-Ref

return: int
param: int $upperLimit

sodium_randombytes_random16()   X-Ref

return: int



Generated : Sat Nov 23 08:20:01 2024 Cross-referenced by PHPXref