I looked at recent GCM code and noticed this:

/* FIXME: Should use const for the cipher context. Then needs const for
   nettle_crypt_func, which also rules out using that abstraction for
   arcfour. */
void
gcm_set_key(struct gcm_key *key,
            void *cipher, nettle_crypt_func *f);

However GCM (like CCM) is only specified for block ciphers, and further,
only for 128-bit block ciphers.  Thus I wonder if avoiding use of const
just to let the abstraction support a stream cipher is wise?

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

Reply via email to