I'm considering moving some macros from macros.h (installad as <nettle/macros.h>) to nettle-internal.h (not installed). Only the various READ, WRITE and ROTL macros seem generally useful. Comments?
I'm also looking at the current umac.h. It could be split into umac.h and umac-internal.h, but I'm not sure that's needed; the "internal" definitions are reasonably clean and seem unlikely to cause problems.
Regards, /Niels
On Tue, Apr 16, 2013 at 11:43 AM, Niels Möller nisse@lysator.liu.se wrote:
I'm considering moving some macros from macros.h (installad as <nettle/macros.h>) to nettle-internal.h (not installed). Only the various READ, WRITE and ROTL macros seem generally useful. Comments?
I use some of these macros in gnutls (in the via padlock code). I think they are the MD_* ones. If you remove them I'll have to duplicate them.
regards, Nikos
Nikos Mavrogiannopoulos n.mavrogiannopoulos@gmail.com writes:
I use some of these macros in gnutls (in the via padlock code). I think they are the MD_* ones. If you remove them I'll have to duplicate them.
I see. I'll leave them in for now. If we ever have to make any incompatible changes to those macros, we can reconsider moving them.
BTW, with the gnutls padlock code, would it work to use nettle's struct sha1_ctx with a different _sha1_compress?
Regards, /Niels
On Tue, Apr 16, 2013 at 1:12 PM, Niels Möller nisse@lysator.liu.se wrote:
I use some of these macros in gnutls (in the via padlock code). I think they are the MD_* ones. If you remove them I'll have to duplicate them.
I see. I'll leave them in for now. If we ever have to make any incompatible changes to those macros, we can reconsider moving them. BTW, with the gnutls padlock code, would it work to use nettle's struct sha1_ctx with a different _sha1_compress?
I believe that's what I am doing, and that's why I found those macros quite useful. https://gitorious.org/gnutls/gnutls/blobs/master/lib/accelerated/x86/sha-pad...
regards, Nikos
nettle-bugs@lists.lysator.liu.se