Browse Source

chacha_prng > chacha20_prng

Karel Miko 8 years ago
parent
commit
2656a040e0
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/headers/tomcrypt_prng.h
  2. 1 1
      src/misc/crypt/crypt_sizes.c

+ 2 - 2
src/headers/tomcrypt_prng.h

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

+ 1 - 1
src/misc/crypt/crypt_sizes.c

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