On 04/02/2013 08:35 AM, Niels Möller wrote:
>>> Maybe one could also have a default autoincrementing nonce? >> >> If you do that please don't make it the default. There are several cases >> in DTLS where the nonce isn't simply incrementing (e.g. when receiving >> packets out-of-order). > > I was thinking of _init setting it to zero, and have _digest do post > increment. So then you could chose between Looks ok but I don't like that cycles are wasted in the case one doesn't use it. They are not much but I wouldn't expect that from a low-level library. I think having an other interface to increment any kind of nonce/iv may be more interesting. regards, Nikos _______________________________________________ nettle-bugs mailing list [email protected] http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs
