Skip to main content

crypto_secretstream_xchacha20poly1305_init_pull

Function crypto_secretstream_xchacha20poly1305_init_pull 

Source
pub fn crypto_secretstream_xchacha20poly1305_init_pull(
    state: &mut State,
    header: &Header,
    key: &Key,
)
Expand description

Initializes a pull stream for streaming decryption.

Initializes state using key and a header returned by crypto_secretstream_xchacha20poly1305_init_push.

Compatible with libsodium’s crypto_secretstream_xchacha20poly1305_init_pull.