btstack_crypto.c (6535961a1f105e850ecdf294c128b9fc982ee05a) btstack_crypto.c (ff3cc4a5378c2f681cc9b75cf54d154a12a3051e)
1/*
2 * Copyright (C) 2017 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 632 unchanged lines hidden (view full) ---

641#ifdef ENABLE_ECC_P256
642 btstack_crypto_ecc_p256_t * btstack_crypto_ec_p192;
643#endif
644
645 // stack up and running?
646 if (hci_get_state() != HCI_STATE_WORKING) return;
647
648 // try to do as much as possible
1/*
2 * Copyright (C) 2017 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 632 unchanged lines hidden (view full) ---

641#ifdef ENABLE_ECC_P256
642 btstack_crypto_ecc_p256_t * btstack_crypto_ec_p192;
643#endif
644
645 // stack up and running?
646 if (hci_get_state() != HCI_STATE_WORKING) return;
647
648 // try to do as much as possible
649 while (1){
649 while (true){
650
651 // anything to do?
652 if (btstack_linked_list_empty(&btstack_crypto_operations)) return;
653
654 // already active?
655 if (btstack_crypto_wait_for_hci_result) return;
656
657 // can send a command?

--- 573 unchanged lines hidden ---
650
651 // anything to do?
652 if (btstack_linked_list_empty(&btstack_crypto_operations)) return;
653
654 // already active?
655 if (btstack_crypto_wait_for_hci_result) return;
656
657 // can send a command?

--- 573 unchanged lines hidden ---