[ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
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: | 1369 lines (42 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
sodium_add(&$val, $addv) X-Ref |
return: void param: string $val param: string $addv |
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($a, $b) X-Ref |
return: int param: string $a param: string $b |
sodium_crypto_aead_aes256gcm_decrypt($message, $assocData, $nonce, $key) X-Ref |
return: string|bool param: string $message param: string $assocData param: string $nonce param: string $key |
sodium_crypto_aead_aes256gcm_encrypt($message, $assocData, $nonce, $key) X-Ref |
return: string param: string $message param: string $assocData param: string $nonce param: string $key |
sodium_crypto_aead_aes256gcm_is_available() X-Ref |
return: bool |
sodium_crypto_aead_chacha20poly1305_decrypt($message, $assocData, $nonce, $key) X-Ref |
return: string|bool param: string $message param: string $assocData param: string $nonce param: string $key |
sodium_crypto_aead_chacha20poly1305_encrypt($message, $assocData, $nonce, $key) X-Ref |
return: string param: string $message param: string $assocData param: string $nonce param: string $key |
sodium_crypto_aead_chacha20poly1305_keygen() X-Ref |
return: string |
sodium_crypto_aead_chacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key) X-Ref |
return: string|bool param: string $message param: string $assocData param: string $nonce param: string $key |
sodium_crypto_aead_chacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key) X-Ref |
return: string param: string $message param: string $assocData param: string $nonce param: string $key |
sodium_crypto_aead_chacha20poly1305_ietf_keygen() X-Ref |
return: string |
sodium_crypto_aead_xchacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key) X-Ref |
return: string|bool param: string $message param: string $assocData param: string $nonce param: string $key |
sodium_crypto_aead_xchacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key) X-Ref |
return: string param: string $message param: string $assocData 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, $kp) X-Ref |
return: string param: string $message param: string $nonce param: string $kp |
sodium_crypto_box_keypair() X-Ref |
return: string |
sodium_crypto_box_keypair_from_secretkey_and_publickey($sk, $pk) X-Ref |
return: string param: string $sk param: string $pk |
sodium_crypto_box_open($message, $nonce, $kp) X-Ref |
return: string|bool param: string $message param: string $nonce param: string $kp |
sodium_crypto_box_publickey($keypair) X-Ref |
return: string param: string $keypair |
sodium_crypto_box_publickey_from_secretkey($sk) X-Ref |
return: string param: string $sk |
sodium_crypto_box_seal($message, $publicKey) X-Ref |
return: string param: string $message param: string $publicKey |
sodium_crypto_box_seal_open($message, $kp) X-Ref |
return: string|bool param: string $message param: string $kp |
sodium_crypto_box_secretkey($keypair) X-Ref |
return: string param: string $keypair |
sodium_crypto_box_seed_keypair($seed) X-Ref |
return: string param: string $seed |
sodium_crypto_generichash($message, $key = null, $outLen = 32) X-Ref |
return: string param: string $message param: string|null $key param: int $outLen |
sodium_crypto_generichash_final(&$ctx, $outputLength = 32) X-Ref |
return: string param: string|null $ctx param: int $outputLength |
sodium_crypto_generichash_init($key = null, $outLen = 32) X-Ref |
return: string param: string|null $key param: int $outLen |
sodium_crypto_generichash_keygen() X-Ref |
return: string |
sodium_crypto_generichash_update(&$ctx, $message = '') X-Ref |
return: void param: string|null $ctx param: string $message |
sodium_crypto_kdf_keygen() X-Ref |
return: string |
sodium_crypto_kdf_derive_from_key($subkey_len, $subkey_id, $context, $key) X-Ref |
return: string param: int $subkey_len 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($keypair, $serverPublicKey) X-Ref |
return: array{0: string, 1: string} param: string $keypair param: string $serverPublicKey |
sodium_crypto_kx_server_session_keys($keypair, $clientPublicKey) X-Ref |
return: array{0: string, 1: string} param: string $keypair param: string $clientPublicKey |
sodium_crypto_kx_secretkey($keypair) X-Ref |
return: string param: string $keypair |
sodium_crypto_kx_publickey($keypair) X-Ref |
return: string param: string $keypair |
sodium_crypto_pwhash($outlen, $passwd, $salt, $opslimit, $memlimit, $algo = null) X-Ref |
return: string param: int $outlen 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($outlen, $passwd, $salt, $opslimit, $memlimit) X-Ref |
return: string param: int $outlen 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($message, $nonce, $key) X-Ref |
return: string|bool param: string $message 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, $msg, $aad = '', $tag = 0) X-Ref |
return: string param: string $state param: string $msg param: string $aad 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, $cipher, $aad = '') X-Ref |
return: bool|array{0: string, 1: int} param: string $state param: string $cipher param: string $aad |
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, $sk) X-Ref |
return: string param: string $message param: string $sk |
sodium_crypto_sign_detached($message, $sk) X-Ref |
return: string param: string $message param: string $sk |
sodium_crypto_sign_keypair_from_secretkey_and_publickey($sk, $pk) X-Ref |
return: string param: string $sk param: string $pk |
sodium_crypto_sign_keypair() X-Ref |
return: string |
sodium_crypto_sign_open($signedMessage, $pk) X-Ref |
return: string|bool param: string $signedMessage param: string $pk |
sodium_crypto_sign_publickey($keypair) X-Ref |
return: string param: string $keypair |
sodium_crypto_sign_publickey_from_secretkey($sk) X-Ref |
return: string param: string $sk |
sodium_crypto_sign_secretkey($keypair) X-Ref |
return: string param: string $keypair |
sodium_crypto_sign_seed_keypair($seed) X-Ref |
return: string param: string $seed |
sodium_crypto_sign_verify_detached($signature, $message, $pk) X-Ref |
return: bool param: string $signature param: string $message param: string $pk |
sodium_crypto_sign_ed25519_pk_to_curve25519($pk) X-Ref |
return: string param: string $pk |
sodium_crypto_sign_ed25519_sk_to_curve25519($sk) X-Ref |
return: string param: string $sk |
sodium_crypto_stream($len, $nonce, $key) X-Ref |
return: string param: int $len 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) X-Ref |
return: string param: string $string |
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($a, $b) X-Ref |
return: int param: string $a param: string $b |
sodium_memzero(&$str) X-Ref |
return: void param: string $str |
sodium_pad($unpadded, $blockSize) X-Ref |
return: int param: string $unpadded param: int $blockSize |
sodium_unpad($padded, $blockSize) X-Ref |
return: int param: string $padded param: int $blockSize |
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: Thu Nov 21 01:00:03 2024 | Cross-referenced by PHPXref 0.7.1 |