[lkml]   [2018]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH net-next v6 03/23] zinc: ChaCha20 generic C implementation and selftest
Jason A. Donenfeld <> wrote:
> This implements the ChaCha20 permutation as a single C statement, by way
> of the comma operator, which the compiler is able to simplify
> terrifically.
> Information:
> Signed-off-by: Jason A. Donenfeld <>
> Cc: Samuel Neves <>
> Cc: Andy Lutomirski <>
> Cc: Greg KH <>
> Cc: Jean-Philippe Aumasson <>

I don't have any problems with this interface.

However, I'm very unhappy about the fact that this adds another
copy of the chacha20 implementation to the kernel. Either this
is better than the one that we already have or it isn't.

So if it's better please replace the existing chacha20 C
implementation with this or otherwise just adapt the existing
implementation to this interface.

If we're replacing the existing one then you can either replace
it directly within this patch or in a subsequent patch but please
do it in the same series because otherwise we could wind up with
two implementations for years to come.

Email: Herbert Xu <>
Home Page:
PGP Key:

 \ /
  Last update: 2018-10-02 05:16    [W:0.378 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site