/system/bt/stack/crypto_toolbox/ |
D | crypto_toolbox.cc | 56 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()
|
D | crypto_toolbox.h | 28 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,
|
D | aes.cc | 256 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/ |
D | crypto_toolbox.cc | 57 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()
|
D | crypto_toolbox_test.cc | 165 …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, <k); 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()
|
D | crypto_toolbox.h | 42 …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*…
|
D | aes.cc | 208 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/ |
D | binderAddInts.cpp | 222 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/ |
D | crypto_toolbox.h | 29 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/ |
D | crypto_toolbox_test.cc | 188 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, <k); 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/ |
D | callchain.h | 153 static bool CompareNodeByPeriod(const std::unique_ptr<NodeT>& n1, in CompareNodeByPeriod() 155 uint64_t period1 = n1->period + n1->children_period; in CompareNodeByPeriod()
|
D | CallChainJoiner.cpp | 104 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()
|
D | CallChainJoiner.h | 89 static bool CacheNodeEqual(const CacheNode* n1, const CacheNode* n2);
|
/system/core/libutils/ |
D | Unicode.cpp | 309 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/ |
D | transform-distro-files.sh | 39 TZHEADER=$(head -n1 ${INPUT_TZDATA_FILE} | cut -c1-11)
|
/system/core/libutils/include/utils/ |
D | Unicode.h | 40 int strzcmp16(const char16_t *s1, size_t n1, const char16_t *s2, size_t n2);
|
/system/tools/hidl/scripts/ |
D | run-tests.sh | 52 local testable=$(echo "${output}" | head -n1)
|
/system/extras/ioblame/ |
D | ioblame.sh | 353 …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/ |
D | brillo_update_payload | 867 read -n1 -r -s -p "Paused to investigate invalid partitions, \
|