Re: chacha counters in random.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Sonntag, 9. Oktober 2016, 20:16:27 CEST schrieb Sami Farin:

Hi Sami,

> commit e192be9d9a30555aae2ca1dc3aad37cba484cd4a
> 
> +       chacha20_block(&crng->state[0], out);
> +       if (crng->state[12] == 0)
> +               crng->state[13]++;
> 
> Did you mean
> +       if (++crng->state[12] == 0)

Please see chacha20_block at the end:

        state[12]++;

I would guess that this is the increment you are looking for.

Ciao
Stephan
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux