btstack_crypto: fix warning for btstack_crypto_ecc_p256_set_key which is only usable with software ecc

This commit is contained in:
Matthias Ringwald 2019-07-20 16:00:48 +02:00
parent d5f4cd5b52
commit e2424d4022

View File

@ -1211,6 +1211,9 @@ void btstack_crypto_ecc_p256_set_key(const uint8_t * public_key, const uint8_t *
memcpy(btstack_crypto_ecc_p256_d, private_key, 32);
memcpy(btstack_crypto_ecc_p256_public_key, public_key, 64);
btstack_crypto_ecc_p256_key_generation_state = ECC_P256_KEY_GENERATION_DONE;
#else
UNUSED(public_key);
UNUSED(private_key);
#endif
}
// Unit testing