On 02/07/2011 10:26 AM, Niels Möller wrote:
> I haven't yet made up my mind on this, but let me explain the reason
> for having these pointers as function arguments. The idea is that
> context structs in nettle should be non-magic with no pointers, so
> that it can be copied or relocated in memory at will. Say we
> implement gcm_aes as

What I was wondering is how would you think of implementing the
cpu-specific optimizations in assembly? What I had in mind is that the
_init function would detect the particular instructions
present and set some function pointers to the structure that
will assist the operations such as gf_mul to select the proper
variant... However as it seems, this is not how it can be done
if function pointers are not stored...

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

Reply via email to