Statement on glibc/iconv Vulnerability

sodium_crypto_stream_xchacha20

(PHP 8 >= 8.1.0)

sodium_crypto_stream_xchacha20秘密鍵と nonce を、疑似ランダムなバイト列の鍵ストリームに展開する

説明

sodium_crypto_stream_xchacha20(int $length, string $nonce, string $key): string

keynonce を 疑似ランダムなバイト列の鍵ストリームに展開します。

パラメータ

length

バイト列の長さ。

nonce

24バイト長の nonce。

key

秘密鍵。 sodium_crypto_stream_xchacha20_keygen() によって生成されたものです。

戻り値

sodium_crypto_stream_xchacha20_xor() で使う、疑似ランダムなバイト列のストリームを返します。

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top