Loading system/stack/crypto_toolbox/aes_cmac.cc +2 −1 Original line number Original line Diff line number Diff line Loading @@ -180,7 +180,8 @@ static void cmac_generate_subkey(const Octet16& key) { * length - length of the input in byte. * length - length of the input in byte. */ */ Octet16 aes_cmac(const Octet16& key, const uint8_t* input, uint16_t length) { Octet16 aes_cmac(const Octet16& key, const uint8_t* input, uint16_t length) { uint16_t len, diff; uint32_t len; uint16_t diff; /* n is number of rounds */ /* n is number of rounds */ uint16_t n = (length + OCTET16_LEN - 1) / OCTET16_LEN; uint16_t n = (length + OCTET16_LEN - 1) / OCTET16_LEN; Loading Loading
system/stack/crypto_toolbox/aes_cmac.cc +2 −1 Original line number Original line Diff line number Diff line Loading @@ -180,7 +180,8 @@ static void cmac_generate_subkey(const Octet16& key) { * length - length of the input in byte. * length - length of the input in byte. */ */ Octet16 aes_cmac(const Octet16& key, const uint8_t* input, uint16_t length) { Octet16 aes_cmac(const Octet16& key, const uint8_t* input, uint16_t length) { uint16_t len, diff; uint32_t len; uint16_t diff; /* n is number of rounds */ /* n is number of rounds */ uint16_t n = (length + OCTET16_LEN - 1) / OCTET16_LEN; uint16_t n = (length + OCTET16_LEN - 1) / OCTET16_LEN; Loading