summaryrefslogtreecommitdiff
path: root/libs/libsodium/src/include/sodium/private/chacha20_ietf_ext.h
blob: d03cfd3329480dd7a29587c61dd15ea18cd1a643 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef chacha20_ietf_ext_H
#define chacha20_ietf_ext_H

#include <stdint.h>

/* The ietf_ext variant allows the internal counter to overflow into the IV */

int crypto_stream_chacha20_ietf_ext(unsigned char *c, unsigned long long clen,
                                    const unsigned char *n, const unsigned char *k);

int crypto_stream_chacha20_ietf_ext_xor_ic(unsigned char *c, const unsigned char *m,
                                           unsigned long long mlen,
                                           const unsigned char *n, uint32_t ic,
                                           const unsigned char *k);
#endif