chacha counters in random.c

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

 



commit e192be9d9a30555aae2ca1dc3aad37cba484cd4a

+       chacha20_block(&crng->state[0], out);
+       if (crng->state[12] == 0)
+               crng->state[13]++;

Did you mean 
+       if (++crng->state[12] == 0)

?

-- 
Do what you love because life is too short for anything else.
https://samifar.in/

--
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