ParagonIE_Sodium_Core_SecretStream_State

Class ParagonIE_Sodium_Core_SecretStream_State

package

Default

Methods

ParagonIE_Sodium_Core_SecretStream_State constructor.

__construct(string $key,string|null $nonce = null)

Arguments

$key

string

$nonce

string|null

counterReset

counterReset(): self

Response

self

fromString

fromString(string $string): self
static

Arguments

$string

string

Response

self

getCombinedNonce

getCombinedNonce(): string

Response

string

getCounter

getCounter(): string

Response

string

getKey

getKey(): string

Response

string

getNonce

getNonce(): string

Response

string

incrementCounter

incrementCounter(): self

Response

self

needsRekey

needsRekey(): boolean

Response

boolean

rekey

rekey(string $newKeyAndNonce): self

Arguments

$newKeyAndNonce

string

Response

self

toString

toString(): string

Response

string

xorNonce

xorNonce(string $str): self

Arguments

$str

string

Response

self

Properties

key

key :string
var

Type(s)

string

counter

counter :integer
var

Type(s)

integer

nonce

nonce :string
var

Type(s)

string

_pad

_pad :string
var

Type(s)

string