| /optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
| H A D | platform.h | 16 * disabled, this header just defines `mbedtls_xxx` function names 17 * as aliases to the standard `xxx` function. 65 …RM_STD_SNPRINTF mbedtls_platform_win32_snprintf /**< The default \c snprintf function to use. */ 67 #define MBEDTLS_PLATFORM_STD_SNPRINTF snprintf /**< The default \c snprintf function to use. */ 72 …STD_VSNPRINTF mbedtls_platform_win32_vsnprintf /**< The default \c vsnprintf function to use. */ 74 #define MBEDTLS_PLATFORM_STD_VSNPRINTF vsnprintf /**< The default \c vsnprintf function to use. … 78 #define MBEDTLS_PLATFORM_STD_PRINTF printf /**< The default \c printf function to use. */ 81 #define MBEDTLS_PLATFORM_STD_FPRINTF fprintf /**< The default \c fprintf function to use. */ 84 #define MBEDTLS_PLATFORM_STD_CALLOC calloc /**< The default \c calloc function to use. */ 87 #define MBEDTLS_PLATFORM_STD_FREE free /**< The default \c free function to use. */ [all …]
|
| H A D | md.h | 25 /** Bad input parameters to function. */ 141 * \brief This function returns the message-digest information 152 * \brief This function initializes a message-digest context without 155 * This function should always be called first. It prepares the 162 * \brief This function clears the internal structure of \p ctx and 169 * Calling this function if you have previously 171 * You must not call this function if you have not called 178 * \brief This function selects the message digest algorithm to use, 200 * \brief This function clones the state of a message-digest 204 * this function. [all …]
|
| H A D | platform_util.h | 46 * Do not use this macro directly to annotate function: instead, 61 /** Critical-failure function 63 * This macro appearing at the beginning of the declaration of a function 72 * there are near-unavoidable circumstances under which the function 79 /** Ordinary-failure function 81 * This macro appearing at the beginning of the declaration of a function 88 * of a function that is annotated with #MBEDTLS_CHECK_RETURN. 102 /** Benign-failure function 104 * This macro appearing at the beginning of the declaration of a function 108 * a #MBEDTLS_CHECK_RETURN_OPTIONAL annotation indicates that the function [all …]
|
| H A D | rsa.h | 32 /** Bad input parameters to function. */ 116 mask generating function used in the 130 * \brief This function initializes an RSA context. 132 * \note This function initializes the padding and the hash 142 * \brief This function sets padding for an already initialized RSA 168 * function but may be not suitable for some operations. 179 * \brief This function retrieves padding mode of initialized 190 * \brief This function retrieves hash identifier of mbedtls_md_type_t 201 * \brief This function imports a set of core parameters into an 204 * \note This function can be called multiple times for successive [all …]
|
| H A D | sha512.h | 44 int MBEDTLS_PRIVATE(is384); /*!< Determines which function to use: 55 * \brief This function initializes a SHA-512 context. 63 * \brief This function clears a SHA-512 context. 66 * in which case this function does nothing. If it 73 * \brief This function clones the state of a SHA-512 context. 82 * \brief This function starts a SHA-384 or SHA-512 checksum 86 * \param is384 Determines which function to use. This must be 91 * function will return #MBEDTLS_ERR_SHA512_BAD_INPUT_DATA. 99 * \brief This function feeds an input buffer into an ongoing 116 * \brief This function finishes the SHA-512 operation, and writes [all …]
|
| H A D | ccm.h | 52 /** Bad input parameters to the function. */ 102 * \brief This function initializes the specified CCM context, 111 * \brief This function initializes the CCM context set in the 129 * \brief This function releases and clears the specified CCM context 132 * \param ctx The CCM context to clear. If this is \c NULL, the function 138 * \brief This function encrypts a buffer using CCM. 180 * \brief This function encrypts a buffer using CCM*. 188 * \note When using this function in a variable tag length context, 190 * this function. 229 * \brief This function performs a CCM authenticated decryption of a [all …]
|
| H A D | sha256.h | 45 int MBEDTLS_PRIVATE(is224); /*!< Determines which function to use: 56 * \brief This function initializes a SHA-256 context. 63 * \brief This function clears a SHA-256 context. 66 * case this function returns immediately. If it is not \c NULL, 72 * \brief This function clones the state of a SHA-256 context. 81 * \brief This function starts a SHA-224 or SHA-256 checksum 85 * \param is224 This determines which function to use. This must be 90 * function will return #MBEDTLS_ERR_SHA512_BAD_INPUT_DATA. 98 * \brief This function feeds an input buffer into an ongoing 115 * \brief This function finishes the SHA-256 operation, and writes [all …]
|
| H A D | ctr_drbg.h | 14 * as the underlying block cipher, with a derivation function. 217 /*!< The entropy callback function. */ 219 void *MBEDTLS_PRIVATE(p_entropy); /*!< The context for the entropy function. */ 235 * \brief This function initializes the CTR_DRBG context, 249 * \brief This function seeds and sets up the CTR_DRBG 275 * The _seed_material_ value passed to the derivation function in 278 * - A string obtained by calling \p f_entropy function for the entropy 284 * obtained by calling \p f_entropy function for the specified length. 288 * - A string obtained by calling \p f_entropy function for the entropy nonce 289 * length. If the entropy nonce length is \c 0, this function does not [all …]
|
| H A D | hmac_drbg.h | 88 int(*MBEDTLS_PRIVATE(f_entropy))(void *, unsigned char *, size_t); /*!< entropy function */ 89 void *MBEDTLS_PRIVATE(p_entropy); /*!< context for the entropy function */ 107 * This function makes the context ready for mbedtls_hmac_drbg_seed(), 146 * \note During the initial seeding, this function calls 153 * after this function returns successfully, 196 * This function is meant for use in algorithms that need a pseudorandom 202 * after this function returns successfully, 226 * \brief This function turns prediction resistance on or off. 242 * \brief This function sets the amount of entropy grabbed on each 257 * or mbedtls_hmac_drbg_random_with_add() after which the entropy function [all …]
|
| H A D | psa_util.h | 26 /** The random generator function for the PSA subsystem. 28 * This function is suitable as the `f_rng` random generator function 31 * The implementation of this function depends on the configuration of the 34 * \note This function may only be used if the PSA crypto subsystem is active. 36 * this function, and you must not call this function after calling 45 * This function may fail if \p output_size is too 81 * \return If the curve is supported in the PSA API, this function 96 * \return If the curve is supported in the PSA API, this function 107 * \brief This function returns the PSA algorithm identifier 112 * \warning If \p md_type is \c MBEDTLS_MD_NONE, this function will [all …]
|
| H A D | ecdh.h | 167 * \brief This function generates an ECDH keypair on an elliptic 170 * This function performs the first of two core computations 183 * \param f_rng The RNG function to use. This must not be \c NULL. 196 * \brief This function computes the shared secret. 198 * This function performs the second of two core computations 217 * \param f_rng The RNG function to use. This must not be \c NULL. 232 * \brief This function initializes an ECDH context. 239 * \brief This function sets up the ECDH context with the information 242 * This function should be called after mbedtls_ecdh_init() but 244 * this function before mbedtls_ecdh_read_params(). [all …]
|
| H A D | ecp.h | 34 /** Bad input parameters to function. */ 217 * Otherwise, \p modp must point to a function that takes an \p mbedtls_mpi in the 254 int(*MBEDTLS_PRIVATE(modp))(mbedtls_mpi *); /*!< The function for fast pseudo-reduction 465 * function performing the computation. It is then the 473 * same; they must not be used until the function finally 481 * function equivalent to the function with the same name 483 * module, restart is disabled unless the function accepts 486 * that context. For function in the SSL module, restart is 492 * function to set the values specified via those interfaces, 540 * \brief This function retrieves the information defined in [all …]
|
| H A D | hkdf.h | 6 * The HMAC-based Extract-and-Expand Key Derivation Function (HKDF) is 24 /** Bad input parameters to function. */ 33 * \brief This is the HMAC-based Extract-and-Expand Key Derivation Function 36 * \param md A hash function; md.size denotes the length of the hash 37 * function output in bytes. 65 * \warning This function should only be used if the security of it has been 70 * \param md A hash function; md.size denotes the length of the 71 * hash function output in bytes. 94 * \warning This function should only be used if the security of it has been 99 * \param md A hash function; md.size denotes the length of the hash [all …]
|
| /optee_os/lib/libmbedtls/mbedtls/include/psa/ |
| H A D | crypto_se_driver.h | 5 * This header declares types and function signatures for cryptography 106 /** \brief A driver initialization function. 144 * a secure element can be done either as a single function call (via the 159 /** \brief A function that starts a secure element MAC operation for a PSA 178 /** \brief A function that continues a previously started secure element MAC 192 /** \brief a function that completes a previously started secure element MAC 213 /** \brief A function that completes a previously started secure element MAC 233 /** \brief A function that aborts a previous started secure element MAC 241 /** \brief A function that performs a secure element MAC operation in one 268 /** \brief A function that performs a secure element MAC operation in one [all …]
|
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | psa_crypto_aead.h | 17 * \note The signature of this function is that of a PSA driver 18 * aead_encrypt entry point. This function behaves as an aead_encrypt 79 * \note The signature of this function is that of a PSA driver 80 * aead_decrypt entry point. This function behaves as an aead_decrypt 141 * \note The signature of this function is that of a PSA driver 142 * aead_encrypt_setup entry point. This function behaves as an 184 * \note The signature of this function is that of a PSA driver 185 * aead_decrypt_setup entry point. This function behaves as an 227 * \note The signature of this function is that of a PSA driver aead_set_nonce 228 * entry point. This function behaves as an aead_set_nonce entry point as [all …]
|
| H A D | psa_crypto_hash.h | 16 * \note The signature of this function is that of a PSA driver hash_compute 17 * entry point. This function behaves as a hash_compute entry point as 50 * \note The signature of this function is that of a PSA driver hash_setup 51 * entry point. This function behaves as a hash_setup entry point as 86 * \note The signature of this function is that of a PSA driver hash_clone 87 * entry point. This function behaves as a hash_clone entry point as 91 * This function copies the state of an ongoing hash operation to 92 * a new operation object. In other words, this function is equivalent 96 * that was passed to \p source_operation. After this function returns, the 118 * \note The signature of this function is that of a PSA driver hash_update [all …]
|
| H A D | lmots.h | 49 * \brief This function converts a \ref psa_status_t to a 60 * \brief This function initializes a public LMOTS context 68 * \brief This function uninitializes a public LMOTS context 76 * \brief This function imports an LMOTS public key into a 79 * \note Before this function is called, the context must 97 * \brief This function exports an LMOTS public key from a 100 * \note Before this function is called, the context must 120 * \brief This function creates a candidate public key from 125 * \note This function is exposed publicly to be used in LMS 154 * \brief This function verifies a LMOTS signature, using a [all …]
|
| H A D | debug_internal.h | 16 * \brief Print a message to the debug output. This function is always used 27 * \attention This function is intended for INTERNAL usage within the 35 * \brief Print the return value of a function to the debug output. This 36 * function is always used through the MBEDTLS_SSL_DEBUG_RET() macro, 43 * \param text the name of the function that returned the error 46 * \attention This function is intended for INTERNAL usage within the 54 * \brief Output a buffer of size len bytes to the debug output. This function 67 * \attention This function is intended for INTERNAL usage within the 76 * \brief Print a MPI variable to the debug output. This function is always 88 * \attention This function is intended for INTERNAL usage within the [all …]
|
| H A D | psa_crypto_mac.h | 16 * \note The signature of this function is that of a PSA driver mac_compute 17 * entry point. This function behaves as a mac_compute entry point as 59 * \note The signature of this function is that of a PSA driver mac_sign_setup 60 * entry point. This function behaves as a mac_sign_setup entry point as 94 * \note The signature of this function is that of a PSA driver mac_verify_setup 95 * entry point. This function behaves as a mac_verify_setup entry point as 129 * \note The signature of this function is that of a PSA driver mac_update 130 * entry point. This function behaves as a mac_update entry point as 135 * mbedtls_psa_mac_verify_setup() before calling this function. 137 * If this function returns an error status, the PSA core aborts the [all …]
|
| /optee_os/lib/libutils/ext/include/ |
| H A D | fault_mitigation.h | 26 * while the protected function or one of the ftmn_*() functions are 45 * this by relying on the called function to update a state in 46 * struct ftmn_func_arg which is checked when the function has returned. 62 * While a function is executed it can update its state as a way of keeping 63 * track of important passages inside the function. When the function 76 * struct ftmn_func_arg - track a called function 80 * When the call of a function is tracked @hash is initialized to hash of 81 * caller xored with hash of called function. Before the called function 83 * restore @hash to the hash of the calling function. This allows the 84 * calling function to confirm that the correct function has been called. [all …]
|
| /optee_os/core/arch/arm/include/sm/ |
| H A D | teesmc_opteed.h | 10 * This file specify SMC function IDs used when returning from TEE to the 13 * All SMC Function IDs indicates SMC32 Calling Convention but will carry 25 * r0/x0 SMC Function ID, TEESMC_OPTEED_RETURN_ENTRY_DONE 38 * r0/x0 SMC Function ID, TEESMC_OPTEED_RETURN_ON_DONE 49 * r0/x0 SMC Function ID, TEESMC_OPTEED_RETURN_OFF_DONE 60 * r0/x0 SMC Function ID, TEESMC_OPTEED_RETURN_SUSPEND_DONE 71 * r0/x0 SMC Function ID, TEESMC_OPTEED_RETURN_RESUME_DONE 82 * r0/x0 SMC Function ID, TEESMC_OPTEED_RETURN_CALL_DONE 94 * r0/x0 SMC Function ID, TEESMC_OPTEED_RETURN_FIQ_DONE 104 * r0/x0 SMC Function ID, TEESMC_OPTEED_RETURN_SYSTEM_OFF_DONE [all …]
|
| /optee_os/core/arch/riscv/include/tee/ |
| H A D | teeabi_opteed.h | 11 * This file specify ABI function IDs used when returning from TEE to the 19 * a0 ABI Function ID, TEEABI_OPTEED_RETURN_ENTRY_DONE 30 * a0 ABI Function ID, TEEABI_OPTEED_RETURN_ON_DONE 41 * a0 ABI Function ID, TEEABI_OPTEED_RETURN_OFF_DONE 52 * a0 ABI Function ID, TEEABI_OPTEED_RETURN_SUSPEND_DONE 63 * a0 ABI Function ID, TEEABI_OPTEED_RETURN_RESUME_DONE 74 * a0 ABI Function ID, TEEABI_OPTEED_RETURN_CALL_DONE 85 * a0 ABI Function ID, TEEABI_OPTEED_RETURN_FIQ_DONE 95 * a0 ABI Function ID, TEEABI_OPTEED_RETURN_SYSTEM_OFF_DONE 105 * a0 ABI Function ID, TEEABI_OPTEED_RETURN_SYSTEM_RESET_DONE
|
| /optee_os/lib/libutils/isoc/ |
| H A D | bget.doc | 102 If the C library malloc() function is too slow, not present in your 124 doesn't make much sense to provide a release function without an 125 acquisition function, does it?). Once the call-back functions have been 130 compaction function has been supplied. If so, it is called (with the 133 looping). If the compaction function is able to free any storage (it 136 if it fails again, call the compaction function again with the 139 If the compaction function returns zero, indicating failure to free 140 space, or no compaction function is defined, BGET next tests whether a 141 non-NULL allocation function was supplied to bectl(). If so, that 142 function is called with an argument indicating how many bytes of [all …]
|
| /optee_os/core/arch/arm/plat-stm32mp1/nsec-service/ |
| H A D | stm32mp1_smc.h | 26 * SMC function IDs for STM32 Service queries 34 * SIP function STM32_SIP_FUNC_CALL_COUNT 37 * (output) Count of defined function IDs 55 * SIP function STM32_SIP_SVC_FUNC_UID 66 * SIP function STM32_SIP_FUNC_VERSION 77 * Argument a0: (input) SMCCC function ID 86 /* Service ID for function ID STM32_SIP_FUNC_BSEC */ 96 * SIP function STM32_SIP_SVC_FUNC_SCMI_AGENT0 97 * SIP function STM32_SIP_SVC_FUNC_SCMI_AGENT1
|
| /optee_os/ta/pkcs11/src/ |
| H A D | processing.c | 59 static bool func_matches_state(enum processing_func function, in func_matches_state() argument 62 switch (function) { in func_matches_state() 85 TEE_Panic(function); in func_matches_state() 91 enum processing_func function) in get_active_session() argument 96 func_matches_state(function, session->processing->state)) in get_active_session() 328 * be freed at function out. in entry_generate_secret() 595 * @function - encrypt, decrypt, sign, verify, digest, ... 599 enum processing_func function) in entry_processing_init() argument 622 if (function != PKCS11_FUNCTION_DIGEST) { in entry_processing_init() 641 if (function != PKCS11_FUNCTION_DIGEST) { in entry_processing_init() [all …]
|