chacha_prng > chacha20_prng

This commit is contained in:
Karel Miko 2017-03-30 20:32:14 +02:00
parent 3a05f0331d
commit 2656a040e0
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ struct rc4_prng {
#endif #endif
#ifdef LTC_CHACHA #ifdef LTC_CHACHA
struct chacha_prng { struct chacha20_prng {
chacha_state s; /* chacha state */ chacha_state s; /* chacha state */
unsigned char ent[40]; /* entropy buffer */ unsigned char ent[40]; /* entropy buffer */
unsigned long idx; /* entropy counter */ unsigned long idx; /* entropy counter */
@ -65,7 +65,7 @@ typedef union Prng_state {
struct rc4_prng rc4; struct rc4_prng rc4;
#endif #endif
#ifdef LTC_CHACHA #ifdef LTC_CHACHA
struct chacha_prng chacha; struct chacha20_prng chacha;
#endif #endif
#ifdef LTC_FORTUNA #ifdef LTC_FORTUNA
struct fortuna_prng fortuna; struct fortuna_prng fortuna;

View File

@ -224,7 +224,7 @@ static const crypt_size _crypt_sizes[] = {
_SZ_STRINGIFY_S(fortuna_prng), _SZ_STRINGIFY_S(fortuna_prng),
#endif #endif
#ifdef LTC_CHACHA #ifdef LTC_CHACHA
_SZ_STRINGIFY_S(chacha_prng), _SZ_STRINGIFY_S(chacha20_prng),
#endif #endif
#ifdef LTC_RC4 #ifdef LTC_RC4
_SZ_STRINGIFY_S(rc4_prng), _SZ_STRINGIFY_S(rc4_prng),