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_SecretStream_State

Fonctions membres publiques

 __construct ($key, $nonce=null)
 
 counterReset ()
 
 getKey ()
 
 getCounter ()
 
 getNonce ()
 
 getCombinedNonce ()
 
 incrementCounter ()
 
 needsRekey ()
 
 rekey ($newKeyAndNonce)
 
 xorNonce ($str)
 
 toString ()
 

Fonctions membres publiques statiques

static fromString ($string)
 

Attributs protégés

 $key
 
 $counter
 
 $nonce
 
 $_pad
 

Description détaillée

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $key,
  $nonce = null 
)

ParagonIE_Sodium_Core_SecretStream_State constructor.

Paramètres
string$key
string | null$nonce

Références $key, et $nonce.

Documentation des fonctions membres

◆ counterReset()

counterReset ( )
Renvoie
self

◆ fromString()

static fromString (   $string)
static
Paramètres
string$string
Renvoie
self

Références $state, et ParagonIE_Sodium_Core_Util\substr().

Référencé par ParagonIE_Sodium_Crypto\secretstream_xchacha20poly1305_rekey().

◆ getCombinedNonce()

getCombinedNonce ( )

◆ getCounter()

getCounter ( )
Renvoie
string

Référencé par getCombinedNonce(), et toString().

◆ getKey()

getKey ( )
Renvoie
string

Références $key.

◆ getNonce()

getNonce ( )
Renvoie
string

Références $nonce, et ParagonIE_Sodium_Core_Util\strlen().

Référencé par getCombinedNonce(), et xorNonce().

◆ incrementCounter()

incrementCounter ( )
Renvoie
self

Références $counter.

◆ needsRekey()

needsRekey ( )
Renvoie
bool

◆ rekey()

rekey (   $newKeyAndNonce)
Paramètres
string$newKeyAndNonce
Renvoie
self

Références ParagonIE_Sodium_Core_Util\substr().

◆ toString()

toString ( )
Renvoie
string

Références $_pad, et getCounter().

◆ xorNonce()

xorNonce (   $str)
Paramètres
string$str
Renvoie
self

Références getNonce(), ParagonIE_Sodium_Core_Util\substr(), et ParagonIE_Sodium_Core_Util\xorStrings().

Documentation des champs

◆ $_pad

$_pad
protected

Référencé par toString().

◆ $counter

$counter
protected

Référencé par incrementCounter().

◆ $key

$key
protected

Référencé par __construct(), et getKey().

◆ $nonce

$nonce
protected

Référencé par __construct(), et getNonce().


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