Home
last modified time | relevance | path

Searched full:size (Results 1 – 25 of 1387) sorted by relevance

12345678910>>...56

/trusted-firmware-m-latest/interface/include/psa/
Dcrypto_sizes.h4 * \brief PSA cryptography module: Mbed TLS buffer size macros
48 /** The size of the output of psa_hash_finish(), in bytes.
50 * This is also the hash size that psa_hash_verify() expects.
57 * \return The hash size for the specified hash algorithm.
77 /** The input block size of a hash algorithm, in bytes.
87 * \return The block size in bytes for the specified hash algorithm.
89 * An implementation can return either 0 or the correct size for a
111 * Maximum size of a hash.
114 * is the maximum size of a hash in bytes.
116 /* Note: for HMAC-SHA-3, the block size is 144 bytes for HMAC-SHA3-224,
[all …]
/trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/host/src/tests/common/
Dtest_log.h33 #define TEST_PRINT_WORD_BUFF_TRACE(buffName, size, buff) {\ argument
35 TEST_PRINTF_MESSAGE("printing %s, word size %d", buffName, (unsigned int)size);\
36 for (i=0; i< size; i++) {\
45 #define TEST_PRINT_BYTE_BUFF_TRACE(buffName, size, buff) {\ argument
47 TEST_PRINTF_MESSAGE("printing %s, byte size %d", buffName, (unsigned int)size);\
48 for (i=0; i< size; i++) {\
85 #define TEST_PRINT_WORD_BUFF(buffName, size, buff) {\ argument
87 TEST_PRINTF("printing %s, word size %d", buffName, (unsigned int)size);\
88 for (i=0; i< size; i++) {\
98 #define TEST_PRINT_BYTE_BUFF(buffName, size, buff) {\ argument
[all …]
/trusted-firmware-m-latest/platform/ext/common/template/
Dattest_hal.c47 tfm_attest_hal_get_verification_service(uint32_t *size, uint8_t *buf) in tfm_attest_hal_get_verification_service() argument
53 err = tfm_plat_otp_read(PLAT_OTP_ID_VERIFICATION_SERVICE_URL, *size, buf); in tfm_attest_hal_get_verification_service()
64 copy_size = *size < otp_size ? *size : otp_size; in tfm_attest_hal_get_verification_service()
66 *size = tfm_strnlen((char*)buf, copy_size); in tfm_attest_hal_get_verification_service()
72 tfm_attest_hal_get_profile_definition(uint32_t *size, uint8_t *buf) in tfm_attest_hal_get_profile_definition() argument
78 err = tfm_plat_otp_read(PLAT_OTP_ID_PROFILE_DEFINITION, *size, buf); in tfm_attest_hal_get_profile_definition()
89 copy_size = *size < otp_size ? *size : otp_size; in tfm_attest_hal_get_profile_definition()
91 *size = tfm_strnlen((char*)buf, copy_size); in tfm_attest_hal_get_profile_definition()
96 enum tfm_plat_err_t tfm_plat_get_boot_seed(uint32_t size, uint8_t *buf) in tfm_plat_get_boot_seed() argument
100 err = tfm_plat_otp_read(PLAT_OTP_ID_BOOT_SEED, size, buf); in tfm_plat_get_boot_seed()
[all …]
/trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/shared/include/crypto_api/cc3x/
Dcc_ec_edw_api.h33 /*! EC Edwards modulus size in bits. */
34 #define CC_EC_EDW_MOD_SIZE_IN_BITS 255U /*!<\internal MOD - EC Edw modulus size*/
35 /*! EC Edwards order size in bits. */
36 #define CC_EC_EDW_ORD_SIZE_IN_BITS 255U /*!<\internal ORD - EC Edw generator order size*/
37 /*! EC Edwards modulus size in words. */
39 /*! EC Edwards modulus size in bytes. */
41 /*! EC Edwards order size in words. */
43 /*! EC Edwards order size in bytes. */
47 /*! EC Edwards seed size in bytes. */
49 /*! EC Edwards secret key size in bytes. */
[all …]
Dcc_ec_mont_api.h32 /*! EC Montgomery curve25519 modulus size in bits, words and bytes */
33 /*! EC Montgomery modulus size in bits. */
35 /*! EC Montgomery modulus size in words. */
37 /*! EC Montgomery modulus size in bytes. */
41 /*! EC Montgomery scalar size in bytes. */
43 /*! EC Montgomery scalar multiplication size in bytes. */
45 /*! EC Montgomery scalar seed size in bytes. */
89 … size_t *pResPointSize, /*!< [in/out] Pointer to the size of the public key in bytes.
90 … In - the size of the buffer. must be at least EC modulus
91size (for curve25519 - 32 bytes).
[all …]
Dcc_pka_defs_hw.h25 /*! The maximal RSA modulus size. */
27 /*! The maximal EC modulus size. */
30 /*! The size of the buffers for Barrett modulus tag NP, used in PKI
33 /*! The size of the buffers for Barrett modulus tag NP, used in ECC. */
35 /*! The actual size of Barrett modulus tag NP in words for current
39 /*! The maximal size of the PKA modulus. */
41 /*! The maximal size of the PKA public-key in words. */
43 /*! The maximal size of the PKA private-key in words. */
45 /*! The maximal size of the PKA KG buffer in words */
48 /*! The maximal size of the EC modulus in words. */
[all …]
/trusted-firmware-m-latest/platform/ext/target/arm/mps4/corstone315/
Dattest_hal.c48 tfm_attest_hal_get_verification_service(uint32_t *size, uint8_t *buf) in tfm_attest_hal_get_verification_service() argument
54 err = tfm_plat_otp_read(PLAT_OTP_ID_VERIFICATION_SERVICE_URL, *size, buf); in tfm_attest_hal_get_verification_service()
65 copy_size = *size < otp_size ? *size : otp_size; in tfm_attest_hal_get_verification_service()
67 *size = tfm_strnlen((char*)buf, copy_size); in tfm_attest_hal_get_verification_service()
73 tfm_attest_hal_get_profile_definition(uint32_t *size, uint8_t *buf) in tfm_attest_hal_get_profile_definition() argument
79 err = tfm_plat_otp_read(PLAT_OTP_ID_PROFILE_DEFINITION, *size, buf); in tfm_attest_hal_get_profile_definition()
90 copy_size = *size < otp_size ? *size : otp_size; in tfm_attest_hal_get_profile_definition()
92 *size = tfm_strnlen((char*)buf, copy_size); in tfm_attest_hal_get_profile_definition()
97 enum tfm_plat_err_t tfm_plat_get_boot_seed(uint32_t size, uint8_t *buf) in tfm_plat_get_boot_seed() argument
101 err = tfm_plat_otp_read(PLAT_OTP_ID_BOOT_SEED, size, buf); in tfm_plat_get_boot_seed()
[all …]
/trusted-firmware-m-latest/platform/ext/target/arm/rse/common/
Dattest_hal.c48 tfm_attest_hal_get_verification_service(uint32_t *size, uint8_t *buf) in tfm_attest_hal_get_verification_service() argument
54 err = tfm_plat_otp_read(PLAT_OTP_ID_VERIFICATION_SERVICE_URL, *size, buf); in tfm_attest_hal_get_verification_service()
65 copy_size = *size < otp_size ? *size : otp_size; in tfm_attest_hal_get_verification_service()
67 *size = tfm_strnlen((char*)buf, copy_size); in tfm_attest_hal_get_verification_service()
73 tfm_attest_hal_get_profile_definition(uint32_t *size, uint8_t *buf) in tfm_attest_hal_get_profile_definition() argument
79 err = tfm_plat_otp_read(PLAT_OTP_ID_PROFILE_DEFINITION, *size, buf); in tfm_attest_hal_get_profile_definition()
90 copy_size = *size < otp_size ? *size : otp_size; in tfm_attest_hal_get_profile_definition()
92 *size = tfm_strnlen((char*)buf, copy_size); in tfm_attest_hal_get_profile_definition()
97 enum tfm_plat_err_t tfm_plat_get_boot_seed(uint32_t size, uint8_t *buf) in tfm_plat_get_boot_seed() argument
102 enum tfm_plat_err_t tfm_plat_get_implementation_id(uint32_t *size, in tfm_plat_get_implementation_id() argument
[all …]
/trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/common/
Dpki.h59 bool PkiIsUint8ArrayEqualTo0(const uint8_t *arr, size_t size);
61 /*!< the function compares equality of two buffers of same size:
71 * The size of pTemp buffer is at least PKA register size appropriate to
72 * register size lenID and dataSizeBytes <= temp buffer size (in bytes).
79 uint32_t dataSizeBytes, /* [in] size of the data in bytes */
80 … uint32_t *pTemp); /* [in] pointer to the temp buffer of size >= register size. */
88 * The size (in 32-bit words) of pTemp buffer is at least the data size,
94 uint8_t *pDst, /* [out] pointer to the destination buffer of size >= sizeBytes. */
96 uint32_t sizeBytes, /* [in] size of the data in PKA register in bytes */
97 … uint32_t *pTemp); /* [in] pointer to the temp buffer of size (in bytes) >= sizeBytes. */
[all …]
Dpka_defs.h15 /* minimal and maximal allowed size of PKA data memory registers in bits */
27 /* PKA word size in bits/32bit words */
31 /* maximal size of extended register in "big PKA words" and in 32-bit words: *
32 the size defined according to RSA as more large, and used to define some *
38 /* Full register (operation) size including extra PKA-word (128/64-bit). Op size *
52 LEN_ID_N_BITS = 0, // 0 - for modulus size (RSA, EC)
53 LEN_ID_N_PKA_REG_BITS, // 1 - for operation size (RSA, EC)
54 LEN_ID_PQ_BITS, // 2 - for P, Q size (RSA)
55 LEN_ID_PQ_PKA_REG_BITS, // 3 - for operations on P, Q size (RSA)
56 LEN_ID_AUX_PRIME_BITS, // 4 - for P1,P2,Q1,Q2 101 bit size (RSA)
[all …]
/trusted-firmware-m-latest/platform/ext/target/stm/common/stm32l5xx/hal/Inc/
Dstm32l5xx_hal_hash_ex.h54 …SHEx_SHA224_Start(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffe…
55 …atusTypeDef HAL_HASHEx_SHA224_Accmlt(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size);
56 …SHA224_Accmlt_End(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffe…
57 …SHEx_SHA256_Start(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffe…
58 …atusTypeDef HAL_HASHEx_SHA256_Accmlt(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size);
59 …SHA256_Accmlt_End(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffe…
69 …x_SHA224_Start_IT(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffe…
70 …sTypeDef HAL_HASHEx_SHA224_Accmlt_IT(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size);
71 …224_Accmlt_End_IT(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffe…
72 …x_SHA256_Start_IT(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffe…
[all …]
/trusted-firmware-m-latest/platform/ext/target/stm/common/stm32u5xx/hal/Inc/
Dstm32u5xx_hal_hash_ex.h54 …StatusTypeDef HAL_HASHEx_SHA224_Start(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size,
56 …atusTypeDef HAL_HASHEx_SHA224_Accmlt(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size);
57 …sTypeDef HAL_HASHEx_SHA224_Accmlt_End(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size,
59 …StatusTypeDef HAL_HASHEx_SHA256_Start(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size,
61 …atusTypeDef HAL_HASHEx_SHA256_Accmlt(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size);
62 …sTypeDef HAL_HASHEx_SHA256_Accmlt_End(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size,
73 …tusTypeDef HAL_HASHEx_SHA224_Start_IT(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size,
75 …sTypeDef HAL_HASHEx_SHA224_Accmlt_IT(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size);
76 …peDef HAL_HASHEx_SHA224_Accmlt_End_IT(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size,
78 …tusTypeDef HAL_HASHEx_SHA256_Start_IT(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size,
[all …]
/trusted-firmware-m-latest/platform/ext/target/stm/common/stm32u5xx/hal/Src/
Dstm32u5xx_hal_hash_ex.c147 * @param Size length of the input buffer in bytes.
148 * @param pOutBuffer pointer to the computed digest. Digest size is 28 bytes.
152 …StatusTypeDef HAL_HASHEx_SHA224_Start(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, in HAL_HASHEx_SHA224_Start() argument
155 return HASH_Start(hhash, pInBuffer, Size, pOutBuffer, Timeout, HASH_ALGOSELECTION_SHA224); in HAL_HASHEx_SHA224_Start()
170 * @note The input buffer size (in bytes) must be a multiple of 4 otherwise, the
175 * @param Size length of the input buffer in bytes, must be a multiple of 4.
178 …tatusTypeDef HAL_HASHEx_SHA224_Accmlt(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size) in HAL_HASHEx_SHA224_Accmlt() argument
180 return HASH_Accumulate(hhash, pInBuffer, Size, HASH_ALGOSELECTION_SHA224); in HAL_HASHEx_SHA224_Accmlt()
188 * @param Size length of the input buffer in bytes.
189 * @param pOutBuffer pointer to the computed digest. Digest size is 28 bytes.
[all …]
/trusted-firmware-m-latest/platform/ext/target/stm/common/stm32l5xx/hal/Src/
Dstm32l5xx_hal_hash_ex.c145 * @param Size length of the input buffer in bytes.
146 * @param pOutBuffer pointer to the computed digest. Digest size is 28 bytes.
150 …SHEx_SHA224_Start(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffe… in HAL_HASHEx_SHA224_Start() argument
152 return HASH_Start(hhash, pInBuffer, Size, pOutBuffer, Timeout, HASH_ALGOSELECTION_SHA224); in HAL_HASHEx_SHA224_Start()
167 * @note The input buffer size (in bytes) must be a multiple of 4 otherwise, the
172 * @param Size length of the input buffer in bytes, must be a multiple of 4.
175 …tatusTypeDef HAL_HASHEx_SHA224_Accmlt(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size) in HAL_HASHEx_SHA224_Accmlt() argument
177 return HASH_Accumulate(hhash, pInBuffer, Size,HASH_ALGOSELECTION_SHA224); in HAL_HASHEx_SHA224_Accmlt()
185 * @param Size length of the input buffer in bytes.
186 * @param pOutBuffer pointer to the computed digest. Digest size is 28 bytes.
[all …]
/trusted-firmware-m-latest/platform/ext/cmsis/CMSIS/Core/Include/m-profile/
Darmv7m_mpu.h32 #define ARM_MPU_REGION_SIZE_32B ((uint8_t)0x04U) ///!< MPU Region Size 32 Bytes
33 #define ARM_MPU_REGION_SIZE_64B ((uint8_t)0x05U) ///!< MPU Region Size 64 Bytes
34 #define ARM_MPU_REGION_SIZE_128B ((uint8_t)0x06U) ///!< MPU Region Size 128 Bytes
35 #define ARM_MPU_REGION_SIZE_256B ((uint8_t)0x07U) ///!< MPU Region Size 256 Bytes
36 #define ARM_MPU_REGION_SIZE_512B ((uint8_t)0x08U) ///!< MPU Region Size 512 Bytes
37 #define ARM_MPU_REGION_SIZE_1KB ((uint8_t)0x09U) ///!< MPU Region Size 1 KByte
38 #define ARM_MPU_REGION_SIZE_2KB ((uint8_t)0x0AU) ///!< MPU Region Size 2 KBytes
39 #define ARM_MPU_REGION_SIZE_4KB ((uint8_t)0x0BU) ///!< MPU Region Size 4 KBytes
40 #define ARM_MPU_REGION_SIZE_8KB ((uint8_t)0x0CU) ///!< MPU Region Size 8 KBytes
41 #define ARM_MPU_REGION_SIZE_16KB ((uint8_t)0x0DU) ///!< MPU Region Size 16 KBytes
[all …]
/trusted-firmware-m-latest/platform/include/
Dtfm_attest_hal.h34 * \brief Maximum size of verification URL in bytes
41 * \brief Maximum size of profile definition in bytes
48 * \brief Maximum size of the the platform configuration data.
55 * \brief Maximum size of the platform hash algorithm identifier string.
75 * \param[in/out] size As an input value it indicates the size of the caller
78 * the exact size of the verification service URL.
85 tfm_attest_hal_get_verification_service(uint32_t *size, uint8_t *buf);
95 * \param[in/out] size As an input value it indicates the size of the caller
98 * exact size of the profile definition.
104 tfm_attest_hal_get_profile_definition(uint32_t *size, uint8_t *buf);
[all …]
/trusted-firmware-m-latest/docs/design_docs/media/
Dtfm_its_encryption.svg4size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: H…
/trusted-firmware-m-latest/platform/ext/target/cypress/psoc64/
Ddriver_smpu.c98 static bool is_whole_power_of_two(size_t size) in is_whole_power_of_two() argument
100 return ((size - 1) & size) == 0; in is_whole_power_of_two()
103 static bool is_aligned(uint32_t base, size_t size) in is_aligned() argument
105 return (base % size) == 0; in is_aligned()
108 /* size must be a whole power of two, >= 4 */
109 static cy_en_prot_size_t bytes_to_regionsize(size_t size) in bytes_to_regionsize() argument
113 while (REGIONSIZE_TO_BYTES(ret) < size) in bytes_to_regionsize()
157 size_t size, in calc_smpu_params() argument
160 /* Simplest case - base is a multiple of the size, in calc_smpu_params()
161 * and size is a whole power of two, and >= 256 in calc_smpu_params()
[all …]
/trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/shared/include/crypto_api/
Dcc_hash_defs.h33 /*! The size of the hash result in words. The maximal size for SHA-512 is
37 /*! The size of the MD5 digest result in bytes. */
40 /*! The size of the MD5 digest result in words. */
43 /*! The size of the SHA-1 digest result in bytes. */
46 /*! The size of the SHA-1 digest result in words. */
49 /*! The size of the SHA-224 digest result in words. */
52 /*! The size of the SHA-256 digest result in words. */
55 /*! The size of the SHA-384 digest result in words. */
58 /*! The size of the SHA-512 digest result in words. */
61 /*! The size of the SHA-256 digest result in bytes. */
[all …]
/trusted-firmware-m-latest/platform/ext/accelerator/cc312/cc312-rom/
Dcc3xx_ecdsa.h29 * @param[in] private_key_len The size of the private key buffer.
30 * @param[out] private_key_size The size of the private key written into the
47 * @param[in] private_key_len The size of the private key buffer.
49 * @param[in] public_key_x_len The size of the public key x coord buffer.
50 * @param[out] public_key_x_size The size of the public key x coord written into
53 * @param[in] public_key_y_len The size of the public key y coord buffer.
54 * @param[out] public_key_y_size The size of the public key y coord written into
73 * @param[in] private_key_len The size of the private key buffer.
75 * @param[in] hash_len The size of the hash buffer.
77 * @param[in] sig_r_len The size of the signature r param buffer.
[all …]
/trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/include/
Dcc3xx_psa_aead.h30 * \param[in] key_buffer_size Size in bytes of the key
33 * \param[in] nonce_length Size in bytes of the nonce
35 * \param[in] additional_data_length Size in bytes of additional_data
37 * \param[in] plaintext_length Size in bytes of the data to encrypt
39 * \param[in] ciphertext_size Size in bytes of the ciphertext buffer
40 * \param[out] ciphertext_length Size in bytes of the encrypted data
59 * \param[in] key_buffer_size Size in bytes of the key
62 * \param[in] nonce_length Size in bytes of the nonce
64 * \param[in] additional_data_length Size in bytes of additional_data
66 * \param[in] ciphertext_length Size in bytes of the data to decrypt
[all …]
/trusted-firmware-m-latest/platform/ext/accelerator/cc312/cc312-rom/psa_driver_api/include/
Dcc3xx_psa_aead.h31 * \param[in] key_buffer_size Size in bytes of the key
34 * \param[in] nonce_length Size in bytes of the nonce
36 * \param[in] additional_data_length Size in bytes of additional_data
38 * \param[in] plaintext_length Size in bytes of the data to encrypt
40 * \param[in] ciphertext_size Size in bytes of the ciphertext buffer
41 * \param[out] ciphertext_length Size in bytes of the encrypted data
60 * \param[in] key_buffer_size Size in bytes of the key
63 * \param[in] nonce_length Size in bytes of the nonce
65 * \param[in] additional_data_length Size in bytes of additional_data
67 * \param[in] ciphertext_length Size in bytes of the data to decrypt
[all …]
/trusted-firmware-m-latest/platform/ext/target/arm/corstone1000/io/
Dio_flash.c38 static size_t flash_read(int lba, uintptr_t buf, size_t size, size_t flash_id);
39 static size_t flash_write(int lba, const uintptr_t buf, size_t size,
41 static size_t flash0_read(int lba, uintptr_t buf, size_t size);
42 static size_t flash0_write(int lba, uintptr_t buf, size_t size);
43 static size_t flash1_read(int lba, uintptr_t buf, size_t size);
44 static size_t flash1_write(int lba, uintptr_t buf, size_t size);
65 static size_t flash_read(int lba, uintptr_t buf, size_t size, size_t flash_id) { in flash_read() argument
72 size_t cnt = size < rem ? size : rem; in flash_read()
77 static size_t flash_write(int lba, const uintptr_t buf, size_t size, in flash_write() argument
86 size_t cnt = size < rem ? size : rem; in flash_write()
[all …]
/trusted-firmware-m-latest/platform/ext/target/cypress/psoc64/security/policy/
Dpolicy_multi_CM0_CM4_tfm_dev_certs.json30 "size" : 136 number
34 "size" : 104 number
40 "size" : 49152 number
44 "size" : 1163264 number
79 "size": 65536 number
84 "size": 65536 number
89 "size": 16384 number
94 "size": 32768 number
99 "size": 524288 number
135 "size": 327680 number
[all …]
Dpolicy_multi_CM0_CM4_tfm.json30 "size" : 136 number
34 "size" : 104 number
40 "size" : 49152 number
44 "size" : 1163264 number
79 "size": 65536 number
84 "size": 65536 number
89 "size": 16384 number
94 "size": 32768 number
99 "size": 524288 number
135 "size": 327680 number
[all …]

12345678910>>...56