sodium_crypto_secretstream_xchacha20poly1305_pull
sodium_crypto_secretstream_xchacha20poly1305_pull
Decrypt a chunk of data from an encrypted stream
**sodium_crypto_secretstream_xchacha20poly1305_pull** string $state string $ciphertext string $additional_data
Decrypt a chunk of data from an encrypted stream.
state
See
and
sodium_crypto_secretstream_xchacha20poly1305_init_pull``sodium_crypto_secretstream_xchacha20poly1305_init_push
ciphertextThe ciphertext chunk to decrypt.
additional_dataOptional additional data to include in the authentication tag.
An array with two values:
- ; The decrypted chunk
string - ; An optional tag (if provided during push). Possible values:
int``SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_TAG_MESSAGE``SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_TAG_FINAL``SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_TAG_PUSH``SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_TAG_REKEY