Home
last modified time | relevance | path

Searched refs:Octet16 (Results 1 – 25 of 90) sorted by relevance

1234

/system/bt/test/mock/
Dmock_stack_crypto_toolbox.h57 Octet16 octet16;
58 std::function<Octet16(const Octet16& w, std::array<uint8_t, 4> keyid)> body{
59 [this](const Octet16& w, std::array<uint8_t, 4> keyid) {
62 Octet16 operator()(const Octet16& w, std::array<uint8_t, 4> keyid) { in operator()
71 Octet16 octet16;
72 std::function<Octet16(const Octet16& salt, const Octet16& w)> body{
73 [this](const Octet16& salt, const Octet16& w) { return octet16; }};
74 Octet16 operator()(const Octet16& salt, const Octet16& w) { in operator()
83 Octet16 octet16;
84 std::function<Octet16(const uint8_t* u, const uint8_t* v, const Octet16& x,
[all …]
Dmock_stack_crypto_toolbox.cc60 Octet16 h6(const Octet16& w, std::array<uint8_t, 4> keyid) { in h6()
64 Octet16 h7(const Octet16& salt, const Octet16& w) { in h7()
68 Octet16 f4(const uint8_t* u, const uint8_t* v, const Octet16& x, uint8_t z) { in f4()
72 void f5(const uint8_t* w, const Octet16& n1, const Octet16& n2, uint8_t* a1, in f5()
73 uint8_t* a2, Octet16* mac_key, Octet16* ltk) { in f5()
77 Octet16 f6(const Octet16& w, const Octet16& n1, const Octet16& n2, in f6()
78 const Octet16& r, uint8_t* iocap, uint8_t* a1, uint8_t* a2) { in f6()
82 uint32_t g2(const uint8_t* u, const uint8_t* v, const Octet16& x, in g2()
83 const Octet16& y) { in g2()
87 Octet16 ltk_to_link_key(const Octet16& ltk, bool use_h7) { in ltk_to_link_key()
[all …]
Dmock_stack_crypto_toolbox_aes_cmac.cc35 Octet16 aes_cmac(const Octet16& key, const uint8_t* input, uint16_t length) { in aes_cmac()
37 Octet16 octet16; in aes_cmac()
Dmock_btif_dm.cc107 Octet16* p_er, in btif_dm_get_ble_local_keys()
166 bool btif_dm_proc_rmt_oob(const RawAddress& bd_addr, Octet16* p_c, in btif_dm_proc_rmt_oob()
167 Octet16* p_r) { in btif_dm_proc_rmt_oob()
173 const Octet16& c, const Octet16& r) { in btif_dm_proc_loc_oob()
/system/bt/gd/crypto_toolbox/
Dcrypto_toolbox.h27 using Octet16 = std::array<uint8_t, OCTET16_LEN>; variable
29 Octet16 c1(
30 const Octet16& k,
31 const Octet16& r,
38 Octet16 s1(const Octet16& k, const Octet16& r1, const Octet16& r2);
40 extern Octet16 aes_128(const Octet16& key, const Octet16& message);
41 extern Octet16 aes_cmac(const Octet16& key, const uint8_t* message, uint16_t length);
42 extern Octet16 f4(uint8_t* u, uint8_t* v, const Octet16& x, uint8_t z);
44 …uint8_t* w, const Octet16& n1, const Octet16& n2, uint8_t* a1, uint8_t* a2, Octet16* mac_key, Octe…
45 extern Octet16 f6(
[all …]
Daes_cmac.cc44 Octet16 const_Rb{0x87, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00…
49 static void xor_128(Octet16* a, const Octet16& b) { in xor_128()
61 Octet16 aes_128(const Octet16& key, const Octet16& message) { in aes_128()
62 Octet16 key_reversed; in aes_128()
63 Octet16 message_reversed; in aes_128()
64 Octet16 output; in aes_128()
80 static void padding(Octet16* dest, uint8_t length) { in padding()
99 static Octet16 cmac_aes_k_calculate(const Octet16& key) { in cmac_aes_k_calculate()
100 Octet16 output; in cmac_aes_k_calculate()
101 Octet16 x{0}; // zero initialized in cmac_aes_k_calculate()
[all …]
Dcrypto_toolbox.cc30 Octet16 h6(const Octet16& w, std::array<uint8_t, 4> keyid) { in h6()
34 Octet16 h7(const Octet16& salt, const Octet16& w) { in h7()
38 Octet16 f4(uint8_t* u, uint8_t* v, const Octet16& x, uint8_t z) { in f4()
53 static Octet16 calculate_mac_key_or_ltk( in calculate_mac_key_or_ltk()
54 const Octet16& t, in calculate_mac_key_or_ltk()
57 const Octet16& n1, in calculate_mac_key_or_ltk()
58 const Octet16& n2, in calculate_mac_key_or_ltk()
78 void f5(uint8_t* w, const Octet16& n1, const Octet16& n2, uint8_t* a1, uint8_t* a2, Octet16* mac_ke… in f5()
83 …const Octet16 salt{0xBE, 0x83, 0x60, 0x5A, 0xDB, 0x0B, 0x37, 0x60, 0x38, 0xA5, 0xF5, 0xAA, 0x91, 0… in f5()
84 Octet16 t = aes_cmac(salt, w, OCTET32_LEN); in f5()
[all …]
Dcrypto_toolbox_test.cc54Octet16 k{0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f… in TEST()
56Octet16 aes_cmac_k_m{0xbb, 0x1d, 0x69, 0x29, 0xe9, 0x59, 0x37, 0x28, 0x7f, 0xa3, 0x7d, 0x12, 0x9b,… in TEST()
62 Octet16 output = aes_cmac(k, nullptr /* empty message */, 0); in TEST()
74Octet16 k{0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f… in TEST()
76Octet16 m = {0x6b, 0xc1, 0xbe, 0xe2, 0x2e, 0x40, 0x9f, 0x96, 0xe9, 0x3d, 0x7e, 0x11, 0x73, 0x93, 0… in TEST()
78Octet16 aes_cmac_k_m{0x07, 0x0a, 0x16, 0xb4, 0x6b, 0x4d, 0x41, 0x44, 0xf7, 0x9b, 0xdd, 0x9d, 0xd0,… in TEST()
85 Octet16 output = aes_cmac(k, m); in TEST()
98Octet16 k{0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f… in TEST()
104Octet16 aes_cmac_k_m{0xdf, 0xa6, 0x67, 0x47, 0xde, 0x9a, 0xe6, 0x30, 0x30, 0xca, 0x32, 0x61, 0x14,… in TEST()
111 Octet16 output = aes_cmac(k, m, sizeof(m)); in TEST()
[all …]
/system/bt/stack/crypto_toolbox/
Dcrypto_toolbox.h24 extern Octet16 aes_128(const Octet16& key, const Octet16& message);
25 extern Octet16 aes_cmac(const Octet16& key, const uint8_t* message,
27 extern Octet16 f4(const uint8_t* u, const uint8_t* v, const Octet16& x,
29 extern void f5(const uint8_t* w, const Octet16& n1, const Octet16& n2,
30 uint8_t* a1, uint8_t* a2, Octet16* mac_key, Octet16* ltk);
31 extern Octet16 f6(const Octet16& w, const Octet16& n1, const Octet16& n2,
32 const Octet16& r, uint8_t* iocap, uint8_t* a1, uint8_t* a2);
33 extern Octet16 h6(const Octet16& w, std::array<uint8_t, 4> keyid);
34 extern Octet16 h7(const Octet16& salt, const Octet16& w);
35 extern uint32_t g2(const uint8_t* u, const uint8_t* v, const Octet16& x,
[all …]
Daes_cmac.cc44 Octet16 const_Rb{0x87, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
50 static void xor_128(Octet16* a, const Octet16& b) { in xor_128()
62 Octet16 aes_128(const Octet16& key, const Octet16& message) { in aes_128()
63 Octet16 key_reversed; in aes_128()
64 Octet16 message_reversed; in aes_128()
65 Octet16 output; in aes_128()
81 static void padding(Octet16* dest, uint8_t length) { in padding()
102 static Octet16 cmac_aes_k_calculate(const Octet16& key) { in cmac_aes_k_calculate()
103 Octet16 output; in cmac_aes_k_calculate()
104 Octet16 x{0}; // zero initialized in cmac_aes_k_calculate()
[all …]
Dcrypto_toolbox.cc29 Octet16 h6(const Octet16& w, std::array<uint8_t, 4> keyid) { in h6()
33 Octet16 h7(const Octet16& salt, const Octet16& w) { in h7()
37 Octet16 f4(const uint8_t* u, const uint8_t* v, const Octet16& x, uint8_t z) { in f4()
55 static Octet16 calculate_mac_key_or_ltk(const Octet16& t, uint8_t counter, in calculate_mac_key_or_ltk()
56 uint8_t* key_id, const Octet16& n1, in calculate_mac_key_or_ltk()
57 const Octet16& n2, uint8_t* a1, in calculate_mac_key_or_ltk()
76 void f5(const uint8_t* w, const Octet16& n1, const Octet16& n2, uint8_t* a1, in f5()
77 uint8_t* a2, Octet16* mac_key, Octet16* ltk) { in f5()
83 const Octet16 salt{0xBE, 0x83, 0x60, 0x5A, 0xDB, 0x0B, 0x37, 0x60, in f5()
85 Octet16 t = aes_cmac(salt, w, BT_OCTET32_LEN); in f5()
[all …]
/system/bt/stack/smp/
Dcrypto_toolbox.h25 extern Octet16 smp_calculate_f4(uint8_t* u, uint8_t* v, const Octet16& x,
27 extern uint32_t smp_calculate_g2(uint8_t* u, uint8_t* v, const Octet16& x,
28 const Octet16& y);
29 extern void smp_calculate_f5(uint8_t* w, const Octet16& n1, const Octet16& n2,
30 uint8_t* a1, uint8_t* a2, Octet16* mac_key,
31 Octet16* ltk);
32 extern Octet16 smp_calculate_f6(const Octet16& w, const Octet16& n1,
33 const Octet16& n2, const Octet16& r,
35 extern Octet16 smp_calculate_h6(const Octet16& w, std::array<uint8_t, 4> keyid);
36 extern Octet16 smp_calculate_h7(const Octet16& salt, const Octet16& w);
[all …]
Dsmp_int.h243 Octet16 confirm;
244 Octet16 rconfirm;
245 Octet16 rrand; /* for SC this is peer nonce */
246 Octet16 rand; /* for SC this is local nonce */
249 Octet16 commitment;
250 Octet16 remote_commitment;
251 Octet16 local_random; /* local randomizer - passkey or OOB randomizer */
252 Octet16 peer_random; /* peer randomizer - passkey or OOB randomizer */
253 Octet16 dhkey_check;
254 Octet16 remote_dhkey_check;
[all …]
Dsmp_keys.cc52 static void smp_process_stk(tSMP_CB* p_cb, Octet16* p);
53 static Octet16 smp_calculate_legacy_short_term_key(tSMP_CB* p_cb);
77 inline void smp_debug_print_nbyte_little_endian(const Octet16& p, in smp_debug_print_nbyte_little_endian()
153 Octet16 output; in smp_generate_stk()
178 const Octet16& er = BTM_GetDeviceEncRoot(); in smp_compute_csrk()
253 Octet16 smp_gen_p1_4_confirm(tSMP_CB* p_cb, in smp_gen_p1_4_confirm()
256 Octet16 p1; in smp_gen_p1_4_confirm()
288 Octet16 smp_gen_p2_4_confirm(tSMP_CB* p_cb, const RawAddress& remote_bda) { in smp_gen_p2_4_confirm()
290 Octet16 p2{0}; in smp_gen_p2_4_confirm()
318 tSMP_STATUS smp_calculate_comfirm(tSMP_CB* p_cb, const Octet16& rand, in smp_calculate_comfirm()
[all …]
/system/bt/stack/test/
Dcrypto_toolbox_test.cc59 Octet16 k{0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, in TEST()
62 Octet16 aes_cmac_k_m{0xbb, 0x1d, 0x69, 0x29, 0xe9, 0x59, 0x37, 0x28, in TEST()
69 Octet16 output = aes_cmac(k, nullptr /* empty message */, 0); in TEST()
81 Octet16 k{0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, in TEST()
84 Octet16 m = {0x6b, 0xc1, 0xbe, 0xe2, 0x2e, 0x40, 0x9f, 0x96, in TEST()
87 Octet16 aes_cmac_k_m{0x07, 0x0a, 0x16, 0xb4, 0x6b, 0x4d, 0x41, 0x44, in TEST()
95 Octet16 output = aes_cmac(k, m); in TEST()
108 Octet16 k{0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, in TEST()
116 Octet16 aes_cmac_k_m{0xdf, 0xa6, 0x67, 0x47, 0xde, 0x9a, 0xe6, 0x30, in TEST()
124 Octet16 output = aes_cmac(k, m, sizeof(m)); in TEST()
[all …]
Dstack_smp_test.cc85 extern Octet16 smp_gen_p1_4_confirm(tSMP_CB* p_cb,
88 extern Octet16 smp_gen_p2_4_confirm(tSMP_CB* p_cb,
91 extern tSMP_STATUS smp_calculate_comfirm(tSMP_CB* p_cb, const Octet16& rand,
92 Octet16* output);
96 void dump_uint128(const Octet16& a, char* buffer) { in dump_uint128()
104 void dump_uint128_reverse(const Octet16& a, char* buffer) { in dump_uint128_reverse()
112 void print_uint128(const Octet16& a) { in print_uint128()
119 Octet16 parse_uint128(const char* input) { in parse_uint128()
120 Octet16 output{0}; in parse_uint128()
132 Octet16 rand_{0x57, 0x83, 0xD5, 0x21, 0x56, 0xAD, 0x6F, 0x0E,
[all …]
/system/bt/gd/security/
Dinitial_informations.h42 std::optional<crypto_toolbox::Octet16> remote_ltk;
46 std::optional<crypto_toolbox::Octet16> remote_irk;
47 std::optional<crypto_toolbox::Octet16> remote_signature_key;
48 std::optional<crypto_toolbox::Octet16> remote_link_key; /* BR/EDR Keys */
50 std::optional<crypto_toolbox::Octet16> local_ltk;
53 std::optional<crypto_toolbox::Octet16> local_signature_key;
73 crypto_toolbox::Octet16 c;
74 crypto_toolbox::Octet16 r;
83 crypto_toolbox::Octet16 my_identity_resolving_key;
105 crypto_toolbox::Octet16 le_sc_c; /* LE Secure Connections Confirmation Value */
[all …]
Dpairing_handler_le_legacy.cc70 return Octet16{0}; in LegacyJustWorks()
109 Octet16 tk{0}; in LegacyPasskeyEntry()
124 … const PairingResponseView& pairing_response, const Octet16& tk) { in DoLegacyStage2()
129 Octet16 mrand, srand; in DoLegacyStage2()
138 Octet16 mconfirm = crypto_toolbox::c1( in DoLegacyStage2()
158 Octet16 sconfirm = std::get<PairingConfirmView>(sconfirm_pkt).GetConfirmValue(); in DoLegacyStage2()
172 Octet16 sconfirm_generated = crypto_toolbox::c1( in DoLegacyStage2()
194 Octet16 sconfirm = crypto_toolbox::c1( in DoLegacyStage2()
209 Octet16 mconfirm = std::get<PairingConfirmView>(mconfirm_pkt).GetConfirmValue(); in DoLegacyStage2()
221 Octet16 mconfirm_generated = crypto_toolbox::c1( in DoLegacyStage2()
Dpairing_handler_le.cc124 Octet16 ltk = std::get<Octet16>(stage_2_result); in PairingMain()
146 Octet16 tk = std::get<Octet16>(stage1result); in PairingMain()
154 Octet16 stk = std::get<Octet16>(stage2result); in PairingMain()
203 Octet16 link_key = crypto_toolbox::ltk_to_link_key(*(distributed_keys.remote_ltk), use_h7); in PairingMain()
340 Octet16 my_ltk = bluetooth::os::GenerateRandom<16>(); in DistributeKeys()
344 Octet16 my_irk = i.my_identity_resolving_key; in DistributeKeys()
348 Octet16 my_signature_key{0}; in DistributeKeys()
383 std::optional<Octet16> ltk; /* Legacy only */ in ReceiveKeys()
387 std::optional<Octet16> irk; in ReceiveKeys()
388 std::optional<Octet16> signature_key; in ReceiveKeys()
[all …]
/system/bt/btif/include/
Dbtif_dm.h63 const Octet16& c, const Octet16& r);
64 bool btif_dm_proc_rmt_oob(const RawAddress& bd_addr, Octet16* p_c,
65 Octet16* p_r);
98 Octet16* p_er,
/system/bt/bta/include/
Dbta_dm_co.h95 extern void bta_dm_co_loc_oob(bool valid, const Octet16& c, const Octet16& r);
197 tBTA_DM_BLE_LOCAL_KEY_MASK* p_key_mask, Octet16* p_er,
Dbta_dm_ci.h48 const Octet16& c, const Octet16& r);
/system/bt/stack/include/
Dbtm_ble_api_types.h499 Octet16 ltk;
509 Octet16 csrk;
515 Octet16 ltk;
526 Octet16 csrk;
530 Octet16 irk;
573 Octet16 ir;
574 Octet16 irk;
575 Octet16 dhk;
581 Octet16 er;
/system/bt/gd/security/record/
Dsecurity_record.h129 std::optional<crypto_toolbox::Octet16> remote_ltk;
134 std::optional<crypto_toolbox::Octet16> remote_irk;
135 std::optional<crypto_toolbox::Octet16> remote_signature_key;
137 std::optional<crypto_toolbox::Octet16> local_ltk;
/system/bt/bta/dm/
Dbta_dm_ci.cc43 void bta_dm_ci_rmt_oob(bool accept, const RawAddress& bd_addr, const Octet16& c, in bta_dm_ci_rmt_oob()
44 const Octet16& r) { in bta_dm_ci_rmt_oob()

1234