On Wed, Oct 26, 2011 at 10:16 AM, Niels Möller <[email protected]> wrote:

>> It is a useful function and can be used on the accelerated versions of
>> SHA in architectures that support it (i.e. VIA cpus).
> BTW, how does that acceleration work? Would it be possible/practical to
> write a function matching the current _nettle_sha1_compress.

The new VIA CPUs (e.g. nano) provide the compression function, i.e.
the fourth argument in MD_UPDATE. Older models (C5,C7) provide a full
compression functionality. I.e. sha1(x) and you get the result, which
proved not to be entirely useful.

>> btw. the MD_* macros were also proved to be very useful in that case.
> These macros are really intended for internal use only. I'd prefer to
> not export any interfaces like that. If functionality like this should
> be exported at all, I'd be more comfortable with a function interface
> for doing these things.

Aren't they already exported in macros.h?

regards,
Nikos
_______________________________________________
nettle-bugs mailing list
[email protected]
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to