Searched refs:function (Results 1 – 25 of 95) sorted by relevance
1234
115 function: FunctionInfo,125 return c_declare(function.return_type, wrapper_name, '')150 def _underlying_function_name(self, function: FunctionInfo) -> str:155 return function.name157 def _return_variable_name(self, function: FunctionInfo) -> str:162 function: FunctionInfo,170 call = '({})({})'.format(self._underlying_function_name(function),172 if function.returns_void():175 ret_name = self._return_variable_name(function)176 ret_decl = c_declare(function.return_type, ret_name, '')[all …]
32 self.function = None #type: Optional[str]44 def set_function(self, function: str) -> None:45 self.function = function53 if self.function is None:66 assert self.function is not None # guide mypy73 out.write(self.function + ':' + ':'.join(self.arguments) + '\n')
69 function: str, note: str,74 .format(function,78 tc.set_function(function)
497 def accept_test_case_line(self, function: str, argument: str) -> bool:513 def add_test_case_line(self, function: str, argument: str) -> None:516 if function.endswith('_algorithm'):518 if function == 'key_agreement_algorithm' and \523 function = 'other_algorithm'524 sets += self.table_by_test_function[function]525 if self.accept_test_case_line(function, argument):
1 #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 the123 * underlying test function. Both the wrapper and the underlying function129 * dereferences. Each wrapper function hard-codes the136 * \brief Table of test function wrappers. Used by dispatch_test().[all …]
7 error_strerror:-0x4080:"RSA - Bad input parameters to function"11 error_strerror:-0x40A0:"RSA - Bad input parameters to function \: AES - Invalid key length"
69 def _skip_function(self, function: c_wrapper_generator.FunctionInfo) -> bool:70 if function.return_type != 'psa_status_t':72 if function.name in self._SKIP_FUNCTIONS:83 function: c_wrapper_generator.FunctionInfo) -> str:85 if function.return_type == 'psa_status_t':87 return super()._return_variable_name(function)155 function: c_wrapper_generator.FunctionInfo,159 for param in self._detect_buffer_parameters(function.arguments,161 if self._parameter_should_be_copied(function.name,162 function.arguments[param.index].name))[all …]
42 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))
1 # Classify all '.function' files as C for syntax highlighting purposes2 *.function linguist-language=C
16 # Allow splitting function calls between arguments102 # No spaces inside function parentheses104 # (The case where the function has no parameters/arguments)107 # No spaces inside the first parentheses in a function type139 # Remove space after star in a function return type191 # At least 1 space between a function return type and the function name194 # No space between a function name and its arguments/parameters
37 …function 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…60 …function file` (e.g. `suites/test_suite_rsa.function`) and a `data file` (e.g. `suites/test_suite_…
2 :langmap=c\:.c.h.function:\
12 …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…54 …function 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 […72 …function 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`.
12 …he official API specification). Legacy crypto, X.509, TLS, or any other function which is not call…21 …function. 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…74 …function 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 …]
32 …- There should be one return statement per free function or method at the end of the free function…36 …s of common error handling blocks and single points of function return at the bottom of a function.39 …- Macros shall not be defined within a function or a block and should be defined at the top of a f…64 - There shall be no direct or indirect use of unbounded recursive function calls.66 …re is a free function or object method that allocates a resource, then there should be one that de…71 …- Pointers or references to read-only objects or storage, including but not limited to function pa…79 …e declared as such using the `OT_UNUSED_VARIABLE` macro at the top of a function or method before …107 - There shall be no direct or indirect use of recursive function calls.134 …- All OpenThread class, namespace, structure, method, function, enumeration, and type names in the…135 …ures, methods, functions, enumerations, and types as well as method and function parameters in the…[all …]
158 function(add_test_suite suite_name)224 -f ${CMAKE_CURRENT_SOURCE_DIR}/suites/test_suite_${suite_name}.function226 -t ${CMAKE_CURRENT_SOURCE_DIR}/suites/main_test.function227 -p ${CMAKE_CURRENT_SOURCE_DIR}/suites/host_test.function229 --helpers-file ${CMAKE_CURRENT_SOURCE_DIR}/suites/helpers.function233 ${CMAKE_CURRENT_SOURCE_DIR}/suites/test_suite_${suite_name}.function235 ${CMAKE_CURRENT_SOURCE_DIR}/suites/main_test.function236 ${CMAKE_CURRENT_SOURCE_DIR}/suites/host_test.function237 ${CMAKE_CURRENT_SOURCE_DIR}/suites/helpers.function
15 `psa_crypto_init()` before calling any function from the SSL/TLS, X.509 or PK30 `psa_crypto_init()` before you call any other `psa_xxx()` function. Other38 calling any function from PK, X.509 or TLS; however it doesn't change anything72 **New API function:** `mbedtls_pk_setup_opaque()` - can be used to111 **New API function:** `mbedtls_ssl_set_hs_ecjpake_password_opaque()`.112 Call this function from an application to register a PSA key for use with the124 There is a new API function `mbedtls_cipher_setup_psa()` to set up a context127 This function only worked for a small number of ciphers. It is now deprecated131 **Warning:** This function will be removed in a future version of Mbed TLS. If
16 …third-party drivers. Operations that are completed within one step (one function call), such as ve…22 …function 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 …]
36 …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 substitution65 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…69 …function is a `static inline` function that does nothing (not a macro, to avoid accidentally skipp…71 …function 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 …]
21 …function 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…
28 #define CHECK_DLERROR(function, argument) \ argument35 function, argument, CHECK_DLERROR_error); \
1 {# One Shot function's dispatch code for opaque drivers.4 * entry_point: the name of the entry point that this function dispatches to.
1 {# One Shot function's dispatch code for transparent drivers.4 * entry_point: the name of the entry point that this function dispatches to.
2 # This module provides function for joining paths15 function(join_paths joined_path first_path_segment)
32 # We mostly use \retval declarations to document which error codes a function36 # function, we can leave the description part of the \retval command blank.