Home
last modified time | relevance | path

Searched refs:m (Results 1 – 25 of 75) sorted by relevance

123

/openthread-latest/third_party/mbedtls/repo/tests/suites/
Dtest_suite_bignum_mod.function14 const mbedtls_mpi_mod_modulus *m,
32 /* mbedtls_mpi_mod_residue_setup() checks limbs, and that value < m */
33 return mbedtls_mpi_mod_residue_setup(r, m, p, limbs);
47 mbedtls_mpi_mod_modulus m;
52 mbedtls_mpi_mod_modulus_init(&m);
56 ret = mbedtls_mpi_mod_modulus_setup(&m, mp, MLIMBS);
59 ret = mbedtls_mpi_mod_optred_modulus_setup(&m, mp, MLIMBS, NULL);
71 TEST_ASSERT(m.rep.mont.rr != NULL);
72 TEST_ASSERT(m.rep.mont.mm != 0);
77 mbedtls_mpi_mod_modulus_free(&m);
[all …]
Dtest_suite_bignum_mod_raw.function22 mbedtls_mpi_mod_modulus m;
23 mbedtls_mpi_mod_modulus_init(&m);
57 int ret = mbedtls_mpi_mod_modulus_setup(&m, init, nx);
64 ret = mbedtls_mpi_mod_raw_read(X, &m, input->x, input->len, endian);
72 ret = mbedtls_mpi_mod_raw_write(X, &m, buf, nb, endian);
107 mbedtls_mpi_mod_modulus_free(&m);
122 mbedtls_mpi_mod_modulus m;
123 mbedtls_mpi_mod_modulus_init(&m);
139 &m, buff_m, copy_limbs), 0);
145 mbedtls_mpi_mod_raw_cond_assign(X, Y, &m, 0);
[all …]
Dtest_suite_bignum_mod.misc.data105 Test mbedtls_mpi_residue_setup #1 m > r
108 Test mbedtls_mpi_residue_setup #2 r == m - 1
111 Test mbedtls_mpi_residue_setup #3 m->limbs = r-> limbs && m > r
114 Test mbedtls_mpi_residue_setup #4 m->limbs = r-> limbs && m > r
117 Test mbedtls_mpi_residue_setup #5 m->limbs > r-> limbs && m > r
120 Test mbedtls_mpi_residue_setup #6 m->limbs < r-> limbs && m > r
123 Test mbedtls_mpi_residue_setup #7 r == m
126 Test mbedtls_mpi_residue_setup #8 r > m
129 Test mbedtls_mpi_mod_io_neg #1 input_r < modulo m
132 Test mbedtls_mpi_mod_io_neg #2 input_r == modulo m
[all …]
Dtest_suite_ecp.function1572 mbedtls_mpi_mod_modulus m;
1573 mbedtls_mpi_mod_modulus_init(&m);
1660 &m, N, limbs_N), 0);
1664 mbedtls_mpi_mod_raw_fix_quasi_reduction(X, &m);
1672 mbedtls_mpi_mod_modulus_free(&m);
1681 mbedtls_mpi_mod_modulus m;
1682 mbedtls_mpi_mod_modulus_init(&m);
1689 ret = mbedtls_ecp_modulus_setup(&m, id, ctype);
1693 TEST_ASSERT(m.int_rep != MBEDTLS_MPI_MOD_REP_INVALID);
1695 TEST_EQUAL(m.limbs, p_limbs);
[all …]
/openthread-latest/third_party/mbedtls/repo/scripts/mbedtls_dev/
Dc_parsing_helper.py42 m = self._DECLARATION_RE.match(self.decl)
43 if not m:
45 self.type = self.normalize_type(m.group('type')) #type: str
46 self.name = m.group('name') #type: Optional[str]
47 self.suffix = m.group('suffix') if m.group('suffix') else '' #type: str
91 lambda m: re.sub(_NOT_NEWLINES_RE, "", m.group(0)),
117 m = _C_FUNCTION_DECLARATION_RE.match(line)
118 if not m:
120 qualifiers = m.group('qualifiers').split()
121 return_type = m.group('return_type')
[all …]
Dcrypto_knowledge.py90 m = re.match(r'(\w+)\s*\((.*)\)\Z', self.name)
91 assert m is not None
92 self.name = m.group(1)
93 params = m.group(2).split(',')
107 m = re.match(r'PSA_KEY_TYPE_(\w+)', self.name)
108 assert m
109 self.head = re.sub(r'_(?:PUBLIC_KEY|KEY_PAIR)\Z', r'', m.group(1))
308 m = re.match(r'PSA_ALG_(?:'
312 if m:
313 expr = m.group(1)
[all …]
Dmacro_collector.py288 m = re.match(self._define_directive_re, line)
289 if not m:
291 name, parameter, expansion = m.groups()
335 m = re.search(self._continued_line_re, line)
336 while m:
338 line = line[:m.start(0)] + cont
339 m = re.search(self._continued_line_re, line)
467 m = re.match(self._header_line_re, line)
468 if not m:
470 name = m.group(1)
[all …]
/openthread-latest/third_party/mbedtls/repo/3rdparty/p256-m/
DREADME.md1m/` subdirectory originate from the [p256-m GitHub repository](https://github.com/mpg/p256-m). The…
3 The files `p256-m.c`, `p256-m.h` and `README.md` have been taken from the `p256-m` repository.
4 It should be noted that p256-m deliberately does not supply its own cryptographically secure RNG fu…
DCMakeLists.txt5 p256-m/p256-m.c)
9 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/p256-m>
/openthread-latest/tests/scripts/thread-cert/
Dmessage.py388 m = self.messages.pop(0)
390 if m.type != MessageType.COAP:
393 if uri_path is not None and m.coap.uri_path != uri_path:
397 if not m.coap.code.is_equal_dotted(code):
400 message = m
422 m = self.messages[i]
424 if m.type != MessageType.MLE:
428 if m.mle.command.type == command_type:
429 message = m
452 m = self.messages.pop(0)
[all …]
Dtest_lowpan.py238 m = any_m()
243 byte1 = (cid << 7) | (sac << 6) | (sam << 4) | (m << 3) | (dac << 2) | dam
257 self.assertEqual(m, actual.m)
2725 m = factory.IPHC_M_NO
2729 …iphc = lowpan.LowpanIPHC(any_tf(), any_nh(), any_hlim(), any_cid(), any_sac(), any_sam(), m, dac, …
2737 self.assertEqual(0, m)
2748 m = factory.IPHC_M_NO
2752 …iphc = lowpan.LowpanIPHC(any_tf(), any_nh(), any_hlim(), any_cid(), any_sac(), any_sam(), m, dac, …
2758 self.assertEqual(0, m)
2769 m = factory.IPHC_M_NO
[all …]
Dtest_reed_address_solicit_rejected.py99 m = re.match('.*:fc(..)$', addr, re.I)
100 if m is not None:
101 if m.group(1) == str(service_id + 10): # for service_id=3 look for '...:fc13'
/openthread-latest/third_party/mbedtls/repo/programs/
Ddemo_common.sh94 m=
97 m="$m $x"
100 if [ -n "$m" ]; then
104 $m
/openthread-latest/third_party/mbedtls/repo/tests/scripts/
Dcheck_files.py179 m = re.match(self._shebang_re, first_line)
180 if not m:
182 interpreter = m.group(1) or m.group(2)
424 m = self.COPYRIGHT_RE.match(line)
425 if m and m.group(1) != self.COPYRIGHT_HOLDER:
429 m = self.SPDX_RE.match(line)
430 if m:
431 if m.group(1) != self.SPDX_HEADER_KEY:
434 if not m.group(3):
437 if m.group(3) != self.LICENSE_IDENTIFIER:
[all …]
/openthread-latest/third_party/mbedtls/repo/scripts/
Dconfig.py423 m = re.match(self._config_line_regexp, line)
424 if m is None:
426 elif m.group('section'):
427 self.current_section = m.group('section')
430 active = not m.group('commented_out')
431 name = m.group('name')
432 value = m.group('value')
434 m.group('indentation'),
435 m.group('define') + name +
436 m.group('arguments') + m.group('separator'))
Dassemble_changelog.py130 m = re.search(cls._top_version_re, changelog_file_content)
131 top_version_start = m.start(1)
132 top_version_end = m.end(2)
133 top_version_title = m.group(1)
134 top_version_body = m.group(2)
158 title_starts = [m.start(1) for m in title_matches]
159 body_starts = [m.end(0) for m in title_matches]
302 m = re.search('(.+)$', hashes.decode('ascii'))
303 if not m:
309 return m.group(0)
Dmin_requirements.py53 m = re.match(r'-r\s+', line)
54 if m:
56 line[m.end(0):])
/openthread-latest/third_party/mbedtls/repo/library/
Decp.c1785 unsigned char w, const mbedtls_mpi *m) in ecp_comb_recode_core() argument
1795 x[i] |= mbedtls_mpi_get_bit(m, i + d * j) << j; in ecp_comb_recode_core()
2122 const mbedtls_mpi *m, in ecp_comb_recode_scalar() argument
2140 *parity_trick = (mbedtls_mpi_get_bit(m, 0) == 0); in ecp_comb_recode_scalar()
2143 MBEDTLS_MPI_CHK(mbedtls_mpi_copy(&M, m)); in ecp_comb_recode_scalar()
2144 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(&mm, &grp->N, m)); in ecp_comb_recode_scalar()
2166 const mbedtls_mpi *m, in ecp_mul_comb_after_precomp() argument
2190 MBEDTLS_MPI_CHK(ecp_comb_recode_scalar(grp, m, k, d, w, in ecp_mul_comb_after_precomp()
2290 const mbedtls_mpi *m, const mbedtls_ecp_point *P, in ecp_mul_comb() argument
2362 MBEDTLS_MPI_CHK(ecp_mul_comb_after_precomp(grp, R, m, in ecp_mul_comb()
[all …]
Daesce.c534 uint8x16_t h, m, l; /* retval high/middle/low */ in poly_mult_128() local
542 m = veorq_u8(d, e); /* :m2:m1:00 = d + e */ in poly_mult_128()
545 ret.val[1] = m; in poly_mult_128()
576 uint8x16_t h, m, l; /* input high/middle/low 128b */ in poly_mult_reduce() local
579 m = input.val[1]; /* :m2:m1:00 */ in poly_mult_reduce()
583 e = veorq_u8(c, m); /* :e2:e1:00 = m2:m1:00 + c2:c1:00 */ in poly_mult_reduce()
/openthread-latest/third_party/mbedtls/repo/3rdparty/p256-m/p256-m/
Dp256-m.c466 uint32_t m[8]; member
517 uint32_t carry_sub = u256_sub(r, z, mod->m); in m256_add()
554 (void) u256_add(r, z, mod->m); in m256_sub()
605 c += u288_muladd(a, u, mod->m); in m256_mul()
611 uint32_t carry_sub = u256_sub(z, a, mod->m); in m256_mul()
702 uint32_t limb = mod->m[i] - 2; in m256_inv()
716 limb = mod->m[i]; in m256_inv()
735 uint32_t lt_m = u256_sub(t, z, mod->m); in m256_from_bytes()
875 uint32_t m[8], s[8], u[8]; in point_double() local
879 m256_add_p(m, x, s); in point_double()
[all …]
DREADME.md1 *This is the original README for the p256-m repository. Please note that as
2 only a subset of p256-m's files are present in Mbed TLS, this README may refer
5 p256-m is a minimalistic implementation of ECDH and ECDSA on NIST P-256,
16 some might even risk weakening security for more speed. p256-m was written
45 - p256-m is validated against multiple test vectors from various RFCs and
81 In addition to the above correctness claims, p256-m has the following
91 p256-m also avoid instructions (or library functions) whose execution time
100 As a result, p256-m should be secure against the following classes of attackers:
107 However, p256-m makes no attempt to protect against:
113 (Note: p256-m should actually be secure against SPA, by virtue of being fully
[all …]
/openthread-latest/third_party/tcplp/bsdtcp/
Dtcp_reass.c121 tcp_reass(struct tcpcb *tp, struct tcphdr *th, int *tlenp, struct mbuf *m)
171 m_freem(m);
186 m_freem(m);
231 m_freem(m);
243 m_adj(m, i);
276 te->tqe_m = m;
Dtcp_output.c881 m = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR); in tcp_output()
884 m = m_gethdr(M_NOWAIT, MT_DATA); in tcp_output()
886 if (m == NULL) { in tcp_output()
893 m->m_data += max_linkhdr; in tcp_output()
894 m->m_len = hdrlen; in tcp_output()
904 mtod(m, caddr_t) + hdrlen); in tcp_output()
905 m->m_len += len; in tcp_output()
907 m->m_next = m_copy(mb, moff, (int)len); in tcp_output()
908 if (m->m_next == NULL) { in tcp_output()
910 (void) m_free(m); in tcp_output()
[all …]
/openthread-latest/third_party/mbedtls/repo/tests/
Dcompat.sh145 print_test_case m O "$O_CIPHERS"
146 print_test_case O m "$O_CIPHERS"
147 print_test_case m G "$G_CIPHERS"
148 print_test_case G m "$G_CIPHERS"
149 print_test_case m m "$M_CIPHERS"
1138 translate_ciphers m $M_CIPHERS
1167 translate_ciphers m $M_CIPHERS
1196 translate_ciphers m $M_CIPHERS
/openthread-latest/etc/docker/environment/
DDockerfile24 && python3 -m pip install -U pip \
25 && python3 -m pip install -U cmake \
26 && python3 -m pip install wheel

123