LTC_CHACHA_STREAM >> LTC_CHACHA

This commit is contained in:
Karel Miko
2017-04-24 21:55:55 +02:00
parent dd35e86c60
commit 0df0c9b12c
11 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -939,7 +939,7 @@ LTC_MUTEX_PROTO(ltc_cipher_mutex)
/* ---- stream ciphers ---- */
#ifdef LTC_CHACHA_STREAM
#ifdef LTC_CHACHA
typedef struct {
ulong32 input[16];
@@ -957,7 +957,7 @@ int chacha_keystream(chacha_state *st, unsigned char *out, unsigned long outlen)
int chacha_done(chacha_state *st);
int chacha_test(void);
#endif /* LTC_CHACHA_STREAM */
#endif /* LTC_CHACHA */
#ifdef LTC_RC4_STREAM
+5 -5
View File
@@ -191,7 +191,7 @@
#define LTC_CAMELLIA
/* stream ciphers */
#define LTC_CHACHA_STREAM
#define LTC_CHACHA
#define LTC_RC4_STREAM
#define LTC_SOBER128_STREAM
@@ -518,12 +518,12 @@
#error PK requires ASN.1 DER functionality, make sure LTC_DER is enabled
#endif
#if defined(LTC_CHACHA20POLY1305_MODE) && (!defined(LTC_CHACHA_STREAM) || !defined(LTC_POLY1305))
#error LTC_CHACHA20POLY1305_MODE requires LTC_CHACHA_STREAM + LTC_POLY1305
#if defined(LTC_CHACHA20POLY1305_MODE) && (!defined(LTC_CHACHA) || !defined(LTC_POLY1305))
#error LTC_CHACHA20POLY1305_MODE requires LTC_CHACHA + LTC_POLY1305
#endif
#if defined(LTC_CHACHA20_PRNG) && !defined(LTC_CHACHA_STREAM)
#error LTC_CHACHA20_PRNG requires LTC_CHACHA_STREAM
#if defined(LTC_CHACHA20_PRNG) && !defined(LTC_CHACHA)
#error LTC_CHACHA20_PRNG requires LTC_CHACHA
#endif
#if defined(LTC_RC4) && !defined(LTC_RC4_STREAM)