chacha_prng_desc > chacha20_prng_desc

This commit is contained in:
Karel Miko 2017-04-03 19:52:03 +02:00
parent 08a028ab04
commit ce37498ec6
3 changed files with 4 additions and 4 deletions

View File

@ -175,7 +175,7 @@ int chacha_prng_done(prng_state *prng);
int chacha_prng_export(unsigned char *out, unsigned long *outlen, prng_state *prng);
int chacha_prng_import(const unsigned char *in, unsigned long inlen, prng_state *prng);
int chacha_prng_test(void);
extern const struct ltc_prng_descriptor chacha_prng_desc;
extern const struct ltc_prng_descriptor chacha20_prng_desc;
#endif
#ifdef LTC_SPRNG

View File

@ -11,7 +11,7 @@
#ifdef LTC_CHACHA20_PRNG
const struct ltc_prng_descriptor chacha_prng_desc =
const struct ltc_prng_descriptor chacha20_prng_desc =
{
"chacha",
sizeof(chacha_state),

View File

@ -331,7 +331,7 @@ static void _unregister_all(void)
unregister_prng(&rc4_desc);
#endif
#ifdef LTC_CHACHA
unregister_prng(&chacha_prng_desc);
unregister_prng(&chacha20_prng_desc);
#endif
#ifdef LTC_SOBER128
unregister_prng(&sober128_desc);
@ -501,7 +501,7 @@ register_prng(&fortuna_desc);
register_prng(&rc4_desc);
#endif
#ifdef LTC_CHACHA
register_prng(&chacha_prng_desc);
register_prng(&chacha20_prng_desc);
#endif
#ifdef LTC_SOBER128
register_prng(&sober128_desc);