Home
last modified time | relevance | path

Searched refs:n2 (Results 1 – 19 of 19) sorted by relevance

/system/bt/stack/crypto_toolbox/
Dcrypto_toolbox.cc57 const Octet16& n2, uint8_t* a1, in calculate_mac_key_or_ltk() argument
68 it = std::copy(n2.begin(), n2.end(), it); in calculate_mac_key_or_ltk()
76 void f5(const uint8_t* w, const Octet16& n1, const Octet16& n2, uint8_t* a1, in f5() argument
80 << ", N2=" << HexEncode(n2.data(), n2.size()) in f5()
92 *mac_key = calculate_mac_key_or_ltk(t, 0, key_id, n1, n2, a1, a2, length); in f5()
94 *ltk = calculate_mac_key_or_ltk(t, 1, key_id, n1, n2, a1, a2, length); in f5()
100 Octet16 f6(const Octet16& w, const Octet16& n1, const Octet16& n2, in f6() argument
109 << ", N2=" << HexEncode(n2.data(), n2.size()) in f6()
120 it = std::copy(n2.begin(), n2.end(), it); in f6()
Dcrypto_toolbox.h29 extern void f5(const uint8_t* w, const Octet16& n1, const Octet16& n2,
31 extern Octet16 f6(const Octet16& w, const Octet16& n1, const Octet16& n2,
Daes.cc256 uint_8t p1 = x, p2 = BPOLY, n1 = hibit(x), n2 = 0x80, v1 = 1, v2 = 0; in gf_inv() local
262 while (n2 >= n1) /* divide polynomial p2 by p1 */ in gf_inv()
264 n2 /= n1; /* shift smaller polynomial left */ in gf_inv()
265 p2 ^= (p1 * n2) & 0xff; /* and remove from larger one */ in gf_inv()
266 v2 ^= (v1 * n2); /* shift accumulated value and */ in gf_inv()
267 n2 = hibit(p2); /* add into result */ in gf_inv()
272 if (n2) /* repeat with values swapped */ in gf_inv()
273 while (n1 >= n2) { in gf_inv()
274 n1 /= n2; in gf_inv()
/system/bt/test/mock/
Dmock_stack_crypto_toolbox.h98 std::function<void(const uint8_t* w, const Octet16& n1, const Octet16& n2,
100 body{[](const uint8_t* w, const Octet16& n1, const Octet16& n2,
102 void operator()(const uint8_t* w, const Octet16& n1, const Octet16& n2, in operator()
104 body(w, n1, n2, a1, a2, mac_key, ltk); in operator()
113 std::function<Octet16(const Octet16& w, const Octet16& n1, const Octet16& n2,
116 body{[this](const Octet16& w, const Octet16& n1, const Octet16& n2,
119 Octet16 operator()(const Octet16& w, const Octet16& n1, const Octet16& n2, in operator()
122 return body(w, n1, n2, r, iocap, a1, a2); in operator()
Dmock_stack_crypto_toolbox.cc72 void f5(const uint8_t* w, const Octet16& n1, const Octet16& n2, uint8_t* a1, in f5() argument
75 test::mock::stack_crypto_toolbox::f5(w, n1, n2, a1, a2, mac_key, ltk); in f5()
77 Octet16 f6(const Octet16& w, const Octet16& n1, const Octet16& n2, in f6() argument
80 return test::mock::stack_crypto_toolbox::f6(w, n1, n2, r, iocap, a1, a2); in f6()
/system/bt/gd/crypto_toolbox/
Dcrypto_toolbox.cc58 const Octet16& n2, in calculate_mac_key_or_ltk() argument
70 it = std::copy(n2.begin(), n2.end(), it); 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() argument
91 *mac_key = calculate_mac_key_or_ltk(t, 0, key_id, n1, n2, a1, a2, length); in f5()
93 *ltk = calculate_mac_key_or_ltk(t, 1, key_id, n1, n2, a1, a2, length); in f5()
100 f6(const Octet16& w, const Octet16& n1, const Octet16& n2, const Octet16& r, uint8_t* iocap, uint8_… in f6() argument
114 it = std::copy(n2.begin(), n2.end(), it); in f6()
Dcrypto_toolbox_test.cc166 …Octet16 n2{0xa6, 0xe8, 0xe7, 0xcc, 0x25, 0xa7, 0x5f, 0x6e, 0x21, 0x65, 0x83, 0xf7, 0xff, 0x3d, 0xc… in TEST() local
177 std::reverse(std::begin(n2), std::end(n2)); in TEST()
184 f5(dhkey_w.data(), n1, n2, a1.data(), a2.data(), &mac_key, &ltk); in TEST()
193 …Octet16 n2{0xa6, 0xe8, 0xe7, 0xcc, 0x25, 0xa7, 0x5f, 0x6e, 0x21, 0x65, 0x83, 0xf7, 0xff, 0x3d, 0xc… in TEST() local
206 std::reverse(std::begin(n2), std::end(n2)); in TEST()
214 Octet16 aes_cmac = f6(MacKey, n1, n2, r, IOcap.data(), a1.data(), a2.data()); in TEST()
Dcrypto_toolbox.h44 …uint8_t* w, const Octet16& n1, const Octet16& n2, uint8_t* a1, uint8_t* a2, Octet16* mac_key, Octe…
46 …const Octet16& w, const Octet16& n1, const Octet16& n2, const Octet16& r, uint8_t* iocap, uint8_t*…
Daes.cc208 uint_8t p1 = x, p2 = BPOLY, n1 = hibit(x), n2 = 0x80, v1 = 1, v2 = 0; in gf_inv() local
214 while (n2 >= n1) /* divide polynomial p2 by p1 */ in gf_inv()
216 n2 /= n1; /* shift smaller polynomial left */ in gf_inv()
217 p2 ^= (p1 * n2) & 0xff; /* and remove from larger one */ in gf_inv()
218 v2 ^= (v1 * n2); /* shift accumulated value and */ in gf_inv()
219 n2 = hibit(p2); /* add into result */ in gf_inv()
224 if (n2) /* repeat with values swapped */ in gf_inv()
225 while (n1 >= n2) { in gf_inv()
226 n1 /= n2; in gf_inv()
/system/bt/stack/smp/
Dcrypto_toolbox.h29 extern void smp_calculate_f5(uint8_t* w, const Octet16& n1, const Octet16& n2,
33 const Octet16& n2, const Octet16& r,
/system/bt/stack/test/
Dcrypto_toolbox_test.cc190 Octet16 n2{0xa6, 0xe8, 0xe7, 0xcc, 0x25, 0xa7, 0x5f, 0x6e, in TEST() local
203 std::reverse(std::begin(n2), std::end(n2)); in TEST()
210 f5(dhkey_w.data(), n1, n2, a1.data(), a2.data(), &mac_key, &ltk); in TEST()
220 Octet16 n2{0xa6, 0xe8, 0xe7, 0xcc, 0x25, 0xa7, 0x5f, 0x6e, in TEST() local
236 std::reverse(std::begin(n2), std::end(n2)); in TEST()
244 Octet16 aes_cmac = f6(MacKey, n1, n2, r, IOcap.data(), a1.data(), a2.data()); in TEST()
/system/extras/simpleperf/
Dcallchain.h148 const std::unique_ptr<NodeT>& n2) { in CompareNodeByPeriod()
150 uint64_t period2 = n2->period + n2->children_period; in CompareNodeByPeriod()
DCallChainJoiner.cpp104 bool LRUCache::CacheNodeEqual(const CacheNode* n1, const CacheNode* n2) { in CacheNodeEqual() argument
105 return n1->tid == n2->tid && n1->ip == n2->ip && n1->sp == n2->sp; in CacheNodeEqual()
DCallChainJoiner.h87 static bool CacheNodeEqual(const CacheNode* n1, const CacheNode* n2);
/system/core/libutils/
DUnicode.cpp264 int strzcmp16(const char16_t *s1, size_t n1, const char16_t *s2, size_t n2) in strzcmp16() argument
267 const char16_t* e2 = s2+n2; in strzcmp16()
276 return n1 < n2 in strzcmp16()
278 : (n1 > n2 in strzcmp16()
/system/core/libutils/include/utils/
DUnicode.h39 int strzcmp16(const char16_t *s1, size_t n1, const char16_t *s2, size_t n2);
/system/core/init/
Dperfboot.py332 n2 = n / 2
333 return (data[n2 - 1] + data[n2]) / 2.0
/system/bt/stack/rfcomm/
Drfc_int.h100 uint8_t n2; member
Drfc_ts_frames.cc705 p_rx_frame->u.pn.n2 = *p_data++; in rfc_process_mx_message()