php-internal-docs 8.4.8
Unofficial docs for php/php-src
|
#include "php.h"
#include "ext/standard/info.h"
#include "php_libsodium.h"
#include "zend_attributes.h"
#include "zend_exceptions.h"
#include <sodium.h>
#include <stdint.h>
#include <string.h>
#include "libsodium_arginfo.h"
Go to the source code of this file.
Macros | |
#define | PHP_SODIUM_ZSTR_TRUNCATE(zs, len) |
#define | crypto_kdf_BYTES_MIN 16 |
#define | crypto_kdf_BYTES_MAX 64 |
#define | crypto_kdf_CONTEXTBYTES 8 |
#define | crypto_kdf_KEYBYTES 32 |
#define | crypto_kx_SEEDBYTES 32 |
#define | crypto_kx_SESSIONKEYBYTES 32 |
#define | crypto_kx_PUBLICKEYBYTES 32 |
#define | crypto_kx_SECRETKEYBYTES 32 |
#define | crypto_aead_chacha20poly1305_IETF_KEYBYTES crypto_aead_chacha20poly1305_KEYBYTES |
#define | crypto_aead_chacha20poly1305_IETF_NSECBYTES crypto_aead_chacha20poly1305_NSECBYTES |
#define | crypto_aead_chacha20poly1305_IETF_ABYTES crypto_aead_chacha20poly1305_ABYTES |
#define | crypto_pwhash_OPSLIMIT_MIN crypto_pwhash_OPSLIMIT_INTERACTIVE |
#define | crypto_pwhash_MEMLIMIT_MIN crypto_pwhash_MEMLIMIT_INTERACTIVE |
#define | crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MIN crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE |
#define | crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MIN crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE |
Variables | |
zend_module_entry | sodium_module_entry |
#define crypto_aead_chacha20poly1305_IETF_ABYTES crypto_aead_chacha20poly1305_ABYTES |
Definition at line 76 of file libsodium.c.
#define crypto_aead_chacha20poly1305_IETF_KEYBYTES crypto_aead_chacha20poly1305_KEYBYTES |
Definition at line 70 of file libsodium.c.
#define crypto_aead_chacha20poly1305_IETF_NSECBYTES crypto_aead_chacha20poly1305_NSECBYTES |
Definition at line 73 of file libsodium.c.
#define crypto_kdf_BYTES_MAX 64 |
Definition at line 55 of file libsodium.c.
#define crypto_kdf_BYTES_MIN 16 |
Definition at line 54 of file libsodium.c.
#define crypto_kdf_CONTEXTBYTES 8 |
Definition at line 56 of file libsodium.c.
#define crypto_kdf_KEYBYTES 32 |
Definition at line 57 of file libsodium.c.
#define crypto_kx_PUBLICKEYBYTES 32 |
Definition at line 63 of file libsodium.c.
#define crypto_kx_SECRETKEYBYTES 32 |
Definition at line 64 of file libsodium.c.
#define crypto_kx_SEEDBYTES 32 |
Definition at line 61 of file libsodium.c.
#define crypto_kx_SESSIONKEYBYTES 32 |
Definition at line 62 of file libsodium.c.
#define crypto_pwhash_MEMLIMIT_MIN crypto_pwhash_MEMLIMIT_INTERACTIVE |
Definition at line 87 of file libsodium.c.
#define crypto_pwhash_OPSLIMIT_MIN crypto_pwhash_OPSLIMIT_INTERACTIVE |
Definition at line 84 of file libsodium.c.
#define crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MIN crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE |
Definition at line 93 of file libsodium.c.
#define crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MIN crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE |
Definition at line 90 of file libsodium.c.
Definition at line 31 of file libsodium.c.
PHP_FUNCTION | ( | sodium_add | ) |
Definition at line 239 of file libsodium.c.
PHP_FUNCTION | ( | sodium_bin2hex | ) |
Definition at line 2454 of file libsodium.c.
PHP_FUNCTION | ( | sodium_compare | ) |
Definition at line 3004 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_aead_aes256gcm_is_available | ) |
Definition at line 1734 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_aead_chacha20poly1305_decrypt | ) |
Definition at line 2155 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_aead_chacha20poly1305_encrypt | ) |
Definition at line 2099 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_aead_chacha20poly1305_ietf_decrypt | ) |
Definition at line 2272 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_aead_chacha20poly1305_ietf_encrypt | ) |
Definition at line 2212 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_aead_chacha20poly1305_ietf_keygen | ) |
Definition at line 3076 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_aead_chacha20poly1305_keygen | ) |
Definition at line 3065 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_auth | ) |
Definition at line 2885 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_auth_keygen | ) |
Definition at line 3100 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_auth_verify | ) |
Definition at line 2916 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_box | ) |
Definition at line 728 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_box_keypair | ) |
Definition at line 569 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_box_keypair_from_secretkey_and_publickey | ) |
Definition at line 622 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_box_open | ) |
Definition at line 774 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_box_publickey | ) |
Definition at line 678 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_box_publickey_from_secretkey | ) |
Definition at line 702 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_box_seal | ) |
Definition at line 818 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_box_seal_open | ) |
Definition at line 852 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_box_secretkey | ) |
Definition at line 655 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_box_seed_keypair | ) |
Definition at line 591 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_generichash | ) |
Definition at line 401 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_generichash_final | ) |
Definition at line 520 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_generichash_init | ) |
Definition at line 441 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_generichash_keygen | ) |
Definition at line 3111 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_generichash_update | ) |
Definition at line 481 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_kdf_derive_from_key | ) |
Definition at line 3178 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_kdf_keygen | ) |
Definition at line 3122 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_kx_client_session_keys | ) |
Definition at line 2785 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_kx_keypair | ) |
Definition at line 2716 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_kx_publickey | ) |
Definition at line 2761 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_kx_secretkey | ) |
Definition at line 2738 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_kx_seed_keypair | ) |
Definition at line 2683 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_kx_server_session_keys | ) |
Definition at line 2835 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_scalarmult | ) |
Definition at line 2588 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_secretbox | ) |
Definition at line 318 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_secretbox_keygen | ) |
Definition at line 3133 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_secretbox_open | ) |
Definition at line 360 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_shorthash | ) |
Definition at line 288 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_shorthash_keygen | ) |
Definition at line 3144 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_sign | ) |
Definition at line 1051 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_sign_detached | ) |
Definition at line 1138 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_sign_ed25519_pk_to_curve25519 | ) |
Definition at line 2976 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_sign_ed25519_sk_to_curve25519 | ) |
Definition at line 2948 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_sign_keypair | ) |
Definition at line 889 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_sign_keypair_from_secretkey_and_publickey | ) |
Definition at line 942 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_sign_open | ) |
Definition at line 1095 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_sign_publickey | ) |
Definition at line 1027 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_sign_publickey_from_secretkey | ) |
Definition at line 975 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_sign_secretkey | ) |
Definition at line 1004 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_sign_seed_keypair | ) |
Definition at line 911 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_sign_verify_detached | ) |
Definition at line 1177 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_stream | ) |
Definition at line 1209 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_stream_keygen | ) |
Definition at line 3155 of file libsodium.c.
PHP_FUNCTION | ( | sodium_crypto_stream_xor | ) |
Definition at line 1249 of file libsodium.c.
PHP_FUNCTION | ( | sodium_hex2bin | ) |
Definition at line 2478 of file libsodium.c.
PHP_FUNCTION | ( | sodium_increment | ) |
Definition at line 216 of file libsodium.c.
PHP_FUNCTION | ( | sodium_memcmp | ) |
Definition at line 268 of file libsodium.c.
PHP_FUNCTION | ( | sodium_memzero | ) |
Definition at line 192 of file libsodium.c.
PHP_FUNCTION | ( | sodium_pad | ) |
Definition at line 3249 of file libsodium.c.
PHP_FUNCTION | ( | sodium_unpad | ) |
Definition at line 3325 of file libsodium.c.
PHP_MINFO_FUNCTION | ( | sodium | ) |
Definition at line 183 of file libsodium.c.
PHP_MINIT_FUNCTION | ( | sodium | ) |
Definition at line 157 of file libsodium.c.
PHP_MSHUTDOWN_FUNCTION | ( | sodium | ) |
Definition at line 177 of file libsodium.c.
zend_module_entry sodium_module_entry |
Definition at line 104 of file libsodium.c.