From 6f02e4444de5670fe3f4e0c8e49ce05220215e6d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 4 Feb 2014 16:25:02 +0000 Subject: [PATCH] Another stupid mistake in random setup. --- src/dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dns.c b/src/dns.c index 70c22977d..5bd7766d6 100644 --- a/src/dns.c +++ b/src/dns.c @@ -79,7 +79,7 @@ dns_permutor_init (struct dns_permutor *p) /* Setup ctx */ chacha_keysetup (&p->ctx, p->perm_buf, PERMUTOR_KSIZE * 8, 0); - chacha_ivsetup (&p->ctx, p->perm_buf + PERMUTOR_KSIZE * 8); + chacha_ivsetup (&p->ctx, p->perm_buf + PERMUTOR_KSIZE); chacha_encrypt_bytes (&p->ctx, p->perm_buf, p->perm_buf, sizeof (p->perm_buf)); -- 2.39.5