Home
last modified time | relevance | path

Searched refs:code (Results 1 – 25 of 198) sorted by relevance

12345678

/openthread-3.7.0/tests/scripts/thread-cert/
Dtest_coap.py229 code = any_code()
231 code_obj = coap.CoapCode(code)
234 actual_code = code_obj.code
237 self.assertEqual(code, actual_code)
241 code = any_code()
243 code_obj = coap.CoapCode(code)
249 self.assertEqual((code >> 5) & 0x7, actual_class)
253 code = any_code()
255 code_obj = coap.CoapCode(code)
261 self.assertEqual(code & 0x1F, actual_detail)
[all …]
Dcoap.py148 def __init__(self, code): argument
149 self._code = code
152 def code(self): member in CoapCode
157 return (self.code >> 5) & 0x7
161 return self.code & 0x1F
174 return self.code == other.code
182 return self.code == other
188 return self.code == other.code
204 code, argument
213 self._code = code
[all …]
Dtest_ipv6.py170 def any_icmp_payload(_type, code, checksum, body): argument
171 return bytearray([_type, code, (checksum >> 8) & 0xff, checksum & 0xff]) + body
470 code = any_code()
473 icmpv6_header = ICMPv6Header(_type, code, checksum)
480 self.assertEqual(code, data[1])
486 code = any_code()
489 data = bytearray([_type, code]) + struct.pack("!H", checksum)
496 self.assertEqual(code, icmpv6_header.code)
614 self.assertEqual(0, ipv6_packet.upper_layer_protocol.header.code)
646 self.assertEqual(0, ipv6_packet.upper_layer_protocol.header.code)
[all …]
DCert_5_1_05_RouterAddressTimeout.py121 p.coap.code == COAP_CODE_ACK and\
200 p.coap.code == COAP_CODE_POST and\
213 p.coap.code == COAP_CODE_ACK and\
292 p.coap.code == COAP_CODE_POST and\
305 p.coap.code == COAP_CODE_ACK and\
/openthread-3.7.0/src/core/utils/
Dverhoeff_checksum.cpp96 uint8_t code; in Calculate() local
98 SuccessOrExit(error = ComputeCode(aDecimalString, code, /* aValidate */ false)); in Calculate()
99 aChecksum = static_cast<char>('0' + InverseOf(code)); in Calculate()
108 uint8_t code; in Validate() local
110 SuccessOrExit(error = ComputeCode(aDecimalString, code, /* aValidate */ true)); in Validate()
111 VerifyOrExit(code == 0, error = kErrorFailed); in Validate()
120 uint8_t code = 0; in ComputeCode() local
137 code = Multiply(code, Permute(index % 8, static_cast<uint8_t>(digit - '0'))); in ComputeCode()
140 aCode = code; in ComputeCode()
/openthread-3.7.0/third_party/mbedtls/repo/library/
Dmps_error.h37 #define MBEDTLS_MPS_MAKE_ERROR(code) \ argument
38 (-(MBEDTLS_MPS_ERR_BASE | (code)))
55 #define MBEDTLS_MPS_READER_MAKE_ERROR(code) \ argument
56 (-(MBEDTLS_MPS_READER_ERR_BASE | (code)))
/openthread-3.7.0/third_party/mbedtls/repo/tests/scripts/
Dgenerate_test_code.py544 def generate_function_code(name, code, local_vars, args_dispatch, argument
558 if code.find('exit:') == -1:
559 split_code = code.rsplit('}', 1)
561 code = """exit:
565 code += gen_function_wrapper(name, local_vars, args_dispatch)
568 return preprocessor_check_start + code + preprocessor_check_end
626 code = ''
634 up_to_arg_list_start = code + line[:line.find('(') + 1]
647 code += line
649 code += line
[all …]
Dtest_generate_test_code.py195 code = gen_function_wrapper('test_a', '', ('a', 'b', 'c', 'd'))
203 self.assertEqual(code, expected)
211 code = gen_function_wrapper('test_a',
220 self.assertEqual(code, expected)
228 code = gen_function_wrapper('test_a', '', ())
237 self.assertEqual(code, expected)
250 code = gen_dispatch('test_a', ['DEP1', 'DEP2'])
258 self.assertEqual(code, expected)
265 code = gen_dispatch('test_a', [])
269 self.assertEqual(code, expected)
[all …]
/openthread-3.7.0/third_party/mbedtls/repo/programs/ssl/
Dssl_mail_client.c226 char code[4]; in write_ssl_and_get_response() local
260 code[idx++] = data[i]; in write_ssl_and_get_response()
265 if (idx == 4 && code[0] >= '0' && code[0] <= '9' && code[3] == ' ') { in write_ssl_and_get_response()
266 code[3] = '\0'; in write_ssl_and_get_response()
267 return atoi(code); in write_ssl_and_get_response()
279 char code[4]; in write_and_get_response() local
304 code[idx++] = data[i]; in write_and_get_response()
309 if (idx == 4 && code[0] >= '0' && code[0] <= '9' && code[3] == ' ') { in write_and_get_response()
310 code[3] = '\0'; in write_and_get_response()
311 return atoi(code); in write_and_get_response()
/openthread-3.7.0/third_party/mbedtls/repo/scripts/data_files/
Derror.fmt31 /* Extract the high-level part from the error code. */
54 /* Extract the low-level part from the error code. */
89 // Translate high level error code.
100 // level code.
113 // If high level code is present, make a concatenation between both
129 // Translate low level error code.
/openthread-3.7.0/third_party/mbedtls/repo/docs/architecture/testing/
Dinvasive-testing.md30 …n at least some configurations. Features with a significant impact on the code size or attack surf…
36 …nctions in `library/*.h` and include the corresponding header in the test code. If the function sh…
38 If test code or test data depends on internal details of the library and not just on its documented…
55 If the most practical way to test something is to add code to the product that is only useful for t…
57 * **Only use test-specific code when necessary.** Anything that can be tested through the documente…
58 * **Test-specific code must be guarded by `#if defined(MBEDTLS_TEST_HOOKS)`**. Do not create fine-g…
65 …ive code for test purposes. That is, library code calls `mbedtls_foo()`, and there is a mechanism …
67 …an be replaced at compile time to support alternative platforms, the test code should be compatibl…
69 …ally skipping side effects in its parameters), to provide a hook for test code; such functions sho…
73 In unit test code that needs to modify the internal behavior:
[all …]
/openthread-3.7.0/third_party/mbedtls/repo/docs/proposed/
Dpsa-driver-integration-guide.md9 …change: until further notice, we do not guarantee backward compatibility with existing driver code.
13 The PSA cryptography driver interface provides a way to build Mbed TLS with additional code that im…
17 … **driver description files** in JSON format and some code to include in the build. The driver cod…
37 <!-- TODO: what if the driver is provided as C source code? -->
Dpsa-conditional-inclusion-c.md12 … the available cryptographic mechanisms, primarily in order to reduce the code footprint of the co…
24 …work well for asymmetric cryptography. For example, many parts of the ECC code have no `MBEDTLS_xx…
32 …bly configured Mbed TLS build must not include the corresponding software code (unless a software …
56 …ersions, things are as they are today: the PSA subsystem includes generic code unconditionally, an…
57 … configuration file and the Mbed TLS configuration file. For example, the code in `aes.c` is enabl…
73 * In Mbed TLS test code.
74 * In Mbed TLS library code using `MBEDTLS_USE_PSA_CRYPTO`, for example in TLS to determine which ci…
75 * In application code that provides additional features based on cryptographic capabilities, for ex…
92 …te key: there is no way to only include private-key operations (which typically saves little code).
100 …h to include only certain curves in a family, and that can lead to a significant gain in code size.
[all …]
/openthread-3.7.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_platform.function48 /* This goto is added to avoid warnings from the generated code. */
58 /* This goto is added to avoid warnings from the generated code. */
70 * WARNING: DO NOT ENABLE THIS TEST. We keep the code here to document the
80 /* This goto is added to avoid warnings from the generated code. */
88 * WARNING: DO NOT ENABLE THIS TEST. We keep the code here to document the
119 /* This goto is added to avoid warnings from the generated code. */
Dmain_test.function12 * Main code file : __MBEDTLS_TEST_TEMPLATE__TEST_MAIN_FILE
13 * Platform code file : __MBEDTLS_TEST_TEMPLATE__TEST_PLATFORM_FILE
28 /* Test code may use deprecated identifiers only if the preprocessor symbol
38 /* Common helper code */
57 /* Test dispatch code */
64 * Identifiers and evaluation code is generated by script:
96 * Identifiers and check code is generated by script:
219 /* Main Test code */
228 * \return Exit code.
Dtest_suite_error.function11 void error_strerror(int code, char *result_str)
17 mbedtls_strerror(code, buf, 500);
Dtest_suite_net.function31 * \return \c 0 on success, a negative error code on error.
78 * descriptor greater or equal to FD_SETSIZE. This code is specific to
99 * might do); but we don't do such things in our test code, so the unit
120 * it may still happen to return the expected failure code, but if this
121 * is problematic on the particular platform where the code is running,
/openthread-3.7.0/third_party/mbedtls/repo/
DBRANCHES.md32 ## Backwards Compatibility for application code
35 code that's working and secure with Mbed TLS x.y.z and does not rely on
38 number, and your code will still build, be secure, and work.
45 cryptographic algorithm does not break code that does not use that
55 * Returning an error code that was not previously documented for a function
57 * Changing which error code is returned in a case where multiple error
63 There are rare exceptions where we break API compatibility: code that was
92 re-compiling) and to avoid any increase in code size or RAM usage, or in the
93 minimum version of tools needed to build the code. The only exception, as
97 increase code size for a security fix.)
DCONTRIBUTING.md18 - The code should be written in a clean and readable style, and must follow [our coding standards](…
19 - The code should be written in a portable generic way, that will benefit the whole community, and …
20 - The code should be secure, and will be reviewed from a security point of view as well.
33code to work with a newer version of the library. Unless the user has made an active decision to u…
43 …ional features or API extensions which may introduce issues or change the code size or RAM usage, …
64 …lable to show test coverage of the library. New code contributions should provide a similar level …
79 1. Complex parts in the code should include comments.
87 … these licenses. This means that users may choose which of these licenses they take the code under.
93 The copyright on contributions is retained by the original authors of the code. Where possible for …
95code to us, the committer and all authors are required to make the submission under the terms of t…
/openthread-3.7.0/third_party/mbedtls/repo/3rdparty/everest/
DREADME.md3 …. The C code is automatically derived from the (verified) [original implementation](https://github…
5 … integer type and KreMLin therefore has to use additional (also verified) code to simulate them, r…
/openthread-3.7.0/
DNOTICE10 of this OpenThread code does not assure compliance with the Thread 1.3.0 Final
16 The included copyright to the OpenThread code is subject to the license in the
19 required to implement this code.
/openthread-3.7.0/third_party/mbedtls/repo/docs/architecture/psa-migration/
Dmd-cipher-dispatch.md6 This document discusses a migration strategy for code that is not subject to `MBEDTLS_USE_PSA_CRYPT…
22 so that my code keeps working in new minor versions of Mbed TLS.
26 As a developer of library code that uses Mbed TLS to perform cryptographic operations,
28 so that my code works in all Mbed TLS configurations.
40 to minimize the code size.
49 I want to avoid duplicating code,
54 …ng term, all code using cryptography should use PSA interfaces, to benefit from PSA drivers, allow…
56 …non-PSA interfaces to use PSA interfaces under the hood, without breaking code in the cases where …
64 …r SHA256, `MBEDTLS_AES_C && MBEDTLS_CIPHER_MODE_CBC` for AES-CBC, etc. In code that uses the PSA i…
75code that relies on drivers, but the driver interfaces may change without notice.” In practice, th…
[all …]
Dstrategy.md61 two versions of some parts of the code: one using PSA, the other using the
69 maintaining dual code paths until the next major version. (Note: these
101 `ENTROPY_C`. This requires going through the PSA code base to adjust
106 available in entropy-less builds. (Then code using those functions still needs
127 current strategy is to keep using those identifiers in most of the code, in
142 code anywhere.
170 code size.
171 - Downside: TLS/X.509 code has to be done for each operation.
182 - Upside: changes mostly contained in one place, TLS/X.509 code only needs to
188 changes in application code.
[all …]
/openthread-3.7.0/third_party/mbedtls/repo/3rdparty/p256-m/p256-m/
DREADME.md12 2. low code size & RAM usage;
20 code**, using **less than 768 bytes of RAM**, with comparable performance
27 - [Code size](#code-size)
60 - The code is standard C99; it builds without warnings with `clang
62 - The code is small and well documented, including internal APIs: with the
63 header file, it's less than 700 lines of code, and more lines of comments
64 than of code.
75 carefully checking the validity domain of formulas used throughout the code;
97 improve performance and code size. (On Cortex-M and Cortex-A cores wtih GCC or
127 with `-mthumb -Os`, here are samples of code sizes reached on selected cores:
[all …]
/openthread-3.7.0/third_party/mbedtls/repo/docs/architecture/
Dtls13-support.md142 exchange mode enabled, the TLS 1.3 implementation does not contain any code
147 mode enabled, the TLS 1.3 implementation does not contain any code related
156 exchange mode enabled, the TLS 1.3 implementation does not contain any code
170 PR upstreaming the first part of TLS 1.3 ClientHello writing code.
187 everywhere in the code.
235 and MBEDTLS_GET_UINT{8|16|32|64}_BE improve the readability of the code and
239 `MBEDTLS_SSL_CHK_BUF_READ_PTR`, improve the readability of the code and
257 name `p` has been chosen as it was already widely used in TLS code.
284 places in the code. When a constant is used only locally in a function
300 split them to ease their search in the code base.
[all …]

12345678