Home
last modified time | relevance | path

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

/system/bt/stack/crypto_toolbox/
Dcrypto_toolbox.cc56 uint8_t* key_id, const Octet16& n1, in calculate_mac_key_or_ltk() argument
69 it = std::copy(n1.begin(), n1.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
79 << ", N1=" << HexEncode(n1.data(), n1.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
108 << ", N1=" << HexEncode(n1.data(), n1.size()) in f6()
121 it = std::copy(n1.begin(), n1.end(), it); in f6()
Dcrypto_toolbox.h28 extern void f5(const uint8_t* w, const Octet16& n1, const Octet16& n2,
30 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
261 if (n1) in gf_inv()
262 while (n2 >= n1) /* divide polynomial p2 by p1 */ in gf_inv()
264 n2 /= n1; /* shift smaller polynomial left */ in gf_inv()
273 while (n1 >= n2) { in gf_inv()
274 n1 /= n2; in gf_inv()
275 p1 ^= p2 * n1; in gf_inv()
276 v1 ^= v2 * n1; in gf_inv()
277 n1 = hibit(p1); in gf_inv()
/system/bt/gd/crypto_toolbox/
Dcrypto_toolbox.cc57 const Octet16& n1, in calculate_mac_key_or_ltk() argument
71 it = std::copy(n1.begin(), n1.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
115 it = std::copy(n1.begin(), n1.end(), it); in f6()
Dcrypto_toolbox_test.cc165 …Octet16 n1{0xd5, 0xcb, 0x84, 0x54, 0xd1, 0x77, 0x73, 0x3e, 0xff, 0xff, 0xb2, 0xec, 0x71, 0x2b, 0xa… in TEST() local
176 std::reverse(std::begin(n1), std::end(n1)); in TEST()
184 f5(dhkey_w.data(), n1, n2, a1.data(), a2.data(), &mac_key, &ltk); in TEST()
192 …Octet16 n1{0xd5, 0xcb, 0x84, 0x54, 0xd1, 0x77, 0x73, 0x3e, 0xff, 0xff, 0xb2, 0xec, 0x71, 0x2b, 0xa… in TEST() local
205 std::reverse(std::begin(n1), std::end(n1)); in TEST()
214 Octet16 aes_cmac = f6(MacKey, n1, n2, r, IOcap.data(), a1.data(), a2.data()); in TEST()
Dcrypto_toolbox.h42 …uint8_t* w, const Octet16& n1, const Octet16& n2, uint8_t* a1, uint8_t* a2, Octet16* mac_key, Octe…
44 …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
213 if (n1) in gf_inv()
214 while (n2 >= n1) /* divide polynomial p2 by p1 */ in gf_inv()
216 n2 /= n1; /* shift smaller polynomial left */ in gf_inv()
225 while (n1 >= n2) { in gf_inv()
226 n1 /= n2; in gf_inv()
227 p1 ^= p2 * n1; in gf_inv()
228 v1 ^= v2 * n1; in gf_inv()
229 n1 = hibit(p1); in gf_inv()
/system/extras/tests/binder/benchmarks/
DbinderAddInts.cpp222 for (unsigned int n1 = 0; n1 < CPU_SETSIZE; n1++) { in operator <<() local
223 if (CPU_ISSET(n1, &set)) { in operator <<()
224 if (n1 != 0) { stream << ' '; } in operator <<()
225 stream << n1; in operator <<()
/system/bt/stack/smp/
Dcrypto_toolbox.h29 extern void smp_calculate_f5(uint8_t* w, const Octet16& n1, const Octet16& n2,
32 extern Octet16 smp_calculate_f6(const Octet16& w, const Octet16& n1,
/system/bt/stack/test/
Dcrypto_toolbox_test.cc188 Octet16 n1{0xd5, 0xcb, 0x84, 0x54, 0xd1, 0x77, 0x73, 0x3e, in TEST() local
202 std::reverse(std::begin(n1), std::end(n1)); in TEST()
210 f5(dhkey_w.data(), n1, n2, a1.data(), a2.data(), &mac_key, &ltk); in TEST()
218 Octet16 n1{0xd5, 0xcb, 0x84, 0x54, 0xd1, 0x77, 0x73, 0x3e, in TEST() local
235 std::reverse(std::begin(n1), std::end(n1)); in TEST()
244 Octet16 aes_cmac = f6(MacKey, n1, n2, r, IOcap.data(), a1.data(), a2.data()); in TEST()
/system/extras/simpleperf/
Dcallchain.h153 static bool CompareNodeByPeriod(const std::unique_ptr<NodeT>& n1, in CompareNodeByPeriod()
155 uint64_t period1 = n1->period + n1->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.h89 static bool CacheNodeEqual(const CacheNode* n1, const CacheNode* n2);
/system/core/libutils/
DUnicode.cpp309 int strzcmp16(const char16_t *s1, size_t n1, const char16_t *s2, size_t n2) in strzcmp16() argument
311 const char16_t* e1 = s1+n1; in strzcmp16()
321 return n1 < n2 in strzcmp16()
323 : (n1 > n2 in strzcmp16()
/system/timezone/testing/data/
Dtransform-distro-files.sh39 TZHEADER=$(head -n1 ${INPUT_TZDATA_FILE} | cut -c1-11)
/system/core/libutils/include/utils/
DUnicode.h40 int strzcmp16(const char16_t *s1, size_t n1, const char16_t *s2, size_t n2);
/system/tools/hidl/scripts/
Drun-tests.sh52 local testable=$(echo "${output}" | head -n1)
/system/extras/ioblame/
Dioblame.sh353 …i_size=`tail -n1 subtrace | awk '{ if ($12 > 1024) printf "%d KB", ($12/1024); else printf "%d by…
411 …i_size=`fgrep -w "$j" subtrace | tail -n1 | awk '{ if ($12 > 1024) printf "%d KB", ($12/1024); els…
/system/update_engine/scripts/
Dbrillo_update_payload867 read -n1 -r -s -p "Paused to investigate invalid partitions, \