summaryrefslogtreecommitdiff
path: root/nettle-internal.c
diff options
context:
space:
mode:
Diffstat (limited to 'nettle-internal.c')
-rw-r--r--nettle-internal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nettle-internal.c b/nettle-internal.c
index 6733a3f1..92156982 100644
--- a/nettle-internal.c
+++ b/nettle-internal.c
@@ -77,9 +77,9 @@ nettle_blowfish128 =
static void
chacha_set_key_hack(void *ctx, const uint8_t *key)
{
- static const uint8_t iv[CHACHA_IV_SIZE];
+ static const uint8_t nonce[CHACHA_NONCE_SIZE];
chacha256_set_key (ctx, key);
- chacha_set_iv (ctx, iv);
+ chacha_set_nonce (ctx, nonce);
}
/* Claim zero block size, to classify as a stream cipher. */