Re: [PATCH] crypto: lib/sha256 - return void

2020-05-01 Thread Eric Biggers
On Fri, May 01, 2020 at 02:28:12PM +0200, Christophe Leroy wrote: > > -extern int sha256_update(struct sha256_state *sctx, const u8 *input, > > -unsigned int length); > > -extern int sha256_final(struct sha256_state *sctx, u8 *hash); > > +extern void sha256_update(struct sha256_

Re: [PATCH] crypto: lib/sha256 - return void

2020-05-01 Thread Christophe Leroy
Le 01/05/2020 à 09:13, Eric Biggers a écrit : From: Eric Biggers The SHA-256 / SHA-224 library functions can't fail, so remove the useless return value. Also long as the declarations are being changed anyway, also fix some parameter names in the declarations to match the definitions. Signe

[PATCH] crypto: lib/sha256 - return void

2020-05-01 Thread Eric Biggers
From: Eric Biggers The SHA-256 / SHA-224 library functions can't fail, so remove the useless return value. Also long as the declarations are being changed anyway, also fix some parameter names in the declarations to match the definitions. Signed-off-by: Eric Biggers --- crypto/sha256_generic.