tests: bluetooth: host: Add mocks for crypto.c

Add required mocks to be able to compile/test /bluetooth/host/crypto.c

Signed-off-by: Ahmed Moheb <ahmed.moheb@nordicsemi.no>
This commit is contained in:
Ahmed Moheb 2022-10-19 11:47:37 +02:00 committed by Carles Cufí
commit b86150ff0c
19 changed files with 364 additions and 0 deletions

View file

@ -166,3 +166,10 @@ int bt_encrypt_be(const uint8_t key[16], const uint8_t plaintext[16],
return 0;
}
#ifdef ZTEST_UNITTEST
struct tc_hmac_prng_struct *bt_crypto_get_hmac_prng_instance(void)
{
return &prng;
}
#endif /* ZTEST_UNITTEST */