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:
parent
cba3ed9ad1
commit
b86150ff0c
19 changed files with 364 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue