typedef struct salsa20_ctx {
salsa20_matrix a;
- octet buf[SALSA20_OUTSZ];
- size_t bufi;
+ octet b[SALSA20_OUTSZ];
+ unsigned off;
} salsa20_ctx;
#define XSALSA20_DEFCTX(name) \
#define xsalsa2012_keysz salsa20_keysz
#define xsalsa208_keysz salsa20_keysz
-const gccipher salsa20, salsa2012, salsa208;
-const gccipher salsa20_ietf, salsa2012_ietf, salsa208_ietf;
-const gccipher xsalsa20, xsalsa2012, xsalsa208;
+extern const gccipher salsa20, salsa2012, salsa208;
+extern const gccipher salsa20_ietf, salsa2012_ietf, salsa208_ietf;
+extern const gccipher xsalsa20, xsalsa2012, xsalsa208;
/*----- Generic random number generator interface -------------------------*/