Home
last modified time | relevance | path

Searched refs:bt_rand (Results 1 – 25 of 40) sorted by relevance

12

/Zephyr-Core-3.6.0/tests/bluetooth/host/crypto/bt_rand/src/
Dmain.c29 ZTEST_SUITE(bt_rand, NULL, NULL, NULL, NULL, NULL);
41 ZTEST(bt_rand, test_bt_rand_succeeds_host_crypto_prng_disabled) in ZTEST() argument
52 err = bt_rand(buf, buf_len); in ZTEST()
70 ZTEST(bt_rand, test_tc_hmac_prng_generate_succeeds_on_first_call) in ZTEST() argument
81 err = bt_rand(buf, buf_len); in ZTEST()
109 ZTEST(bt_rand, test_tc_hmac_prng_generate_succeeds_on_second_call) in ZTEST() argument
124 err = bt_rand(buf, buf_len); in ZTEST()
Dtest_suite_invalid_inputs.c33 bt_rand(NULL, 1); in ZTEST()
51 bt_rand(buf, 0); in ZTEST()
76 err = bt_rand(buf, buf_len); in ZTEST()
105 err = bt_rand(buf, buf_len); in ZTEST()
138 err = bt_rand(buf, buf_len); in ZTEST()
181 err = bt_rand(buf, buf_len); in ZTEST()
/Zephyr-Core-3.6.0/tests/bluetooth/host/id/mocks/
Dcrypto.h11 #define CRYPTO_FFF_FAKES_LIST(FAKE) FAKE(bt_rand)
13 DECLARE_FAKE_VALUE_FUNC(int, bt_rand, void *, size_t);
Dcrypto.c11 DEFINE_FAKE_VALUE_FUNC(int, bt_rand, void *, size_t);
/Zephyr-Core-3.6.0/tests/bluetooth/audio/mocks/include/
Dcrypto.h14 #define CRYPTO_FFF_FAKES_LIST(FAKE) FAKE(bt_rand)
16 DECLARE_FAKE_VALUE_FUNC(int, bt_rand, void *, size_t);
/Zephyr-Core-3.6.0/tests/bluetooth/audio/mocks/src/
Dcrypto.c10 DEFINE_FAKE_VALUE_FUNC(int, bt_rand, void *, size_t);
/Zephyr-Core-3.6.0/tests/bluetooth/host/crypto/bt_rand/
DCMakeLists.txt10 project(bt_rand) project
/Zephyr-Core-3.6.0/subsys/bluetooth/host/
Dcrypto.c79 int bt_rand(void *buf, size_t len) in bt_rand() function
104 int bt_rand(void *buf, size_t len) in bt_rand() function
Daddr.c23 return bt_rand(addr->a.val, 6); in create_random_addr()
Dhci_ecc.c349 return !bt_rand(dst, len); in default_CSPRNG()
Dsmp.c1048 if (bt_rand(info->csrk, sizeof(info->csrk))) { in smp_br_distribute_keys()
1949 if (bt_rand((void *)&rand, sizeof(rand))) { in legacy_distribute_keys()
2062 if (bt_rand(info->csrk, sizeof(info->csrk))) { in bt_smp_distribute_keys()
2216 if (bt_rand(&passkey, sizeof(passkey))) { in legacy_request_tk()
2555 if (bt_rand(smp->prnd, 16)) { in smp_init()
3628 if (bt_rand(smp->prnd, 16)) { in smp_pairing_random()
3683 if (bt_rand(smp->prnd, 16)) { in smp_pairing_random()
3690 if (bt_rand(smp->prnd, 16)) { in smp_pairing_random()
4102 if (bt_rand(&smp->passkey, sizeof(smp->passkey))) { in display_passkey()
4246 if (bt_rand(smp->prnd, 16)) { in smp_public_key()
[all …]
/Zephyr-Core-3.6.0/subsys/bluetooth/controller/crypto/
Dcrypto.c18 int bt_rand(void *buf, size_t len) in bt_rand() function
/Zephyr-Core-3.6.0/include/zephyr/bluetooth/
Dcrypto.h39 int bt_rand(void *buf, size_t len);
/Zephyr-Core-3.6.0/samples/bluetooth/mesh_provisioner/src/
Dmain.c84 bt_rand(app_key, 16); in setup_cdb()
276 bt_rand(net_key, 16); in bt_ready()
289 bt_rand(dev_key, 16); in bt_ready()
/Zephyr-Core-3.6.0/subsys/bluetooth/common/
Drpa.c38 return bt_rand(buf, len); in internal_rand()
/Zephyr-Core-3.6.0/subsys/bluetooth/mesh/
Dcrypto_tc.c150 return !bt_rand(dst, len); in default_CSPRNG()
Dprov.c127 bt_rand(&value, sizeof(value)); in get_auth_string()
154 bt_rand(&num, sizeof(num)); in get_auth_number()
Dproxy_srv.c551 err = bt_rand(random, 8); in node_id_adv()
571 err = bt_rand(random, 8); in priv_node_id_adv()
592 err = bt_rand(random, 8); in priv_net_id_adv()
Ddelayable_msg.c271 bt_rand(&random_delay, sizeof(uint16_t)); in bt_mesh_delayable_msg_manage()
/Zephyr-Core-3.6.0/subsys/bluetooth/lib/
Dead.c40 err = bt_rand(randomizer, BT_EAD_RANDOMIZER_SIZE); in bt_ead_generate_randomizer()
/Zephyr-Core-3.6.0/samples/boards/reel_board/mesh_badge/src/
Dmesh.c591 err = bt_rand(dev_key, sizeof(dev_key)); in provision_and_configure()
597 err = bt_rand(&addr, sizeof(addr)); in provision_and_configure()
/Zephyr-Core-3.6.0/subsys/bluetooth/mesh/shell/
Dshell.c1191 bt_rand(net_key, 16); in cmd_cdb_create()
1349 bt_rand(dev_key, 16); in cmd_cdb_node_add()
1419 bt_rand(net_key, 16); in cmd_cdb_subnet_add()
1489 bt_rand(app_key, 16); in cmd_cdb_app_key_add()
/Zephyr-Core-3.6.0/tests/bluetooth/mesh/delayable_msg/src/
Dmain.c71 int bt_rand(void *buf, size_t len) in bt_rand() function
/Zephyr-Core-3.6.0/samples/boards/bbc_microbit/pong/src/
Dble.c399 if (bt_rand(&timeout, sizeof(timeout)) < 0) { in adv_timeout()
Dmain.c258 bt_rand(&rnd, sizeof(rnd)); in check_start()

12