On Thu, 2018-02-15 at 09:45 +0100, Nikos Mavrogiannopoulos wrote:
On Thu, 2018-02-15 at 07:53 +0100, Niels Möller wrote:
Nikos Mavrogiannopoulos nmav@redhat.com writes:
+@acronym{CMAC} is a message authentication code based on CBC encryption +mode. It is suitable for systems where block ciphers are preferrable +and perform better than hash functions. @acronym{CMAC} is specified in +@cite{RFC4493}. The secret key is always 128 bits (16 octets).
Should be "block size", not "secret key", right?
Right. Updated patch (and merged all), to include this fix, and the naming of variables (including changing out to dst).
While using that code, I realized that the CMAC128_UPDATE was misusing the 'data' field. In the attached patch I've renamed it to 'src' to avoid ambiguities.
regards, Nikos