sodium_crypto_secretstream_xchacha20poly1305_init_pull
PHP 7 >= 7.2.0, PHP 8
sodium_crypto_secretstream_xchacha20poly1305_init_pull - Initialize a secretstream context for decryption
Manual
sodium_crypto_secretstream_xchacha20poly1305_init_pull(
string$header,
string$key ): string
Initialize a secretstream context for decryption.
Parameters
- header
-
The header of the secretstream. This should be one of the values produced by sodium_crypto_secretstream_xchacha20poly1305_init_push.
- key
-
Encryption key (256-bit).
Return Values
Secretstream state.