From: Vsevolod Stakhov Date: Tue, 4 Feb 2014 16:25:02 +0000 (+0000) Subject: Another stupid mistake in random setup. X-Git-Tag: 0.6.9~31 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6f02e4444de5670fe3f4e0c8e49ce05220215e6d;p=rspamd.git Another stupid mistake in random setup. --- 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));