summaryrefslogtreecommitdiff
path: root/nettle-internal.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-02-10 19:26:51 +0100
committerNiels Möller <nisse@lysator.liu.se>2014-02-10 19:26:51 +0100
commit764a4813828e85b47cdd955c2095e2080160b4df (patch)
tree4bc904e6da61e6a32361ef730649fcd703c37717 /nettle-internal.c
parentdb9a1b61a13ca2d2d8003b6ff9c9cd7f398ea7ac (diff)
downloadnettle-764a4813828e85b47cdd955c2095e2080160b4df.tar.gz
Renamed chacha_set_iv to chacha_set_nonce.
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. */