summaryrefslogtreecommitdiff
path: root/libs/libsodium/src/crypto_stream/salsa20/stream_salsa20.h
blob: 0b5f3ab184a2a011d57733e5ef469fd7db5d7cb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

#ifndef stream_salsa20_H
#define stream_salsa20_H

#include <stdint.h>

#include "private/quirks.h"

typedef struct crypto_stream_salsa20_implementation {
    int (*stream)(unsigned char *c, unsigned long long clen,
                  const unsigned char *n, const unsigned char *k);
    int (*stream_xor_ic)(unsigned char *c, const unsigned char *m,
                         unsigned long long mlen,
                         const unsigned char *n, uint64_t ic,
                         const unsigned char *k);
} crypto_stream_salsa20_implementation;

#endif