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],
) -> LogosSeq<i64>
Expand description

chacha20Encrypt(key, nonce, counter, data)data ⊕ keystream. The cipher; the AEAD flow in Logos calls it for both the Poly1305 one-time key (counter 0 over 32 zeros) and the payload (counter 1).