Home
last modified time | relevance | path

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

1234

/mbedtls-latest/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_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. */
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"
/mbedtls-latest/tests/scripts/
Dpsa_collect_statuses.py42 value, function, tail = line.split(':', 2)
43 if function not in self.functions:
44 self.functions[function] = {}
45 fdata = self.functions[function]
46 if value not in self.functions[function]:
64 for function in sorted(self.functions.keys()):
65 fdata = self.functions[function]
68 sys.stdout.write('{} {}\n'.format(function, name))
/mbedtls-latest/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`.
Dpsa-shared-memory.md12 …he official API specification). Legacy crypto, X.509, TLS, or any other function which is not call…
21function. This document is concerned with environments where the arguments passed to a PSA Crypto …
60 Vulnerability example: suppose that an RSA signature function works by formatting the data in place…
74function processes the ciphertext incrementally by simultaneously writing the plaintext to the out…
78 If a function both has an input argument and an output argument in shared memory, and processes its…
126 …om the content of the buffer being modified or observed during the execution of the function. (...)
242 * Write a small program that uses a PSA function which copies inputs or outputs.
254 We may either copy buffers on an ad-hoc basis using `memcpy()` in each PSA function, or use a unifi…
316 …ng thing. This would not be the case if we relied on the library's copy function to do the poisoni…
326 …nput buffers, keep a copy of the original and copy it back once the PSA function returns. For outp…
[all …]
Dpsa-crypto-implementation-structure.md52 …re generated in a psa_crypto_driver_wrappers_no_static.c C file and the function prototypes declar…
73 …r implements among other entry points the "import_key" entry point. The function implementing this…
87 * (If adding `PSA_IS_xxx`) `tests/suites/test_suite_psa_crypto_metadata.function` — [New functions …
88 * [ ] `tests/suites/test_suite_psa_crypto*.data`, `tests/suites/test_suite_psa_crypto*.function` — …
97 * [ ] `tests/suites/test_suite_psa_crypto.data`, `tests/suites/test_suite_psa_crypto.function`, `te…
121 …New `PSA_IS_xxx` macros must be declared in `tests/suites/test_suite_psa_crypto_metadata.function`.
139 The general structure of a cryptographic operation function is:
141 1. API function defined in `library/psa_crypto.c`. The entry point performs generic checks that don…
143 3. Built-in implementation in `library/psa_crypto_*.c` (with function declarations in the correspon…
150 Some mechanisms require state to be kept between function calls. Keys and key-like data is kept in …
[all …]
/mbedtls-latest/
D.uncrustify.cfg16 # Allow splitting function calls between arguments
102 # No spaces inside function parentheses
104 # (The case where the function has no parameters/arguments)
107 # No spaces inside the first parentheses in a function type
139 # Remove space after star in a function return type
191 # At least 1 space between a function return type and the function name
194 # No space between a function name and its arguments/parameters
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.gitattributes1 # Classify all '.function' files as C for syntax highlighting purposes
2 *.function linguist-language=C
/mbedtls-latest/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 TLS (`psa_register_se_driver`) and many functions that drivers must impl…
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-latest/docs/
Duse-psa-crypto.md15 `psa_crypto_init()` before calling any function from the SSL/TLS, X.509 or PK
30 `psa_crypto_init()` before you call any other `psa_xxx()` function. Other
38 calling any function from PK, X.509 or TLS; however it doesn't change anything
72 **New API function:** `mbedtls_pk_setup_opaque()` - can be used to
106 **New API function:** `mbedtls_ssl_set_hs_ecjpake_password_opaque()`.
107 Call this function from an application to register a PSA key for use with the
119 There is a new API function `mbedtls_cipher_setup_psa()` to set up a context
122 This function only worked for a small number of ciphers. It is now deprecated
126 **Warning:** This function will be removed in a future version of Mbed TLS. If
Dpsa-driver-example-and-guide.md16 …third-party drivers. Operations that are completed within one step (one function call), such as ve…
22function in the driver wrapper. Using flags set at compile time, the driver wrapper ascertains whe…
76 **4. For each operation being accelerated, locate the function in the driver dispatch layer that co…
77 …_driver_wrapper` followed by the entry point name. So, for example, the function `psa_driver_wrapp…
79 **5. If a driver entry point function has been provided then ensure it has the same signature as th…
80 …hould have the same signature as the driver wrapper function. The purpose of the entry point funct…
86 **6. Modify the driver wrapper function** \
87 Each driver wrapper function contains a `switch` statement which checks the location of the key. If…
92 The diagram below shows the layout of a driver wrapper function which can dispatch to two transpare…
154 … PSA's, it is recommended to implement a status code translation function. The function `p256_to_p…
[all …]
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-latest/tests/
DCMakeLists.txt191 function(add_test_suite suite_name)
275 -f ${CMAKE_CURRENT_SOURCE_DIR}/suites/test_suite_${suite_name}.function
277 -t ${CMAKE_CURRENT_SOURCE_DIR}/suites/main_test.function
278 -p ${CMAKE_CURRENT_SOURCE_DIR}/suites/host_test.function
280 --helpers-file ${CMAKE_CURRENT_SOURCE_DIR}/suites/helpers.function
284 ${CMAKE_CURRENT_SOURCE_DIR}/suites/test_suite_${suite_name}.function
286 ${CMAKE_CURRENT_SOURCE_DIR}/suites/main_test.function
287 ${CMAKE_CURRENT_SOURCE_DIR}/suites/host_test.function
288 ${CMAKE_CURRENT_SOURCE_DIR}/suites/helpers.function
/mbedtls-latest/3rdparty/p256-m/p256-m/
DREADME.md40 - Each public function fully validates its inputs and returns specific errors.
116 **Warning:** p256-m requires an externally-provided RNG function. If that
117 function is not cryptographically secure, then neither is p256-m's key
139 - Cleaning up secret values from the stack before returning from a function.
146 - A secure RNG function needs to be provided externally, see
162 that the externally-provided RNG function uses at most 384 bytes of stack).
166 Here are the timings of each public function in milliseconds measured on
285 function doesn't include validation of the peer's public key, which should be
331 internal `u32_muladd64()` function, as well as two pure C versions of this
332 function, depending on whether `MUL64_IS_CONSTANT_TIME`.
[all …]
/mbedtls-latest/docs/architecture/psa-thread-safety/
Dpsa-thread-safety.md11 …ribed in [Key store consistency and abstraction function](#key-store-consistency-and-abstraction-f…
74 > If the application concurrently modifies an input parameter while a function call is in progress,…
115function, and multiple calls to `psa_crypto_init` are explicitly allowed. It is valid to have mult…
119 Once initialized, threads can use any PSA function if there is no overlap between their calls. All …
123 …al mutex locks and unlocks (except for when the lock/unlock occurs in a function that has no retur…
171 …_SLOT_PENDING_DELETION -> PSA_SLOT_EMPTY` transition can be done by any function which calls `psa_…
176 The state of a key slot is updated via the internal function `psa_key_slot_state_transition`. To ch…
178 Changing a slot's state to `PSA_SLOT_EMPTY` is done via `psa_wipe_key_slot`, this function wipes th…
182 ##### Key store consistency and abstraction function
186 …ed above must be called while the mutex is held; there is a convenience function `psa_unregister_r…
[all …]
/mbedtls-latest/docs/architecture/psa-migration/
Dpsa-legacy-bridges.md141 … either by configuring the underlying `mbedtls_rsa_context` or when calling the operation function.
166 There is a function `mbedtls_pk_setup_opaque` that mostly does this. However, it has several limita…
170 …_PSA_CRYPTO` at an early stage of their migration to PSA. However, this function is useful to use …
175 * Copying, which requires a new function. This requires an exportable key but creates a fully indep…
192 …, or at least the curve's size. Therefore we are not going to add a generic function at this stage.
206 Each action to implement a function entails:
208 * Implement the library function.
251function that creates a PSA key with the same key material and algorithm. “Same key material” is s…
256 … flags cannot be deduced from the PK context either, but the conversion function could sensibly ju…
257 …essary, for the conversion function to allow customizing these aspects. If it doesn't, users can c…
[all …]
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-latest/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-latest/programs/test/
Ddlopen.c28 #define CHECK_DLERROR(function, argument) \ argument
35 function, argument, CHECK_DLERROR_error); \
/mbedtls-latest/pkgconfig/
DJoinPaths.cmake2 # This module provides function for joining paths
15 function(join_paths joined_path first_path_segment)
/mbedtls-latest/docs/proposed/
Dpsa-driver-interface.md37 … involve any platform-specific consideration. Driver calls are simple C function calls. Interactio…
94 …#driver-entry-points) or driver entry point family. An entry point is a function defined by the dr…
98function in the driver that implements the corresponding function. If a function is not listed her…
121function name, the driver is considered available for this cryptographic mechanism. If a driver in…
129 …e that the core supports. If the prefix of this driver is `"acme"`, the function that performs the…
137 …ation with either curve). If the prefix of this driver is `"acme"`, the function that performs the…
181function in the PSA Cryptography API. For example, if a call to `psa_sign_hash()` is dispatched to…
183 …nd for PSA Cryptography in particular: `PSA_SUCCESS` indicates that the function succeeded, and `P…
210 …is provided to report the actual length of the data written in the buffer if the function succeeds.
351 …ling one of the type-specific functions below. To determine the correct function, the driver can c…
[all …]

1234