Home
last modified time | relevance | path

Searched refs:k (Results 1 – 25 of 45) sorted by relevance

12

/openthread-latest/tests/scripts/thread-cert/pktverify/
Dtest_info.py50 self.extaddrs = {int(k): ExtAddr(v) for k, v in test_info.get('extaddrs', {}).items()}
51 self.ethaddrs = {int(k): EthAddr(v) for k, v in test_info.get('ethaddrs', {}).items()}
52 … self.ipaddrs = {int(k): [Ipv6Addr(x) for x in l] for k, l in test_info.get('ipaddrs', {}).items()}
53 self.mleids = {int(k): Ipv6Addr(v) for k, v in test_info.get('mleids', {}).items()}
54 self.rlocs = {int(k): Ipv6Addr(v) for k, v in test_info.get('rlocs', {}).items()}
56 … self.omrs = {int(k): [Ipv6Addr(x) for x in l] for k, l in test_info.get('omrs', {}).items()}
57 self.duas = {int(k): Ipv6Addr(v) for k, v in test_info.get('duas', {}).items()}
63 macs.update({k + '_ETH': v for k, v in self.ethaddrs.items()})
64 macs = ",\n\t".join("%s=%s" % (k, v) for k, v in macs.items())
78 return {int(k): v for k, v in d.items()}
[all …]
Dcoap.py82 for k, v in tvs:
83 assert isinstance(k, str), (t, k, v)
84 assert isinstance(v, str), (t, k, v)
85 self._add_field('coap.tlv.' + k, v)
Dpacket_verifier.py171 for k, v in self.test_info.extra_vars.items():
172 assert k not in self._vars, k
173 logging.info("add extra var: %s = %s", k, v)
174 self._vars[k] = v
Dutils.py49 func = func.format_map({k: repr(v) for k, v in vars.items()}).strip()
Dpacket.py156 for k, v in layer._all_fields.items():
157 print("\t\t%r = %r" % (k, v))
/openthread-latest/third_party/mbedtls/repo/scripts/
Dgenerate_psa_constants.py264 return ''.join([make(k, d[k]) for k in sorted(d.keys())])
269 return ''.join([make(k, d[k]) for k in sorted(d.keys())])
292 return ''.join([make(k, d[k]) for k in sorted(d.keys())])
/openthread-latest/tests/unit/
Dtest_link_quality.cpp153 size_t i, j, k; in TestRssAveraging() local
215 for (k = 0; k < sizeof(rssValues); k++) in TestRssAveraging()
217 if (k == j) in TestRssAveraging()
222 rss2 = rssValues[k]; in TestRssAveraging()
242 for (k = 0; k < sizeof(rssValues); k++) in TestRssAveraging()
244 if (k == j) in TestRssAveraging()
249 rss2 = rssValues[k]; in TestRssAveraging()
276 for (k = 0; k < sizeof(rssValues); k++) in TestRssAveraging()
278 if (k == j) in TestRssAveraging()
283 rss2 = rssValues[k]; in TestRssAveraging()
/openthread-latest/third_party/mbedtls/repo/programs/random/
Dgen_entropy.c30 int i, k, ret = 1; in main() local
47 for (i = 0, k = 768; i < k; i++) { in main()
59 (long) (sizeof(buf) * k / 1024), in main()
61 (100 * (float) (i + 1)) / k); in main()
Dgen_random_ctr_drbg.c33 int i, k, ret = 1; in main() local
79 for (i = 0, k = 768; i < k; i++) { in main()
90 (long) (sizeof(buf) * k / 1024), in main()
92 (100 * (float) (i + 1)) / k); in main()
/openthread-latest/third_party/mbedtls/repo/tests/suites/
Dtest_suite_pkcs7.function68 size_t buflen, i, k, cnt = 0, n_crts = 1;
95 for (k = i; k < strlen(crt_files); k++) {
96 if (crt_files[k] == ' ') {
100 TEST_CALLOC(crt_files_arr[cnt], (k-i)+1);
101 crt_files_arr[cnt][k-i] = '\0';
102 memcpy(crt_files_arr[cnt++], crt_files + i, k-i);
103 i = k;
/openthread-latest/third_party/mbedtls/repo/library/
Daria.c275 const uint32_t k[4], const uint32_t x[4]) in aria_fo_xor()
279 a = p[0] ^ k[0]; in aria_fo_xor()
280 b = p[1] ^ k[1]; in aria_fo_xor()
281 c = p[2] ^ k[2]; in aria_fo_xor()
282 d = p[3] ^ k[3]; in aria_fo_xor()
297 const uint32_t k[4], const uint32_t x[4]) in aria_fe_xor()
301 a = p[0] ^ k[0]; in aria_fe_xor()
302 b = p[1] ^ k[1]; in aria_fe_xor()
303 c = p[2] ^ k[2]; in aria_fe_xor()
304 d = p[3] ^ k[3]; in aria_fe_xor()
[all …]
Dbignum.c660 size_t i, j, k; in mbedtls_mpi_write_string() local
662 for (i = X->n, k = 0; i > 0; i--) { in mbedtls_mpi_write_string()
666 if (c == 0 && k == 0 && (i + j) != 2) { in mbedtls_mpi_write_string()
672 k = 1; in mbedtls_mpi_write_string()
1396 size_t i, n, t, k; in mbedtls_mpi_div_mpi() local
1435 k = mbedtls_mpi_bitlen(&Y) % biL; in mbedtls_mpi_div_mpi()
1436 if (k < biL - 1) { in mbedtls_mpi_div_mpi()
1437 k = biL - 1 - k; in mbedtls_mpi_div_mpi()
1438 MBEDTLS_MPI_CHK(mbedtls_mpi_shift_l(&X, k)); in mbedtls_mpi_div_mpi()
1439 MBEDTLS_MPI_CHK(mbedtls_mpi_shift_l(&Y, k)); in mbedtls_mpi_div_mpi()
[all …]
Decdsa.c76 mbedtls_mpi k; /* per-signature random */ member
92 mbedtls_mpi_init(&ctx->k); in ecdsa_restart_sig_init()
106 mbedtls_mpi_free(&ctx->k); in ecdsa_restart_sig_free()
254 mbedtls_mpi k, e, t; in mbedtls_ecdsa_sign_restartable() local
255 mbedtls_mpi *pk = &k, *pr = r; in mbedtls_ecdsa_sign_restartable()
268 mbedtls_mpi_init(&k); mbedtls_mpi_init(&e); mbedtls_mpi_init(&t); in mbedtls_ecdsa_sign_restartable()
277 pk = &rs_ctx->sig->k; in mbedtls_ecdsa_sign_restartable()
370 mbedtls_mpi_free(&k); mbedtls_mpi_free(&e); mbedtls_mpi_free(&t); in mbedtls_ecdsa_sign_restartable()
Dpem.c50 size_t i, j, k; in pem_get_iv() local
67 k = ((i & 1) != 0) ? j : j << 4; in pem_get_iv()
69 iv[i >> 1] = (unsigned char) (iv[i >> 1] | k); in pem_get_iv()
Dssl_ticket.c156 const unsigned char *k, size_t klength, in mbedtls_ssl_ticket_rotate() argument
187 if ((status = psa_import_key(&attributes, k, in mbedtls_ssl_ticket_rotate()
194 ret = mbedtls_cipher_setkey(&key->ctx, k, bitlen, MBEDTLS_ENCRYPT); in mbedtls_ssl_ticket_rotate()
/openthread-latest/third_party/mbedtls/repo/tests/src/
Drandom.c108 uint32_t i, *k, sum, delta = 0x9E3779B9; in mbedtls_test_rnd_pseudo_rand() local
115 k = info->key; in mbedtls_test_rnd_pseudo_rand()
123 + info->v1) ^ (sum + k[sum & 3]); in mbedtls_test_rnd_pseudo_rand()
126 + info->v0) ^ (sum + k[(sum>>11) & 3]); in mbedtls_test_rnd_pseudo_rand()
/openthread-latest/tools/otci/otci/
Dotci.py600 k, v = line.split(': ')
601 data[OTCI.__LEADER_DATA_KEY_MAP[k]] = int(v)
817 k, v = line.split(': ')
818 if k == 'Server':
823 elif k == 'ResponseTimeout':
825 elif k == 'MaxTxAttempts':
827 elif k == 'RecursionDesired':
974 k, v = line.strip().split(': ')
975 if k == 'deleted':
981 elif k == 'addresses':
[all …]
/openthread-latest/tools/harness-automation/
Dgencsv.py21 for k, v in sorted(result.items(), key=get_key):
23 k,
/openthread-latest/tests/scripts/thread-cert/
Dthread_cert.py434 for k in vars.keys():
435 assert isinstance(k, str), k
662 for k, v in expected.items():
663 if k not in actual:
665 if v != actual[k]:
/openthread-latest/third_party/mbedtls/repo/3rdparty/p256-m/p256-m/
Dp256-m.c1337 uint32_t xr[8], k[8], t3[8], t4[8]; in p256_ecdsa_sign() local
1343 ret = scalar_gen_with_pub(kb, k, xr, t3); /* xr = x_coord(k * G) */ in p256_ecdsa_sign()
1346 m256_prep(k, &p256_n); in p256_ecdsa_sign()
1376 m256_inv(k, k, &p256_n); /* k^-1 */ in p256_ecdsa_sign()
1379 m256_mul(t4, k, t4, &p256_n); /* t4 = s = k^-1 * (e + r * dU) */ in p256_ecdsa_sign()
1380 zeroize(k, sizeof k); in p256_ecdsa_sign()
/openthread-latest/third_party/mbedtls/repo/tests/data_files/parse_input/
Dcrl-rsa-pss-sha384.pem13 y9o/ghYF/shKU4mewK3DeM9gQiTcH5A4ISXR87hBQ08AKJRAG1CLvTyzqWiUUY+k
Dcert_md5.crt14 AQEAF4QcMshVtVbYgvvU7f2lWakubbAISM/k+FW/f7u63m0MSSoSFeYflBOC1Wf4
/openthread-latest/third_party/mbedtls/repo/tests/data_files/
Dcert_md5.crt14 AQEAF4QcMshVtVbYgvvU7f2lWakubbAISM/k+FW/f7u63m0MSSoSFeYflBOC1Wf4
Drsa_pkcs8_pbes2_pbkdf2_1024_des_sha384.pem10 k+yChpETztRzdcJM5MRfhJOkDfU+8oD0QUHqi+0pEdqw6MPsFQewHQ801pZuWX5m
/openthread-latest/third_party/mbedtls/repo/include/mbedtls/
Dssl_ticket.h169 const unsigned char *k, size_t klength,

12