Searched refs:btstack_crypto_cmac (Results 1 – 1 of 1) sorted by relevance
198 static uint8_t btstack_crypto_cmac_get_byte(btstack_crypto_aes128_cmac_t * btstack_crypto_cmac, uin… in btstack_crypto_cmac_get_byte() argument199 if (btstack_crypto_cmac->btstack_crypto.operation == BTSTACK_CRYPTO_CMAC_GENERATOR){ in btstack_crypto_cmac_get_byte()200 return (*btstack_crypto_cmac->data.get_byte_callback)(pos); in btstack_crypto_cmac_get_byte()202 return btstack_crypto_cmac->data.message[pos]; in btstack_crypto_cmac_get_byte()221 static void btstack_crypto_cmac_calc(btstack_crypto_aes128_cmac_t * btstack_crypto_cmac) { in btstack_crypto_cmac_calc() argument225 btstack_aes128_calc(btstack_crypto_cmac->key, zero, k0); in btstack_crypto_cmac_calc()228 uint16_t cmac_block_count = (btstack_crypto_cmac->size + 15) / 16; in btstack_crypto_cmac_calc()244 … cmac_y[i] = cmac_x[i] ^ btstack_crypto_cmac_get_byte(btstack_crypto_cmac, (block*16) + i); in btstack_crypto_cmac_calc()246 btstack_aes128_calc(btstack_crypto_cmac->key, cmac_y, cmac_x); in btstack_crypto_cmac_calc()251 …bool last_block_complete = btstack_crypto_cmac->size != 0 && (btstack_crypto_cmac->size & 0x0f) ==… in btstack_crypto_cmac_calc()[all …]