Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe ParagonIE_Sodium_Core_Util
+ Graphe d'héritage de ParagonIE_Sodium_Core_Util:

Fonctions membres publiques statiques

static compare ($left, $right, $len=null)
 
static declareScalarType (&$mixedVar=null, $type='void', $argumentIndex=0)
 
static intToChr ($int)
 
static memcmp ($left, $right)
 
static strlen ($str)
 
static substr ($str, $start=0, $length=null)
 
static verify_16 ($a, $b)
 
static verify_32 ($a, $b)
 
static xorStrings ($a, $b)
 

Fonctions membres protégées statiques

static hash_update (&$hs, $data)
 

Description détaillée

Documentation des fonctions membres

◆ compare()

static compare (   $left,
  $right,
  $len = null 
)
static

Compares two strings.

Références $i, et null.

Référencé par ParagonIE_Sodium_Compat\compare().

◆ declareScalarType()

static declareScalarType ( $mixedVar = null,
  $type = 'void',
  $argumentIndex = 0 
)
static

If a variable does not match a given type, throw a TypeError.

Paramètres
mixed$mixedVar
string$type
int$argumentIndex
Exceptions
TypeError
SodiumException
Renvoie
void

Références $type, et null.

Référencé par ParagonIE_Sodium_Compat\bin2hex(), ParagonIE_Sodium_Compat\compare(), ParagonIE_Sodium_Compat\crypto_aead_aes256gcm_encrypt(), ParagonIE_Sodium_Compat\crypto_aead_chacha20poly1305_decrypt(), ParagonIE_Sodium_Compat\crypto_aead_chacha20poly1305_encrypt(), ParagonIE_Sodium_Compat\crypto_aead_chacha20poly1305_ietf_decrypt(), ParagonIE_Sodium_Compat\crypto_aead_chacha20poly1305_ietf_encrypt(), ParagonIE_Sodium_Compat\crypto_aead_xchacha20poly1305_ietf_decrypt(), ParagonIE_Sodium_Compat\crypto_aead_xchacha20poly1305_ietf_encrypt(), ParagonIE_Sodium_Compat\crypto_auth(), ParagonIE_Sodium_Compat\crypto_auth_verify(), ParagonIE_Sodium_Compat\crypto_box(), ParagonIE_Sodium_Compat\crypto_box_keypair_from_secretkey_and_publickey(), ParagonIE_Sodium_Compat\crypto_box_open(), ParagonIE_Sodium_Compat\crypto_box_publickey(), ParagonIE_Sodium_Compat\crypto_box_publickey_from_secretkey(), ParagonIE_Sodium_Compat\crypto_box_seal(), ParagonIE_Sodium_Compat\crypto_box_seal_open(), ParagonIE_Sodium_Compat\crypto_box_secretkey(), ParagonIE_Sodium_Compat\crypto_box_seed_keypair(), ParagonIE_Sodium_Compat\crypto_generichash(), ParagonIE_Sodium_Compat\crypto_generichash_final(), ParagonIE_Sodium_Compat\crypto_generichash_init(), ParagonIE_Sodium_Compat\crypto_generichash_init_salt_personal(), ParagonIE_Sodium_Compat\crypto_generichash_update(), ParagonIE_Sodium_Compat\crypto_kdf_derive_from_key(), ParagonIE_Sodium_Compat\crypto_kx(), ParagonIE_Sodium_Compat\crypto_kx_client_session_keys(), ParagonIE_Sodium_Compat\crypto_kx_seed_keypair(), ParagonIE_Sodium_Compat\crypto_kx_server_session_keys(), ParagonIE_Sodium_Compat\crypto_pwhash(), ParagonIE_Sodium_Compat\crypto_pwhash_scryptsalsa208sha256(), ParagonIE_Sodium_Compat\crypto_pwhash_scryptsalsa208sha256_str(), ParagonIE_Sodium_Compat\crypto_pwhash_scryptsalsa208sha256_str_verify(), ParagonIE_Sodium_Compat\crypto_pwhash_str(), ParagonIE_Sodium_Compat\crypto_pwhash_str_verify(), ParagonIE_Sodium_Compat\crypto_scalarmult(), ParagonIE_Sodium_Compat\crypto_scalarmult_base(), ParagonIE_Sodium_Compat\crypto_secretbox(), ParagonIE_Sodium_Compat\crypto_secretbox_open(), ParagonIE_Sodium_Compat\crypto_secretbox_xchacha20poly1305(), ParagonIE_Sodium_Compat\crypto_secretbox_xchacha20poly1305_open(), ParagonIE_Sodium_Compat\crypto_shorthash(), ParagonIE_Sodium_Compat\crypto_sign(), ParagonIE_Sodium_Compat\crypto_sign_detached(), ParagonIE_Sodium_Compat\crypto_sign_ed25519_pk_to_curve25519(), ParagonIE_Sodium_Compat\crypto_sign_ed25519_sk_to_curve25519(), ParagonIE_Sodium_Compat\crypto_sign_keypair_from_secretkey_and_publickey(), ParagonIE_Sodium_Compat\crypto_sign_open(), ParagonIE_Sodium_Compat\crypto_sign_publickey(), ParagonIE_Sodium_Compat\crypto_sign_publickey_from_secretkey(), ParagonIE_Sodium_Compat\crypto_sign_secretkey(), ParagonIE_Sodium_Compat\crypto_sign_seed_keypair(), ParagonIE_Sodium_Compat\crypto_sign_verify_detached(), ParagonIE_Sodium_Compat\crypto_stream(), ParagonIE_Sodium_Compat\crypto_stream_xchacha20(), ParagonIE_Sodium_Compat\crypto_stream_xchacha20_xor(), ParagonIE_Sodium_Compat\crypto_stream_xor(), ParagonIE_Sodium_Core32_Int64\fromInt(), ParagonIE_Sodium_Core32_Int64\fromInts(), ParagonIE_Sodium_Core32_Int32\fromReverseString(), ParagonIE_Sodium_Core32_Int64\fromReverseString(), ParagonIE_Sodium_Core32_Int32\fromString(), ParagonIE_Sodium_Core32_Int64\fromString(), ParagonIE_Sodium_Compat\hex2bin(), ParagonIE_Sodium_Compat\increment(), ParagonIE_Sodium_Compat\memzero(), ParagonIE_Sodium_Core32_Curve25519_Fe\offsetSet(), et ParagonIE_Sodium_Compat\unpad().

◆ hash_update()

static hash_update ( $hs,
  $data 
)
staticprotected

Catch hash_update() failures and throw instead of silently proceeding

Paramètres
HashContext | resource&$hs
string$data
Renvoie
void
Exceptions
SodiumException-suppress PossiblyInvalidArgument

Références $data.

Référencé par ParagonIE_Sodium_Core_Ed25519\sign_detached().

◆ intToChr()

◆ memcmp()

static memcmp (   $left,
  $right 
)
static

◆ strlen()

static strlen (   $str)
static

Safe string length

Référencé par ParagonIE_Sodium_Compat\add(), ParagonIE_Sodium_Crypto32\box_publickey(), ParagonIE_Sodium_Crypto\box_publickey(), ParagonIE_Sodium_Crypto32\box_publickey_from_secretkey(), ParagonIE_Sodium_Crypto\box_publickey_from_secretkey(), ParagonIE_Sodium_Crypto32\box_secretkey(), ParagonIE_Sodium_Crypto\box_secretkey(), ParagonIE_Sodium_Compat\crypto_aead_aes256gcm_encrypt(), ParagonIE_Sodium_Compat\crypto_aead_chacha20poly1305_decrypt(), ParagonIE_Sodium_Compat\crypto_aead_chacha20poly1305_encrypt(), ParagonIE_Sodium_Compat\crypto_aead_chacha20poly1305_ietf_decrypt(), ParagonIE_Sodium_Compat\crypto_aead_chacha20poly1305_ietf_encrypt(), ParagonIE_Sodium_Compat\crypto_aead_xchacha20poly1305_ietf_decrypt(), ParagonIE_Sodium_Compat\crypto_aead_xchacha20poly1305_ietf_encrypt(), ParagonIE_Sodium_Compat\crypto_auth(), ParagonIE_Sodium_Compat\crypto_auth_verify(), ParagonIE_Sodium_Compat\crypto_box(), ParagonIE_Sodium_Compat\crypto_box_keypair_from_secretkey_and_publickey(), ParagonIE_Sodium_Compat\crypto_box_open(), ParagonIE_Sodium_Compat\crypto_box_publickey(), ParagonIE_Sodium_Compat\crypto_box_publickey_from_secretkey(), ParagonIE_Sodium_Compat\crypto_box_seal(), ParagonIE_Sodium_Compat\crypto_box_seal_open(), ParagonIE_Sodium_Compat\crypto_box_secretkey(), ParagonIE_Sodium_Compat\crypto_generichash(), ParagonIE_Sodium_Compat\crypto_generichash_init(), ParagonIE_Sodium_Compat\crypto_generichash_init_salt_personal(), ParagonIE_Sodium_Compat\crypto_kdf_derive_from_key(), ParagonIE_Sodium_Compat\crypto_kx(), ParagonIE_Sodium_Compat\crypto_kx_client_session_keys(), ParagonIE_Sodium_Compat\crypto_kx_seed_keypair(), ParagonIE_Sodium_Compat\crypto_kx_server_session_keys(), ParagonIE_Sodium_Compat\crypto_scalarmult(), ParagonIE_Sodium_Compat\crypto_scalarmult_base(), ParagonIE_Sodium_Compat\crypto_secretbox(), ParagonIE_Sodium_Compat\crypto_secretbox_open(), ParagonIE_Sodium_Compat\crypto_secretbox_xchacha20poly1305(), ParagonIE_Sodium_Compat\crypto_secretbox_xchacha20poly1305_open(), ParagonIE_Sodium_Compat\crypto_secretstream_xchacha20poly1305_init_pull(), ParagonIE_Sodium_Compat\crypto_shorthash(), ParagonIE_Sodium_Compat\crypto_sign(), ParagonIE_Sodium_Compat\crypto_sign_detached(), ParagonIE_Sodium_Compat\crypto_sign_ed25519_pk_to_curve25519(), ParagonIE_Sodium_Compat\crypto_sign_ed25519_sk_to_curve25519(), ParagonIE_Sodium_Compat\crypto_sign_keypair_from_secretkey_and_publickey(), ParagonIE_Sodium_Compat\crypto_sign_open(), ParagonIE_Sodium_Compat\crypto_sign_publickey(), ParagonIE_Sodium_Compat\crypto_sign_publickey_from_secretkey(), ParagonIE_Sodium_Compat\crypto_sign_secretkey(), ParagonIE_Sodium_Compat\crypto_sign_verify_detached(), ParagonIE_Sodium_Compat\crypto_stream(), ParagonIE_Sodium_Compat\crypto_stream_xchacha20(), ParagonIE_Sodium_Compat\crypto_stream_xchacha20_xor(), ParagonIE_Sodium_Compat\crypto_stream_xor(), ParagonIE_Sodium_Core32_Int32\fromReverseString(), ParagonIE_Sodium_Core32_Int64\fromReverseString(), ParagonIE_Sodium_Core32_Int32\fromString(), ParagonIE_Sodium_Core32_Int64\fromString(), ParagonIE_Sodium_Core_SecretStream_State\getNonce(), ParagonIE_Sodium_Core32_SecretStream_State\getNonce(), ParagonIE_Sodium_Compat\increment(), ParagonIE_Sodium_Compat\sub(), et ParagonIE_Sodium_Compat\unpad().

◆ substr()

static substr (   $str,
  $start = 0,
  $length = null 
)
static

Safe substring

Références $start, elseif, et null.

Référencé par ParagonIE_Sodium_Crypto\aead_xchacha20poly1305_ietf_decrypt(), ParagonIE_Sodium_Crypto32\aead_xchacha20poly1305_ietf_decrypt(), ParagonIE_Sodium_Crypto\aead_xchacha20poly1305_ietf_encrypt(), ParagonIE_Sodium_Crypto32\aead_xchacha20poly1305_ietf_encrypt(), ParagonIE_Sodium_Crypto32\auth(), ParagonIE_Sodium_Crypto\auth(), ParagonIE_Sodium_Crypto32\box_keypair_from_secretkey_and_publickey(), ParagonIE_Sodium_Crypto\box_keypair_from_secretkey_and_publickey(), ParagonIE_Sodium_Crypto32\box_publickey(), ParagonIE_Sodium_Crypto\box_publickey(), ParagonIE_Sodium_Crypto32\box_secretkey(), ParagonIE_Sodium_Crypto\box_secretkey(), ParagonIE_Sodium_Crypto32\box_seed_keypair(), ParagonIE_Sodium_Crypto\box_seed_keypair(), ParagonIE_Sodium_Compat\crypto_kx_client_session_keys(), ParagonIE_Sodium_Compat\crypto_kx_publickey(), ParagonIE_Sodium_Compat\crypto_kx_secretkey(), ParagonIE_Sodium_Compat\crypto_kx_server_session_keys(), ParagonIE_Sodium_Compat\crypto_sign_ed25519_sk_to_curve25519(), ParagonIE_Sodium_Core32_SecretStream_State\fromString(), ParagonIE_Sodium_Core_SecretStream_State\fromString(), ParagonIE_Sodium_Core_SecretStream_State\getCombinedNonce(), ParagonIE_Sodium_Core32_SecretStream_State\getCombinedNonce(), ParagonIE_Sodium_Compat\increment(), ParagonIE_Sodium_Core32_SecretStream_State\rekey(), ParagonIE_Sodium_Core_SecretStream_State\rekey(), ParagonIE_Sodium_Crypto32\secretstream_xchacha20poly1305_init_pull(), ParagonIE_Sodium_Crypto\secretstream_xchacha20poly1305_init_pull(), ParagonIE_Sodium_Crypto32\secretstream_xchacha20poly1305_init_push(), ParagonIE_Sodium_Crypto\secretstream_xchacha20poly1305_init_push(), ParagonIE_Sodium_Compat\unpad(), ParagonIE_Sodium_Core32_SecretStream_State\xorNonce(), et ParagonIE_Sodium_Core_SecretStream_State\xorNonce().

◆ verify_16()

static verify_16 (   $a,
  $b 
)
static

Compare a 16-character byte string in constant time.

Références $b.

◆ verify_32()

static verify_32 (   $a,
  $b 
)
static

Compare a 32-character byte string in constant time.

Références $b.

◆ xorStrings()

static xorStrings (   $a,
  $b 
)
static

Calculate $a ^ $b for two strings.

Références $b.

Référencé par ParagonIE_Sodium_Core_SecretStream_State\xorNonce(), et ParagonIE_Sodium_Core32_SecretStream_State\xorNonce().


La documentation de cette classe a été générée à partir du fichier suivant :