Home
last modified time | relevance | path

Searched refs:function (Results 1 – 25 of 64) sorted by relevance

123

/mbedtls-3.5.0/tests/suites/
Dmain_test.function1 #line 2 "suites/main_test.function"
42 #line __MBEDTLS_TEST_TEMPLATE__LINE_NO "suites/main_test.function"
53 #line __MBEDTLS_TEST_TEMPLATE__LINE_NO "suites/main_test.function"
81 #line __MBEDTLS_TEST_TEMPLATE__LINE_NO "suites/main_test.function"
111 #line __MBEDTLS_TEST_TEMPLATE__LINE_NO "suites/main_test.function"
120 * \brief Function pointer type for test function wrappers.
122 * A test function wrapper decodes the parameters and passes them to the
123 * underlying test function. Both the wrapper and the underlying function
129 * dereferences. Each wrapper function hard-codes the
136 * \brief Table of test function wrappers. Used by dispatch_test().
[all …]
Dtest_suite_error.data7 error_strerror:-0x4080:"RSA - Bad input parameters to function"
11 error_strerror:-0x40A0:"RSA - Bad input parameters to function \: AES - Invalid key length"
Dtest_suite_bignum_random.function31 * in mpi_random_many, which runs the function multiple times. This also
67 * This function returns 1 if, when drawing a number between 0 and b,
69 * This probability is (b - 2^n) / b and this function checks that this
103 * Testing x >= 2^4 amounts to picking A = 1/16 in the function
164 /* Call the legacy function and the core function with the same random
269 * This function assumes that the value of bound is at least 2 and
421 * the library function rejects that as expected. */
Dhelpers.function1 #line 2 "suites/helpers.function"
52 #define DISPATCH_TEST_FN_NOT_FOUND -3 /* Test function not found */
/mbedtls-3.5.0/scripts/mbedtls_dev/
Dtest_case.py43 self.function = None #type: Optional[str]
55 def set_function(self, function: str) -> None:
56 self.function = function
64 if self.function is None:
77 assert self.function is not None # guide mypy
84 out.write(self.function + ':' + ':'.join(self.arguments) + '\n')
Dmacro_collector.py508 def accept_test_case_line(self, function: str, argument: str) -> bool:
524 def add_test_case_line(self, function: str, argument: str) -> None:
527 if function.endswith('_algorithm'):
529 if function == 'key_agreement_algorithm' and \
534 function = 'other_algorithm'
535 sets += self.table_by_test_function[function]
536 if self.accept_test_case_line(function, argument):
/mbedtls-3.5.0/tests/scripts/
Dpsa_collect_statuses.py54 value, function, tail = line.split(':', 2)
55 if function not in self.functions:
56 self.functions[function] = {}
57 fdata = self.functions[function]
58 if value not in self.functions[function]:
76 for function in sorted(self.functions.keys()):
77 fdata = self.functions[function]
80 sys.stdout.write('{} {}\n'.format(function, name))
/mbedtls-3.5.0/docs/architecture/
Dalternative-implementations.md12 …efine `MBEDTLS_PLATFORM_XXX_MACRO` to the name of a function to call instead of the standard funct…
24 …le(s)](#module-alternative-implementations) or [of specific functions](#function-alternative-imple…
54function that takes this context as an argument). (This is necessary, for example, to support appl…
64 …ter to a context or to a part of a context does not remain valid across function calls. Alternativ…
68 In some cases, it is possible to replace a single function or a small set of functions instead of […
72function name and appending `_ALT`. If the function name contains `_internal`, `_ext` or `_ret`, t…
82 …he process described here. To reconfigure how Mbed TLS calls the standard library function `xxx()`:
87 For example, to provide a custom `printf` function at run time, enable `MBEDTLS_PLATFORM_PRINTF_ALT…
89 …ALT` does not change the behavior: by default, `mbedtls_xxx` points to the standard function `xxx`.
Dtls13-support.md304 - When an TLS 1.3 structure is written or read by a function or as part of
305 a function, provide as documentation the definition of the structure as
329 places in the code. When a constant is used only locally in a function
353 function to a longer name, or indenting a block more), avoid rewrapping
368 - When a function's parameters span several lines, group related parameters
446 organization is to concentrate solely on the parsing in the parsing function to
470 organization is to concentrate solely on the writing in the writing function to
486 An application function to write and send a buffer of data to a server through
517 not be completed, not even started for the SSL context ssl when the function is
524 An application function to write and send early data and only early data,
[all …]
/mbedtls-3.5.0/tests/
DCMakeLists.txt155 function(add_test_suite suite_name)
221 -f ${CMAKE_CURRENT_SOURCE_DIR}/suites/test_suite_${suite_name}.function
223 -t ${CMAKE_CURRENT_SOURCE_DIR}/suites/main_test.function
224 -p ${CMAKE_CURRENT_SOURCE_DIR}/suites/host_test.function
226 --helpers-file ${CMAKE_CURRENT_SOURCE_DIR}/suites/helpers.function
230 ${CMAKE_CURRENT_SOURCE_DIR}/suites/test_suite_${suite_name}.function
232 ${CMAKE_CURRENT_SOURCE_DIR}/suites/main_test.function
233 ${CMAKE_CURRENT_SOURCE_DIR}/suites/host_test.function
234 ${CMAKE_CURRENT_SOURCE_DIR}/suites/helpers.function
/mbedtls-3.5.0/
D.uncrustify.cfg28 # Allow splitting function calls between arguments
114 # No spaces inside function parentheses
116 # (The case where the function has no parameters/arguments)
119 # No spaces inside the first parentheses in a function type
151 # Remove space after star in a function return type
203 # At least 1 space between a function return type and the function name
206 # No space between a function name and its arguments/parameters
D.gitattributes1 # Classify all '.function' files as C for syntax highlighting purposes
2 *.function linguist-language=C
DCONTRIBUTING.md37function with one that has a slightly different interface (different prototype, or different docum…
48 …t LTS branch. If a bug fix introduces a change to the API such as a new function, the fix should b…
60function file` (e.g. `suites/test_suite_rsa.function`) and a `data file` (e.g. `suites/test_suite_…
D.globalrc2 :langmap=c\:.c.h.function:\
/mbedtls-3.5.0/docs/architecture/testing/
Dinvasive-testing.md36 …rary/*.h` and include the corresponding header in the test code. If the function should be `static…
61 … to change the behavior, do it by function substitution.** See [“rules for function substitution”]…
63 #### Rules for function substitution
65 This section explains how to replace a library function `mbedtls_foo()` by alternative code for tes…
67 … defined to be a system function (like `mbedtls_calloc` or `mbedtls_fopen`), which we replace to m…
69function is a `static inline` function that does nothing (not a macro, to avoid accidentally skipp…
71function pointer type. This global variable is initialized to the system function, or to a functio…
75 * The test function (or the whole test file) must depend on `MBEDTLS_TEST_HOOKS`.
76 * At the beginning of the test function, set the global function pointers to the desired value.
77 * In the test function's cleanup code, restore the global function pointers to their default value.
[all …]
Ddriver-interface-test-strategy.md21function provided by Mbed Crypto (`psa_register_se_driver`) and many functions that drivers must i…
25 …quirements; for example a “good case” test can validate that the proper function is called, that i…
39 For each API function that can lead to a driver call (more precisely, for each driver method call s…
52 For each API function that can lead to a driver call (more precisely, for each driver method call s…
55 * If the API function can take parameters that are invalid and must not reach the driver, call the …
60 For each API function that leads to a driver call, call it with parameters that cause a driver to b…
92 …d successive storage states and replay each of them. Each `psa_its_xxx` function call is assumed t…
/mbedtls-3.5.0/docs/
Duse-psa-crypto.md11 `psa_crypto_init()` before calling any function from the SSL/TLS, X.509 or PK
29 **New API function:** `mbedtls_pk_setup_opaque()` - can be used to
68 There is a new API function `mbedtls_cipher_setup_psa()` to set up a context
71 This function only worked for a small number of ciphers. It is now deprecated
75 **Warning:** This function will be removed in a future version of Mbed TLS. If
D3.0-migration-guide.md15 - Changing function signatures, e.g. adding return codes, adding extra parameters, or making some a…
70 …as public, you need to change your code. If an accessor (getter/setter) function exists, use that.…
72 If no accessor function exists, please open an [enhancement request against Mbed TLS](https://githu…
87 The file `include/mbedtls/net.h` was removed because its only function was to
106 The default reaction to a failed check was to call a function
107 `mbedtls_param_failed()` which the application had to provide. If this function
132 entropy function.
163 The function `mbedtls_mpi_is_prime()` was removed. Please use
192 - The function `mbedtls_md_init_ctx()` was removed; please use
196 provide your own version of that function), please use
[all …]
/mbedtls-3.5.0/programs/test/
Ddlopen.c40 #define CHECK_DLERROR(function, argument) \ argument
47 function, argument, CHECK_DLERROR_error); \
Dselftest.c227 int (*function)(int); member
483 if (test->function(v) != 0) { in main()
512 if (test->function(v) != 0) { in main()
/mbedtls-3.5.0/scripts/data_files/driver_templates/
DOS-template-opaque.jinja1 {# One Shot function's dispatch code for opaque drivers.
4 * entry_point: the name of the entry point that this function dispatches to.
DOS-template-transparent.jinja1 {# One Shot function's dispatch code for transparent drivers.
4 * entry_point: the name of the entry point that this function dispatches to.
/mbedtls-3.5.0/doxygen/
Dmbedtls.doxyfile31 # We mostly use \retval declarations to document which error codes a function
35 # function, we can leave the description part of the \retval command blank.
/mbedtls-3.5.0/docs/architecture/psa-migration/
Dtesting.md41 - in `test_suite_pk` we have a new test function `pk_psa_utils` that exercises
45 - in `test_suite_pk` we modified the existing `pk_psa_sign` test function to
47 - in `test_suite_pkwrite` we should have a new test function checking that
55 - in `test_suite_x509write` we have a new test function
/mbedtls-3.5.0/docs/proposed/
Dpsa-driver-interface.md35 … involve any platform-specific consideration. Driver calls are simple C function calls. Interactio…
92 …#driver-entry-points) or driver entry point family. An entry point is a function defined by the dr…
96function in the driver that implements the corresponding function. If a function is not listed her…
119function name, the driver is considered available for this cryptographic mechanism. If a driver in…
127 …e that the core supports. If the prefix of this driver is `"acme"`, the function that performs the…
135 …ation with either curve). If the prefix of this driver is `"acme"`, the function that performs the…
179function in the PSA Cryptography API. For example, if a call to `psa_sign_hash()` is dispatched to…
181 …nd for PSA Cryptography in particular: `PSA_SUCCESS` indicates that the function succeeded, and `P…
208 …is provided to report the actual length of the data written in the buffer if the function succeeds.
310 …_capacity()`. The core will always enforce the capacity, therefore this function does not need to …
[all …]

123