Lines Matching refs:btstack_crypto
183 static void btstack_crypto_done(btstack_crypto_t * btstack_crypto){ in btstack_crypto_done() argument
185 (*btstack_crypto->context_callback.callback)(btstack_crypto->context_callback.context); in btstack_crypto_done()
199 if (btstack_crypto_cmac->btstack_crypto.operation == BTSTACK_CRYPTO_CMAC_GENERATOR){ in btstack_crypto_cmac_get_byte()
389 …(*btstack_crypto_cmac->btstack_crypto.context_callback.callback)(btstack_crypto_cmac->btstack_cryp… in btstack_crypto_cmac_handle_encryption_result()
619 btstack_crypto_done(&btstack_crypto_ccm->btstack_crypto); in btstack_crypto_ccm_next_block()
634 btstack_crypto_done(&btstack_crypto_ccm->btstack_crypto); in btstack_crypto_ccm_handle_s0()
648 switch (btstack_crypto_ccm->btstack_crypto.operation){ in btstack_crypto_ccm_handle_sn()
680 switch (btstack_crypto_ccm->btstack_crypto.operation){ in btstack_crypto_ccm_handle_x1()
702 switch (btstack_crypto_ccm->btstack_crypto.operation){ in btstack_crypto_ccm_handle_xn()
817 btstack_crypto_done(&btstack_crypto_ccm->btstack_crypto); in btstack_crypto_ccm_calc_aad_xn()
862 …btstack_crypto_t * btstack_crypto = (btstack_crypto_t*) btstack_linked_list_get_first_item(&btstac… in btstack_crypto_run() local
863 switch (btstack_crypto->operation){ in btstack_crypto_run()
869 btstack_crypto_aes128 = (btstack_crypto_aes128_t *) btstack_crypto; in btstack_crypto_run()
872 btstack_crypto_done(btstack_crypto); in btstack_crypto_run()
880 btstack_crypto_cmac = (btstack_crypto_aes128_cmac_t *) btstack_crypto; in btstack_crypto_run()
883 btstack_crypto_done(btstack_crypto); in btstack_crypto_run()
897 btstack_crypto_ccm = (btstack_crypto_ccm_t *) btstack_crypto; in btstack_crypto_run()
927 …btstack_crypto_ccm_calc_xn(btstack_crypto_ccm, (btstack_crypto->operation == BTSTACK_CRYPTO_CCM_EN… in btstack_crypto_run()
936 btstack_crypto_ec_p192 = (btstack_crypto_ecc_p256_t *) btstack_crypto; in btstack_crypto_run()
944 …(*btstack_crypto_ec_p192->btstack_crypto.context_callback.callback)(btstack_crypto_ec_p192->btstac… in btstack_crypto_run()
971 btstack_crypto_ec_p192 = (btstack_crypto_ecc_p256_t *) btstack_crypto; in btstack_crypto_run()
976 …(*btstack_crypto_ec_p192->btstack_crypto.context_callback.callback)(btstack_crypto_ec_p192->btstac… in btstack_crypto_run()
993 …btstack_crypto_t * btstack_crypto = (btstack_crypto_t*) btstack_linked_list_get_first_item(&btstac… in btstack_crypto_handle_random_data() local
995 if (!btstack_crypto) return; in btstack_crypto_handle_random_data()
996 switch (btstack_crypto->operation){ in btstack_crypto_handle_random_data()
998 btstack_crypto_random = (btstack_crypto_random_t*) btstack_crypto; in btstack_crypto_handle_random_data()
1007 …(*btstack_crypto_random->btstack_crypto.context_callback.callback)(btstack_crypto_random->btstack_… in btstack_crypto_handle_random_data()
1036 …btstack_crypto_t * btstack_crypto = (btstack_crypto_t*) btstack_linked_list_get_first_item(&btstac… in btstack_crypto_handle_encryption_result() local
1037 if (!btstack_crypto) return; in btstack_crypto_handle_encryption_result()
1038 switch (btstack_crypto->operation){ in btstack_crypto_handle_encryption_result()
1042 btstack_crypto_done(btstack_crypto); in btstack_crypto_handle_encryption_result()
1147 …if (btstack_crypto_ec_p192->btstack_crypto.operation != BTSTACK_CRYPTO_ECC_P256_GENERATE_KEY) brea… in btstack_crypto_event_handler()
1158 …if (btstack_crypto_ec_p192->btstack_crypto.operation != BTSTACK_CRYPTO_ECC_P256_CALCULATE_DHKEY) b… in btstack_crypto_event_handler()
1170 …(*btstack_crypto_ec_p192->btstack_crypto.context_callback.callback)(btstack_crypto_ec_p192->btstac… in btstack_crypto_event_handler()
1187 request->btstack_crypto.context_callback.callback = callback; in btstack_crypto_random_generate()
1188 request->btstack_crypto.context_callback.context = callback_arg; in btstack_crypto_random_generate()
1189 request->btstack_crypto.operation = BTSTACK_CRYPTO_RANDOM; in btstack_crypto_random_generate()
1197 request->btstack_crypto.context_callback.callback = callback; in btstack_crypto_aes128_encrypt()
1198 request->btstack_crypto.context_callback.context = callback_arg; in btstack_crypto_aes128_encrypt()
1199 request->btstack_crypto.operation = BTSTACK_CRYPTO_AES128; in btstack_crypto_aes128_encrypt()
1208 request->btstack_crypto.context_callback.callback = callback; in btstack_crypto_aes128_cmac_generator()
1209 request->btstack_crypto.context_callback.context = callback_arg; in btstack_crypto_aes128_cmac_generator()
1210 request->btstack_crypto.operation = BTSTACK_CRYPTO_CMAC_GENERATOR; in btstack_crypto_aes128_cmac_generator()
1220 request->btstack_crypto.context_callback.callback = callback; in btstack_crypto_aes128_cmac_message()
1221 request->btstack_crypto.context_callback.context = callback_arg; in btstack_crypto_aes128_cmac_message()
1222 request->btstack_crypto.operation = BTSTACK_CRYPTO_CMAC_MESSAGE; in btstack_crypto_aes128_cmac_message()
1232 request->btstack_crypto.context_callback.callback = callback; in btstack_crypto_aes128_cmac_zero()
1233 request->btstack_crypto.context_callback.context = callback_arg; in btstack_crypto_aes128_cmac_zero()
1234 request->btstack_crypto.operation = BTSTACK_CRYPTO_CMAC_MESSAGE; in btstack_crypto_aes128_cmac_zero()
1249 request->btstack_crypto.context_callback.callback = callback; in btstack_crypto_ecc_p256_generate_key()
1250 request->btstack_crypto.context_callback.context = callback_arg; in btstack_crypto_ecc_p256_generate_key()
1251 request->btstack_crypto.operation = BTSTACK_CRYPTO_ECC_P256_GENERATE_KEY; in btstack_crypto_ecc_p256_generate_key()
1258 request->btstack_crypto.context_callback.callback = callback; in btstack_crypto_ecc_p256_calculate_dhkey()
1259 request->btstack_crypto.context_callback.context = callback_arg; in btstack_crypto_ecc_p256_calculate_dhkey()
1260 request->btstack_crypto.operation = BTSTACK_CRYPTO_ECC_P256_CALCULATE_DHKEY; in btstack_crypto_ecc_p256_calculate_dhkey()
1315 request->btstack_crypto.context_callback.callback = callback; in btstack_crypto_ccm_digest()
1316 request->btstack_crypto.context_callback.context = callback_arg; in btstack_crypto_ccm_digest()
1317 request->btstack_crypto.operation = BTSTACK_CRYPTO_CCM_DIGEST_BLOCK; in btstack_crypto_ccm_digest()
1332 request->btstack_crypto.context_callback.callback = callback; in btstack_crypto_ccm_encrypt_block()
1333 request->btstack_crypto.context_callback.context = callback_arg; in btstack_crypto_ccm_encrypt_block()
1334 request->btstack_crypto.operation = BTSTACK_CRYPTO_CCM_ENCRYPT_BLOCK; in btstack_crypto_ccm_encrypt_block()
1346 request->btstack_crypto.context_callback.callback = callback; in btstack_crypto_ccm_decrypt_block()
1347 request->btstack_crypto.context_callback.context = callback_arg; in btstack_crypto_ccm_decrypt_block()
1348 request->btstack_crypto.operation = BTSTACK_CRYPTO_CCM_DECRYPT_BLOCK; in btstack_crypto_ccm_decrypt_block()