[PATCH v2 2/2] Use new xxx_compress in place of COMPRESS macro

2022-06-01 Thread Corentin Labbe
COMPRESS macro and sha256_compress/sha512_compress do the same thing, so replace COMPRESS by the later. Signed-off-by: Corentin Labbe --- sha256.c | 8 +++- sha512.c | 8 +++- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/sha256.c b/sha256.c index ed11d801..91a4db7c 100

Re: [PATCH v2 2/2] Use new xxx_compress in place of COMPRESS macro

2022-06-09 Thread Niels Möller
Corentin Labbe writes: > COMPRESS macro and sha256_compress/sha512_compress do the same thing, > so replace COMPRESS by the later. This second patch generates lots of pointer type warnings, so I've done it slightly differently. Pushed your first patch and followup changes to a branch export-sha2

Re: [PATCH v2 2/2] Use new xxx_compress in place of COMPRESS macro

2022-06-14 Thread Corentin Labbe
Le Thu, Jun 09, 2022 at 06:47:12PM +0200, Niels Möller a écrit : > Corentin Labbe writes: > > > COMPRESS macro and sha256_compress/sha512_compress do the same thing, > > so replace COMPRESS by the later. > > This second patch generates lots of pointer type warnings, so I've done > it slightly di

Re: [PATCH v2 2/2] Use new xxx_compress in place of COMPRESS macro

2022-06-24 Thread Corentin Labbe
Le Thu, Jun 09, 2022 at 06:47:12PM +0200, Niels Möller a écrit : > Corentin Labbe writes: > > > COMPRESS macro and sha256_compress/sha512_compress do the same thing, > > so replace COMPRESS by the later. > > This second patch generates lots of pointer type warnings, so I've done > it slightly di

Re: [PATCH v2 2/2] Use new xxx_compress in place of COMPRESS macro

2022-06-25 Thread Niels Möller
Corentin Labbe writes: > Does this is what you want ? > --- a/nettle.texinfo > +++ b/nettle.texinfo > @@ -929,6 +929,13 @@ This function also resets the context in the same way as > @code{md5_init}. > @end deftypefun > > +@deftypefun void md5_compress (uint32_t *@var{state}, uint8_t *@var{inp