php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_libsodium.h File Reference
#include <sodium.h>

Go to the source code of this file.

Macros

#define phpext_sodium_ptr   &sodium_module_entry
 
#define PHP_SODIUM_VERSION   PHP_VERSION
 
#define SODIUM_LIBRARY_VERSION()
 
#define SODIUM_CRYPTO_BOX_KEYPAIRBYTES()
 
#define SODIUM_CRYPTO_KX_KEYPAIRBYTES()
 
#define SODIUM_CRYPTO_SIGN_KEYPAIRBYTES()
 

Functions

 PHP_MINIT_FUNCTION (sodium)
 
 PHP_MINIT_FUNCTION (sodium_password_hash)
 
 PHP_MSHUTDOWN_FUNCTION (sodium)
 
 PHP_RINIT_FUNCTION (sodium)
 
 PHP_RSHUTDOWN_FUNCTION (sodium)
 
 PHP_MINFO_FUNCTION (sodium)
 

Variables

zend_module_entry sodium_module_entry
 

Macro Definition Documentation

◆ PHP_SODIUM_VERSION

#define PHP_SODIUM_VERSION   PHP_VERSION

Definition at line 23 of file php_libsodium.h.

◆ phpext_sodium_ptr

#define phpext_sodium_ptr   &sodium_module_entry

Definition at line 21 of file php_libsodium.h.

◆ SODIUM_CRYPTO_BOX_KEYPAIRBYTES

#define SODIUM_CRYPTO_BOX_KEYPAIRBYTES ( )
Value:
crypto_box_SECRETKEYBYTES + crypto_box_PUBLICKEYBYTES

Definition at line 33 of file php_libsodium.h.

◆ SODIUM_CRYPTO_KX_KEYPAIRBYTES

#define SODIUM_CRYPTO_KX_KEYPAIRBYTES ( )
Value:
#define crypto_kx_PUBLICKEYBYTES
Definition libsodium.c:63
#define crypto_kx_SECRETKEYBYTES
Definition libsodium.c:64

Definition at line 35 of file php_libsodium.h.

◆ SODIUM_CRYPTO_SIGN_KEYPAIRBYTES

#define SODIUM_CRYPTO_SIGN_KEYPAIRBYTES ( )
Value:
crypto_sign_SECRETKEYBYTES + crypto_sign_PUBLICKEYBYTES

Definition at line 37 of file php_libsodium.h.

◆ SODIUM_LIBRARY_VERSION

#define SODIUM_LIBRARY_VERSION ( )
Value:
(char *) (void *) sodium_version_string()

Definition at line 31 of file php_libsodium.h.

Function Documentation

◆ PHP_MINFO_FUNCTION()

PHP_MINFO_FUNCTION ( sodium )

Definition at line 183 of file libsodium.c.

◆ PHP_MINIT_FUNCTION() [1/2]

PHP_MINIT_FUNCTION ( sodium )

Definition at line 157 of file libsodium.c.

◆ PHP_MINIT_FUNCTION() [2/2]

PHP_MINIT_FUNCTION ( sodium_password_hash )

◆ PHP_MSHUTDOWN_FUNCTION()

PHP_MSHUTDOWN_FUNCTION ( sodium )

Definition at line 177 of file libsodium.c.

◆ PHP_RINIT_FUNCTION()

PHP_RINIT_FUNCTION ( sodium )

◆ PHP_RSHUTDOWN_FUNCTION()

PHP_RSHUTDOWN_FUNCTION ( sodium )

Variable Documentation

◆ sodium_module_entry

zend_module_entry sodium_module_entry
extern

Definition at line 104 of file libsodium.c.