Skip to main content

chacha20_encrypt_seq

Function chacha20_encrypt_seq 

Source
pub fn chacha20_encrypt_seq(
    key: &[i64],
    nonce: &[i64],
    counter: i64,
    data: &[i64],
) -> Result<LogosSeq<i64>, String>
Expand description

chacha20Encrypt(key, nonce, counter, data) → data ⊕ keystream (RFC 8439 §2.4): a 32-byte key, a 12-byte nonce, and a block counter the data’s blocks stay inside of.