Home
last modified time | relevance | path

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

12

/Zephyr-Core-3.5.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.5.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.5.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.5.0/tests/bluetooth/audio/mocks/src/
Dcrypto.c10 DEFINE_FAKE_VALUE_FUNC(int, bt_rand, void *, size_t);
/Zephyr-Core-3.5.0/tests/bluetooth/host/crypto/bt_rand/
DCMakeLists.txt10 project(bt_rand) project
/Zephyr-Core-3.5.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()
1958 if (bt_rand((void *)&rand, sizeof(rand))) { in legacy_distribute_keys()
2071 if (bt_rand(info->csrk, sizeof(info->csrk))) { in bt_smp_distribute_keys()
2225 if (bt_rand(&passkey, sizeof(passkey))) { in legacy_request_tk()
2564 if (bt_rand(smp->prnd, 16)) { in smp_init()
3637 if (bt_rand(smp->prnd, 16)) { in smp_pairing_random()
3692 if (bt_rand(smp->prnd, 16)) { in smp_pairing_random()
3699 if (bt_rand(smp->prnd, 16)) { in smp_pairing_random()
4111 if (bt_rand(&smp->passkey, sizeof(smp->passkey))) { in display_passkey()
4255 if (bt_rand(smp->prnd, 16)) { in smp_public_key()
[all …]
Did.c412 err = bt_rand(nrpa.val, sizeof(nrpa.val)); in bt_id_set_private_addr()
440 err = bt_rand(nrpa.val, sizeof(nrpa.val)); in bt_id_set_adv_private_addr()
1224 err = bt_rand(&bt_dev.irk[id], 16); in id_create()
/Zephyr-Core-3.5.0/subsys/bluetooth/controller/crypto/
Dcrypto.c18 int bt_rand(void *buf, size_t len) in bt_rand() function
/Zephyr-Core-3.5.0/include/zephyr/bluetooth/
Dcrypto.h39 int bt_rand(void *buf, size_t len);
/Zephyr-Core-3.5.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.5.0/subsys/bluetooth/common/
Drpa.c38 return bt_rand(buf, len); in internal_rand()
/Zephyr-Core-3.5.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.c552 err = bt_rand(random, 8); in node_id_adv()
572 err = bt_rand(random, 8); in priv_node_id_adv()
593 err = bt_rand(random, 8); in priv_net_id_adv()
Dprov_device.c247 if (bt_rand(bt_mesh_prov_link.rand, auth_size)) { in send_confirm()
/Zephyr-Core-3.5.0/subsys/bluetooth/lib/
Dead.c40 err = bt_rand(randomizer, BT_EAD_RANDOMIZER_SIZE); in bt_ead_generate_randomizer()
/Zephyr-Core-3.5.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.5.0/subsys/bluetooth/mesh/shell/
Dshell.c1189 bt_rand(net_key, 16); in cmd_cdb_create()
1347 bt_rand(dev_key, 16); in cmd_cdb_node_add()
1417 bt_rand(net_key, 16); in cmd_cdb_subnet_add()
1487 bt_rand(app_key, 16); in cmd_cdb_app_key_add()
/Zephyr-Core-3.5.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