/trusted-firmware-m-3.4.0/platform/ext/common/template/ |
D | crypto_keys.c | 108 size_t *key_len, in tfm_plat_get_huk() argument 120 err = tfm_plat_otp_get_size(PLAT_OTP_ID_HUK, key_len); in tfm_plat_get_huk() 125 *key_bits = *key_len * 8; in tfm_plat_get_huk() 134 size_t *key_len, in tfm_plat_get_iak() argument 145 sizeof(size_t), (uint8_t*)key_len); in tfm_plat_get_iak() 149 *key_bits = *key_len * 8; in tfm_plat_get_iak() 151 if (buf_len < *key_len) { in tfm_plat_get_iak() 174 return tfm_plat_otp_read(PLAT_OTP_ID_IAK, *key_len, buf); in tfm_plat_get_iak() 185 size_t key_len; in tfm_plat_load_builtin_keys() local 191 plat_err = tfm_plat_get_huk(buf, sizeof(buf), &key_len, &key_bits, in tfm_plat_load_builtin_keys() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/arm/rss/common/ |
D | crypto_keys.c | 155 size_t *key_len, in tfm_plat_get_huk() argument 166 *key_len = 32; in tfm_plat_get_huk() 181 size_t *key_len, in tfm_plat_get_iak() argument 244 status = psa_export_key(transient_key, buf, buf_len, key_len); in tfm_plat_get_iak() 280 size_t *key_len, in tfm_plat_get_dak_seed() argument 291 *key_len = 32; in tfm_plat_get_dak_seed() 306 size_t *key_len, in tfm_plat_get_host_s_rotpk() argument 316 *key_len = 96; in tfm_plat_get_host_s_rotpk() 325 size_t *key_len, in tfm_plat_get_host_ns_rotpk() argument 335 *key_len = 96; in tfm_plat_get_host_ns_rotpk() [all …]
|
/trusted-firmware-m-3.4.0/secure_fw/partitions/crypto/psa_driver_api/ |
D | tfm_builtin_key_loader.c | 29 size_t key_len; member 37 psa_status_t tfm_builtin_key_loader_load_key(uint8_t *buf, size_t key_len, in tfm_builtin_key_loader_load_key() argument 53 if (key_len > TFM_BUILTIN_MAX_KEY_LEN) { in tfm_builtin_key_loader_load_key() 65 memcpy(&(builtin_key_slots[slot_number].key), buf, key_len); in tfm_builtin_key_loader_load_key() 66 builtin_key_slots[slot_number].key_len = key_len; in tfm_builtin_key_loader_load_key() 84 *len = builtin_key_slots[slot_number].key_len; in tfm_builtin_key_loader_get_key_buffer_size() 137 NULL, 0, key_slot->key, key_slot->key_len, in derive_subkey_into_buffer() 153 memcpy(key_buffer, key_slot->key, key_slot->key_len); in builtin_key_copy_to_buffer() 154 *key_buffer_length = key_slot->key_len; in builtin_key_copy_to_buffer() 186 if (key_buffer_size < key_slot->key_len) { in tfm_builtin_key_loader_get_key_buffer()
|
D | tfm_builtin_key_loader.h | 42 psa_status_t tfm_builtin_key_loader_load_key(uint8_t *buf, size_t key_len,
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/ |
D | cc3xx_internal_drbg_util.c | 84 const uint8_t *key_buffer, size_t key_len, in cc3xx_hmac_drbg_init_with_params() argument 105 if (2 * key_len > sizeof(seed_buff)) { in cc3xx_hmac_drbg_init_with_params() 110 CC_PalMemCopy(seed_buff + key_len + (key_len - hash_bytes_used), hash, in cc3xx_hmac_drbg_init_with_params() 113 CC_PalMemCopy(seed_buff, key_buffer, key_len); in cc3xx_hmac_drbg_init_with_params() 115 error = mbedtls_hmac_drbg_seed_buf(hmac_drbg_ctx, md_info, seed_buff, 2 * key_len); in cc3xx_hmac_drbg_init_with_params()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/host/src/tests/integration_cc3x/runtime_integration_test/tests/ |
D | run_integration_gcm.c | 54 static const int key_len = sizeof(key) * 8; in runIt_gcmProfiling() local 85 RUNIT_API(mbedtls_gcm_setkey(pCtx, MBEDTLS_CIPHER_ID_AES, key, key_len)); in runIt_gcmProfiling() 110 (uint32_t)key_len, (uint32_t)data_len, (uint32_t)add_len); in runIt_gcmProfiling() 134 static const int key_len = sizeof(key) * 8; in runIt_gcm() local 160 RUNIT_API(mbedtls_gcm_setkey(pCtx, MBEDTLS_CIPHER_ID_AES, key, key_len)); in runIt_gcm() 193 RUNIT_API(mbedtls_gcm_setkey(pCtx, MBEDTLS_CIPHER_ID_AES, key, key_len)); in runIt_gcm() 220 RUNIT_API(mbedtls_gcm_setkey(pCtx, MBEDTLS_CIPHER_ID_AES, key, key_len)); in runIt_gcm() 247 (uint32_t)key_len, (uint32_t)pt_len, (uint32_t)add_len); in runIt_gcm()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/include/ |
D | cc3xx_internal_drbg_util.h | 74 size_t key_len,
|
/trusted-firmware-m-3.4.0/platform/ext/target/arm/rss/common/native_drivers/ |
D | kmu_drv.c | 258 size_t key_len) in kmu_set_key() argument 269 if (key_len & (sizeof(uint32_t) - 1) || key_len > 32) { in kmu_set_key() 282 for (idx = 0; idx < key_len / sizeof(uint32_t); idx++) { in kmu_set_key()
|
D | kmu_drv.h | 267 size_t key_len);
|
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/src/ |
D | crypto.c | 1006 CRPT_DBGMSG("Key length = %d\n", pCurve->key_len); in ecc_init_curve() 1015 crpt->ECC_N[(pCurve->key_len) / 32] |= (1UL << ((pCurve->key_len) % 32)); in ecc_init_curve() 1143 crpt->ECC_CTL |= ((uint32_t)pCurve->key_len << CRPT_ECC_CTL_CURVEM_Pos) | in ECC_GeneratePublicKey() 1206 crpt->ECC_CTL |= ((uint32_t)pCurve->key_len << CRPT_ECC_CTL_CURVEM_Pos) | in ECC_GeneratePublicKey_KS() 1283 crpt->ECC_CTL |= ((uint32_t)pCurve->key_len << CRPT_ECC_CTL_CURVEM_Pos) | in ECC_Mutiply() 1357 crpt->ECC_CTL |= ((uint32_t)pCurve->key_len << CRPT_ECC_CTL_CURVEM_Pos) | in ECC_GenerateSecretZ() 1421 crpt->ECC_CTL |= ((uint32_t)pCurve->key_len << CRPT_ECC_CTL_CURVEM_Pos) | in ECC_GenerateSecretZ_KS() 1476 …crpt->ECC_CTL |= ((uint32_t)pCurve->key_len << CRPT_ECC_CTL_CURVEM_Pos) | mode | CRPT_ECC_CTL_STAR… in run_ecc_codec()
|
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/inc/ |
D | crypto.h | 128 int32_t key_len; member
|
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/src/ |
D | crypto.c | 926 CRPT_DBGMSG("Key length = %d\n", pCurve->key_len); in ecc_init_curve() 935 crpt->ECC_N[(pCurve->key_len) / 32] |= (1UL << ((pCurve->key_len) % 32)); in ecc_init_curve() 1061 crpt->ECC_CTL |= ((uint32_t)pCurve->key_len << CRPT_ECC_CTL_CURVEM_Pos) | in ECC_GeneratePublicKey() 1137 crpt->ECC_CTL |= ((uint32_t)pCurve->key_len << CRPT_ECC_CTL_CURVEM_Pos) | in ECC_GenerateSecretZ() 1176 …crpt->ECC_CTL |= ((uint32_t)pCurve->key_len << CRPT_ECC_CTL_CURVEM_Pos) | mode | CRPT_ECC_CTL_STAR… in run_ecc_codec()
|
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/inc/ |
D | crypto.h | 187 int32_t key_len; member
|
/trusted-firmware-m-3.4.0/docs/technical_references/design_docs/ |
D | symmetric_initial_attest.rst | 505 size_t *key_len, 515 | ``key_len`` | The length of the symmetric IAK. |
|