repo stringlengths 6 65 | file_url stringlengths 81 311 | file_path stringlengths 6 227 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:31:58 2026-01-04 20:25:31 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/src/capabilities.rs | runtime/src/capabilities.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
capabilities.rs
Abstract:
File contains Capabilities mailbox command.
--*/
use crate::{mutrefbytes, Drivers};
use caliptra_common::{
capabilities::Capabilities,
mailbox_api::{CapabilitiesResp, MailboxRespHeader},
};
use caliptra_drivers::Cali... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/src/set_auth_manifest.rs | runtime/src/set_auth_manifest.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
set_auth_manifest.rs
Abstract:
File contains AuthManifest mailbox command.
--*/
use core::cmp::min;
use core::mem::size_of;
use crate::Drivers;
use caliptra_auth_man_types::{
AuthManifestFlags, AuthManifestImageMetadata, AuthManifestImageMetadat... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/src/fe_programming.rs | runtime/src/fe_programming.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
fe_programming.rs
Abstract:
File contains FE_PROG mailbox command.
--*/
use crate::Drivers;
use caliptra_cfi_derive_git::cfi_impl_fn;
use caliptra_common::mailbox_api::FeProgReq;
use caliptra_common::uds_fe_programming::UdsFeProgrammingFlow;
use cali... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/src/cryptographic_mailbox.rs | runtime/src/cryptographic_mailbox.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
cryptographic_mailbox.rs
Abstract:
File contains exports for the Cryptographic Mailbox API commands.
--*/
use crate::{mutrefbytes, Drivers};
use arrayvec::ArrayVec;
use bitfield::bitfield;
use caliptra_cfi_derive_git::cfi_impl_fn;
use caliptra_common... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | true |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/src/firmware_verify.rs | runtime/src/firmware_verify.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
firmware_verify.rs
Abstract:
File contains FIRMWARE_VERIFY mailbox command.
--*/
use crate::mutrefbytes;
use crate::Drivers;
use caliptra_cfi_derive_git::cfi_impl_fn;
use caliptra_common::mailbox_api::populate_checksum;
use caliptra_common::mailbox_a... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/src/ocp_lock/initialize_mek_secret.rs | runtime/src/ocp_lock/initialize_mek_secret.rs | // Licensed under the Apache-2.0 license
use crate::{mutrefbytes, Drivers};
use caliptra_api::mailbox::{
MailboxRespHeader, OcpLockInitializeMekSecretReq, OcpLockInitializeMekSecretResp,
};
use caliptra_cfi_derive_git::cfi_impl_fn;
use caliptra_error::{CaliptraError, CaliptraResult};
use zerocopy::FromBytes;
u... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/src/ocp_lock/mod.rs | runtime/src/ocp_lock/mod.rs | // Licensed under the Apache-2.0 license
use caliptra_api::mailbox::CommandId;
use caliptra_cfi_lib_git::{cfi_assert, cfi_assert_eq};
use caliptra_common::keyids::ocp_lock::{KEY_ID_EPK, KEY_ID_HEK, KEY_ID_MEK_SECRETS};
use caliptra_drivers::{
cmac_kdf, hmac_kdf, Aes, AesKey, AesOperation, Dma, Hmac, HmacKey, HmacM... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/src/ocp_lock/get_algorithms.rs | runtime/src/ocp_lock/get_algorithms.rs | // Licensed under the Apache-2.0 license
use caliptra_api::mailbox::{
AccessKeySizes, EndorsementAlgorithms, HpkeAlgorithms, OcpLockGetAlgorithmsResp,
};
use caliptra_error::CaliptraResult;
use crate::mutrefbytes;
pub struct GetAlgorithmsCmd;
impl GetAlgorithmsCmd {
#[cfg_attr(not(feature = "no-cfi"), calipt... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/src/ocp_lock/derive_mek.rs | runtime/src/ocp_lock/derive_mek.rs | // Licensed under the Apache-2.0 license
use crate::{mutrefbytes, Drivers};
use caliptra_api::mailbox::{MailboxRespHeader, OcpLockDeriveMekReq, OcpLockDeriveMekResp};
use caliptra_cfi_derive_git::cfi_impl_fn;
use caliptra_error::{CaliptraError, CaliptraResult};
use zerocopy::FromBytes;
use super::MekChecksum;
pub... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_recovery_flow.rs | runtime/tests/runtime_integration_tests/test_recovery_flow.rs | // Licensed under the Apache-2.0 license
use crate::common::{run_rt_test, RuntimeTestArgs};
use crate::test_set_auth_manifest::create_auth_manifest_with_metadata;
use caliptra_auth_man_types::{AuthManifestImageMetadata, ImageMetadataFlags};
use caliptra_emu_bus::{Device, EventData};
use caliptra_error::CaliptraError;
... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_get_idev_csr.rs | runtime/tests/runtime_integration_tests/test_get_idev_csr.rs | // Licensed under the Apache-2.0 license
use caliptra_api::SocManager;
use caliptra_builder::{get_ci_rom_version, CiRomVersion};
use caliptra_common::mailbox_api::{CommandId, GetIdevCsrResp, MailboxReqHeader};
use caliptra_drivers::{Ecc384IdevIdCsr, MfgFlags, Mldsa87IdevIdCsr};
use caliptra_error::CaliptraError;
use c... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_get_fmc_alias_csr.rs | runtime/tests/runtime_integration_tests/test_get_fmc_alias_csr.rs | // Licensed under the Apache-2.0 license
use crate::common::get_certs;
use caliptra_api::mailbox::{GetFmcAliasEccCsrReq, GetFmcAliasMldsaCsrReq};
use caliptra_common::mailbox_api::{GetRtAliasEcc384CertReq, GetRtAliasMlDsa87CertReq};
use caliptra_drivers::{FmcAliasCsrs, ECC384_MAX_FMC_ALIAS_CSR_SIZE, MLDSA87_MAX_CSR_SI... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_tagging.rs | runtime/tests/runtime_integration_tests/test_tagging.rs | // Licensed under the Apache-2.0 license
use crate::common::{assert_error, execute_dpe_cmd, run_rt_test, DpeResult, RuntimeTestArgs};
use caliptra_common::mailbox_api::{
CommandId, GetTaggedTciReq, GetTaggedTciResp, MailboxReq, MailboxReqHeader, TagTciReq,
};
use caliptra_hw_model::HwModel;
use dpe::{
commands... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_populate_idev.rs | runtime/tests/runtime_integration_tests/test_populate_idev.rs | // Licensed under the Apache-2.0 license
use crate::common::{
execute_dpe_cmd, generate_test_x509_cert, run_rt_test, DpeResult, RuntimeTestArgs,
};
use caliptra_api::SocManager;
use caliptra_common::mailbox_api::{
CommandId, MailboxReq, MailboxReqHeader, PopulateIdevEcc384CertReq, PopulateIdevMldsa87CertReq,
}... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_certify_key_extended.rs | runtime/tests/runtime_integration_tests/test_certify_key_extended.rs | // Licensed under the Apache-2.0 license
use caliptra_api::SocManager;
use caliptra_common::mailbox_api::{
AddSubjectAltNameReq, CertifyKeyExtendedFlags, CertifyKeyExtendedReq, CertifyKeyExtendedResp,
CommandId, MailboxReq, MailboxReqHeader,
};
use caliptra_hw_model::HwModel;
use caliptra_runtime::{AddSubjectA... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_authorize_and_stash.rs | runtime/tests/runtime_integration_tests/test_authorize_and_stash.rs | // Licensed under the Apache-2.0 license
use crate::common::{run_rt_test, RuntimeTestArgs};
use crate::test_set_auth_manifest::{
create_auth_manifest, create_auth_manifest_with_metadata, AuthManifestBuilderCfg,
};
use crate::test_update_reset::update_fw;
use caliptra_api::mailbox::{MailboxRespHeader, VerifyAuthMan... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | true |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_cryptographic_mailbox.rs | runtime/tests/runtime_integration_tests/test_cryptographic_mailbox.rs | // Licensed under the Apache-2.0 license
use std::collections::VecDeque;
use crate::common::{assert_error, run_rt_test, start_rt_test_pqc_model, RuntimeTestArgs};
use aes::Aes256;
use aes_gcm::{aead::AeadMutInPlace, Key};
use caliptra_api::mailbox::{
populate_checksum, CmAesDecryptInitReq, CmAesDecryptUpdateReq, ... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | true |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_debug_unlock.rs | runtime/tests/runtime_integration_tests/test_debug_unlock.rs | // Licensed under the Apache-2.0 license
use crate::common::{run_rt_test, RuntimeTestArgs};
use crate::test_set_auth_manifest::create_auth_manifest_with_metadata;
use caliptra_api::{
mailbox::{
CommandId, MailboxReqHeader, ProductionAuthDebugUnlockChallenge,
ProductionAuthDebugUnlockReq, Productio... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | true |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_certs.rs | runtime/tests/runtime_integration_tests/test_certs.rs | // Licensed under the Apache-2.0 license
use crate::common::PQC_KEY_TYPE;
use crate::common::{
execute_dpe_cmd, generate_test_x509_cert, get_ecc_fmc_alias_cert, get_mldsa_fmc_alias_cert,
get_rt_alias_ecc384_cert, get_rt_alias_mldsa87_cert, run_rt_test, run_rt_test_pqc, DpeResult,
RuntimeTestArgs, TEST_LABE... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_sign_with_export_ecdsa.rs | runtime/tests/runtime_integration_tests/test_sign_with_export_ecdsa.rs | // Licensed under the Apache-2.0 license
use caliptra_api::{
mailbox::{MailboxRespHeader, RevokeExportedCdiHandleReq},
SocManager,
};
use caliptra_common::mailbox_api::{
CommandId, MailboxReq, MailboxReqHeader, SignWithExportedEcdsaReq, SignWithExportedEcdsaResp,
};
use caliptra_error::CaliptraError;
use c... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_disable.rs | runtime/tests/runtime_integration_tests/test_disable.rs | // Licensed under the Apache-2.0 license
use caliptra_builder::{
firmware::{APP_WITH_UART, FMC_WITH_UART},
ImageOptions,
};
use caliptra_common::mailbox_api::{CommandId, FwInfoResp, MailboxReqHeader, MailboxRespHeader};
use caliptra_hw_model::HwModel;
use caliptra_image_types::FwVerificationPqcKeyType;
use dpe... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_certs_384_warmreset.rs | runtime/tests/runtime_integration_tests/test_certs_384_warmreset.rs | // Licensed under the Apache-2.0 license
use crate::common::{
assert_x509_semantic_eq, execute_dpe_cmd, generate_test_x509_cert, get_ecc_fmc_alias_cert,
get_rt_alias_ecc384_cert, run_rt_test_pqc, DpeResult, RuntimeTestArgs,
};
use caliptra_common::{
checksum::verify_checksum,
mailbox_api::{
Com... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_capabilities.rs | runtime/tests/runtime_integration_tests/test_capabilities.rs | // Licensed under the Apache-2.0 license
use caliptra_api::SocManager;
use caliptra_api::{
mailbox::{CapabilitiesResp, CommandId, MailboxReqHeader, MailboxRespHeader},
Capabilities,
};
use caliptra_hw_model::HwModel;
use caliptra_runtime::RtBootStatus;
use crate::common::{run_rt_test, RuntimeTestArgs};
use z... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_fe_programming.rs | runtime/tests/runtime_integration_tests/test_fe_programming.rs | // Licensed under the Apache-2.0 license.
use crate::common::{run_rt_test, RuntimeTestArgs};
use caliptra_api::{
mailbox::{FeProgReq, MailboxReq, MailboxReqHeader},
SocManager,
};
use caliptra_common::mailbox_api::CommandId;
use caliptra_error::CaliptraError;
use caliptra_hw_model::{
DeviceLifecycle, HwMod... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_set_auth_manifest.rs | runtime/tests/runtime_integration_tests/test_set_auth_manifest.rs | // Licensed under the Apache-2.0 license
use crate::test_activate_firmware::{TEST_SRAM_BASE, TEST_SRAM_SIZE};
use crate::{
common::{assert_error, run_rt_test_pqc, RuntimeTestArgs, PQC_KEY_TYPE},
test_authorize_and_stash::IMAGE_DIGEST1,
test_info::get_fwinfo,
};
use caliptra_api::mailbox::ExternalMailboxCmd... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_mldsa.rs | runtime/tests/runtime_integration_tests/test_mldsa.rs | // Licensed under the Apache-2.0 license.
use crate::common::{run_rt_test, RuntimeTestArgs};
use caliptra_api::mailbox::{MailboxReq, MailboxReqHeader, MailboxRespHeader, MldsaVerifyReq};
use caliptra_api::SocManager;
use caliptra_common::mailbox_api::CommandId;
use caliptra_hw_model::HwModel;
use caliptra_runtime::RtB... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_get_image_info.rs | runtime/tests/runtime_integration_tests/test_get_image_info.rs | // Licensed under the Apache-2.0 license
use crate::test_authorize_and_stash::set_auth_manifest;
use crate::test_set_auth_manifest::create_auth_manifest_with_metadata;
use caliptra_api::mailbox::{GetImageInfoReq, GetImageInfoResp};
use caliptra_auth_man_types::{Addr64, AuthManifestImageMetadata, ImageMetadataFlags};
u... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_lms.rs | runtime/tests/runtime_integration_tests/test_lms.rs | // Licensed under the Apache-2.0 license.
use crate::common::{assert_error, run_rt_test, RuntimeTestArgs};
use caliptra_api::SocManager;
use caliptra_common::mailbox_api::{
CommandId, LmsVerifyReq, MailboxReq, MailboxReqHeader, MailboxRespHeader,
};
use caliptra_hw_model::{HwModel, ModelError};
use caliptra_lms_ty... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | true |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_firmware_verify.rs | runtime/tests/runtime_integration_tests/test_firmware_verify.rs | // Licensed under the Apache-2.0 license
use crate::common::{start_rt_test_pqc_model, RuntimeTestArgs};
use caliptra_api::mailbox::{FirmwareVerifyResp, FirmwareVerifyResult};
use caliptra_api::SocManager;
use caliptra_common::mailbox_api::CommandId;
use caliptra_hw_model::{HwModel, ModelError};
use caliptra_image_type... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_fips.rs | runtime/tests/runtime_integration_tests/test_fips.rs | // Licensed under the Apache-2.0 license.
use crate::common::{assert_error, run_rt_test, RuntimeTestArgs};
use caliptra_api::SocManager;
use caliptra_builder::{version, ImageOptions};
use caliptra_common::mailbox_api::{
CommandId, FipsVersionResp, MailboxReqHeader, MailboxRespHeader,
};
use caliptra_hw_model::HwMo... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_cap_warmreset.rs | runtime/tests/runtime_integration_tests/test_cap_warmreset.rs | // Licensed under the Apache-2.0 license
use crate::common::{run_rt_test_pqc, RuntimeTestArgs};
use caliptra_common::{
capabilities::Capabilities,
checksum::{calc_checksum, verify_checksum},
mailbox_api::{CapabilitiesResp, CommandId, MailboxReqHeader, MailboxRespHeader},
};
use caliptra_hw_model::{DefaultH... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_pauser_privilege_levels.rs | runtime/tests/runtime_integration_tests/test_pauser_privilege_levels.rs | // Licensed under the Apache-2.0 license
use crate::common::PQC_KEY_TYPE;
use caliptra_api::{
mailbox::{RevokeExportedCdiHandleReq, SignWithExportedEcdsaReq},
SocManager,
};
use caliptra_builder::{
build_firmware_elf,
firmware::{APP_WITH_UART, FMC_WITH_UART},
ImageOptions,
};
use caliptra_common::m... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_panic_missing.rs | runtime/tests/runtime_integration_tests/test_panic_missing.rs | // Licensed under the Apache-2.0 license
use caliptra_builder::firmware::APP_WITH_UART;
#[test]
fn test_panic_missing() {
let rt_elf = caliptra_builder::build_firmware_elf(&APP_WITH_UART).unwrap();
let symbols = caliptra_builder::elf_symbols(&rt_elf).unwrap();
if symbols.iter().any(|s| s.name.contains("pan... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_pcr.rs | runtime/tests/runtime_integration_tests/test_pcr.rs | // Licensed under the Apache-2.0 license
use crate::common::{
get_ecc_fmc_alias_cert, get_mldsa_fmc_alias_cert, run_rt_test, RuntimeTestArgs,
};
use caliptra_api::SocManager;
use caliptra_common::mailbox_api::{
CommandId, ExtendPcrReq, GetPcrLogResp, IncrementPcrResetCounterReq, MailboxReq,
MailboxReqHead... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_ecdsa.rs | runtime/tests/runtime_integration_tests/test_ecdsa.rs | // Licensed under the Apache-2.0 license.
use crate::common::{assert_error, run_rt_test, RuntimeTestArgs};
use caliptra_api::SocManager;
use caliptra_common::mailbox_api::{
CommandId, EcdsaVerifyReq, MailboxReq, MailboxReqHeader, MailboxRespHeader,
};
use caliptra_hw_model::HwModel;
use caliptra_runtime::RtBootSta... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_stash_measurement.rs | runtime/tests/runtime_integration_tests/test_stash_measurement.rs | // Licensed under the Apache-2.0 license
use caliptra_api::SocManager;
use caliptra_builder::{
firmware::{APP_WITH_UART, FMC_WITH_UART},
ImageOptions,
};
use caliptra_common::mailbox_api::{
CommandId, MailboxReq, MailboxReqHeader, StashMeasurementReq, StashMeasurementResp,
};
use caliptra_hw_model::HwModel... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_invoke_dpe.rs | runtime/tests/runtime_integration_tests/test_invoke_dpe.rs | // Licensed under the Apache-2.0 license.
use crate::common::{
execute_dpe_cmd, get_rt_alias_ecc384_cert, run_rt_test, DpeResult, RuntimeTestArgs,
TEST_DIGEST, TEST_LABEL,
};
use caliptra_api::SocManager;
use caliptra_common::mailbox_api::{
CommandId, FwInfoResp, InvokeDpeReq, MailboxReq, MailboxReqHeader,... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_warm_reset.rs | runtime/tests/runtime_integration_tests/test_warm_reset.rs | // Licensed under the Apache-2.0 license
use caliptra_api::soc_mgr::SocManager;
use caliptra_builder::{
firmware::{APP_WITH_UART, FMC_WITH_UART},
ImageOptions,
};
use caliptra_error::CaliptraError;
use caliptra_hw_model::{
BootParams, DeviceLifecycle, Fuses, HwModel, InitParams, SecurityState, SubsystemIni... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_info.rs | runtime/tests/runtime_integration_tests/test_info.rs | // Licensed under the Apache-2.0 license.
use crate::common::{default_soc_manifest_bytes, run_rt_test, RuntimeTestArgs};
use crate::common::{DEFAULT_MCU_FW, PQC_KEY_TYPE};
use caliptra_api::SocManager;
use caliptra_builder::{
firmware::{APP_WITH_UART, APP_WITH_UART_FPGA, FMC_WITH_UART},
ImageOptions,
};
use ca... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_activate_firmware.rs | runtime/tests/runtime_integration_tests/test_activate_firmware.rs | // Licensed under the Apache-2.0 license
use crate::test_authorize_and_stash::set_auth_manifest_with_test_sram;
use crate::test_set_auth_manifest::create_auth_manifest_with_metadata;
use caliptra_api::mailbox::ActivateFirmwareReq;
use caliptra_auth_man_types::AuthManifestImageMetadata;
use caliptra_auth_man_types::{Add... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/main.rs | runtime/tests/runtime_integration_tests/main.rs | // Licensed under the Apache-2.0 license
mod common;
mod test_activate_firmware;
mod test_authorize_and_stash;
mod test_boot;
mod test_cap_warmreset;
mod test_capabilities;
mod test_certify_key_extended;
mod test_certs;
mod test_certs_384_warmreset;
mod test_cryptographic_mailbox;
mod test_debug_unlock;
mod test_disab... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/common.rs | runtime/tests/runtime_integration_tests/common.rs | // Licensed under the Apache-2.0 license
use caliptra_api::{
mailbox::{GetFmcAliasMlDsa87CertResp, Request},
SocManager,
};
use caliptra_builder::{
firmware::{
APP_WITH_UART, APP_WITH_UART_FPGA, APP_WITH_UART_OCP_LOCK, APP_WITH_UART_OCP_LOCK_FPGA,
FMC_WITH_UART,
},
FwId, ImageOption... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_boot.rs | runtime/tests/runtime_integration_tests/test_boot.rs | // Licensed under the Apache-2.0 license
use caliptra_api::SocManager;
use caliptra_builder::{
firmware::{self, APP_WITH_UART, FMC_WITH_UART},
ImageOptions,
};
use caliptra_common::mailbox_api::{CommandId, MailboxReq, MailboxReqHeader, StashMeasurementReq};
use caliptra_hw_model::{
BootParams, Fuses, HwMode... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_revoke_exported_cdi_handle.rs | runtime/tests/runtime_integration_tests/test_revoke_exported_cdi_handle.rs | // Licensed under the Apache-2.0 license
use caliptra_api::{mailbox::RevokeExportedCdiHandleReq, SocManager};
use caliptra_common::mailbox_api::{CommandId, MailboxReq, MailboxReqHeader};
use caliptra_error::CaliptraError;
use caliptra_hw_model::HwModel;
use caliptra_runtime::RtBootStatus;
use dpe::{
commands::{Com... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_update_reset.rs | runtime/tests/runtime_integration_tests/test_update_reset.rs | // Licensed under the Apache-2.0 license
use std::mem::size_of;
pub use caliptra_api::SocManager;
use caliptra_builder::{
firmware::{
runtime_tests::{MBOX, MBOX_FPGA, MBOX_WITHOUT_UART, MBOX_WITHOUT_UART_FPGA},
APP_WITH_UART, FMC_FAKE_WITH_UART, FMC_WITH_UART,
},
FwId, ImageOptions,
};
use... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_reallocate_dpe_context_limits.rs | runtime/tests/runtime_integration_tests/test_reallocate_dpe_context_limits.rs | // Licensed under the Apache-2.0 license.
use crate::common::{execute_dpe_cmd, run_rt_test, DpeResult, RuntimeTestArgs};
use caliptra_api::mailbox::{
CommandId, ReallocateDpeContextLimitsReq, ReallocateDpeContextLimitsResp,
};
use caliptra_builder::{
firmware::{APP_WITH_UART, FMC_WITH_UART},
ImageOptions,
... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_mailbox.rs | runtime/tests/runtime_integration_tests/test_mailbox.rs | // Licensed under the Apache-2.0 license
use caliptra_api::SocManager;
use caliptra_common::mailbox_api::{CommandId, MailboxReqHeader};
use caliptra_hw_model::HwModel;
use zerocopy::IntoBytes;
use crate::common::{assert_error, run_rt_test, RuntimeTestArgs};
/// When a successful command runs after a failed command, ... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_ocp_lock/test_derive_mek.rs | runtime/tests/runtime_integration_tests/test_ocp_lock/test_derive_mek.rs | // Licensed under the Apache-2.0 license
use std::sync::LazyLock;
use caliptra_api::mailbox::{
CommandId, MailboxReq, MailboxReqHeader, OcpLockDeriveMekReq, OcpLockDeriveMekResp,
OcpLockInitializeMekSecretReq,
};
use caliptra_error::CaliptraError;
use caliptra_hw_model::{HwModel, ModelError, SecurityState};
u... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_ocp_lock/mod.rs | runtime/tests/runtime_integration_tests/test_ocp_lock/mod.rs | // Licensed under the Apache-2.0 license
use caliptra_api::{
mailbox::{
CapabilitiesResp, CommandId, MailboxReq, MailboxReqHeader, MailboxRespHeader,
OcpLockInitializeMekSecretReq, OcpLockReportHekMetadataReq, OcpLockReportHekMetadataResp,
OcpLockReportHekMetadataRespFlags,
},
Capab... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_ocp_lock/test_get_algorithms.rs | runtime/tests/runtime_integration_tests/test_ocp_lock/test_get_algorithms.rs | // Licensed under the Apache-2.0 license
use caliptra_api::mailbox::{
AccessKeySizes, CommandId, EndorsementAlgorithms, HpkeAlgorithms, MailboxReqHeader,
MailboxRespHeader, OcpLockGetAlgorithmsResp,
};
use caliptra_api::SocManager;
use caliptra_hw_model::HwModel;
use caliptra_runtime::RtBootStatus;
use crate:... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/tests/runtime_integration_tests/test_ocp_lock/test_initialize_mek_secret.rs | runtime/tests/runtime_integration_tests/test_ocp_lock/test_initialize_mek_secret.rs | // Licensed under the Apache-2.0 license
use caliptra_api::mailbox::{
CommandId, MailboxReq, MailboxReqHeader, OcpLockInitializeMekSecretReq,
};
use caliptra_hw_model::{HwModel, ModelError};
use caliptra_kat::CaliptraError;
use super::{boot_ocp_lock_runtime, validate_ocp_lock_response, OcpLockBootParams};
#[cfg_... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/test-fw/build.rs | runtime/test-fw/build.rs | // Licensed under the Apache-2.0 license
fn main() {
cfg_if::cfg_if! {
if #[cfg(not(feature = "std"))] {
cfg_if::cfg_if! {
if #[cfg(feature = "runtime")] {
use std::env;
use std::fs;
use std::path::PathBuf;
... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/test-fw/src/boot_tests.rs | runtime/test-fw/src/boot_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
boot_tests.rs
Abstract:
File contains test cases for booting runtime firmware
--*/
#![no_std]
#![no_main]
use caliptra_common::handle_fatal_error;
use caliptra_registers::soc_ifc::SocIfcReg;
use caliptra_runtime::Drivers;
use caliptra_test_harness::... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/test-fw/src/mbox_responder.rs | runtime/test-fw/src/mbox_responder.rs | // Licensed under the Apache-2.0 license
#![no_main]
#![no_std]
use core::mem::size_of;
use caliptra_common::{
handle_fatal_error,
keyids::KEY_ID_TMP,
mailbox_api::{CommandId, ExternalMailboxCmdReq},
};
use caliptra_drivers::{
cprintln,
pcr_log::{PCR_ID_STASH_MEASUREMENT, RT_FW_JOURNEY_PCR},
... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/test-fw/src/mock_rt_test_interactive.rs | runtime/test-fw/src/mock_rt_test_interactive.rs | // Licensed under the Apache-2.0 license
#![no_main]
#![no_std]
use caliptra_common::{
handle_fatal_error,
mailbox_api::{CommandId, ExternalMailboxCmdReq},
};
use caliptra_drivers::pcr_log::{PcrLogEntry, PcrLogEntryId};
use caliptra_drivers::{cprintln, CaliptraError, CaliptraResult};
use caliptra_drivers::{P... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/test-fw/src/persistent_tests.rs | runtime/test-fw/src/persistent_tests.rs | // Licensed under the Apache-2.0 license
#![no_std]
#![no_main]
use caliptra_common::handle_fatal_error;
use caliptra_drivers::{PersistentData, PersistentDataAccessor};
use caliptra_registers::soc_ifc::SocIfcReg;
use caliptra_runtime::Drivers;
use caliptra_test_harness::{runtime_handlers, test_suite};
fn test_persis... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/build.rs | rom/dev/build.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
build.rs
Abstract:
Build script for Caliptra ROM.
--*/
use std::env;
use std::path::{Path, PathBuf};
use std::process::Command;
use caliptra_common::x509::get_tbs;
fn preprocess(filename: &str, defines: &[(String, String)]) -> Vec<u8> {
let mut... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/tools/mldsa_key_pair_gen/src/main.rs | rom/dev/tools/mldsa_key_pair_gen/src/main.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
main.rs
Abstract:
File contains app for generating MLDSA key pairs from FIPS204 library.
--*/
use fips204::ml_dsa_87::try_keygen_with_rng;
use fips204::traits::SerDes;
use rand::prelude::*;
use rand::rngs::StdRng;
use std::fs::{self, File};
use std::... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/tools/test-rt/build.rs | rom/dev/tools/test-rt/build.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
build.rs
Abstract:
Build script for Caliptra ROM Test Runtime.
--*/
fn main() {
cfg_if::cfg_if! {
if #[cfg(not(feature = "std"))] {
use std::env;
use std::fs;
use std::path::PathBuf;
let ou... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/tools/test-rt/src/exception.rs | rom/dev/tools/test-rt/src/exception.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
exception.rs
Abstract:
File contains exception related structures
--*/
/// Exception Record
#[repr(C)]
pub(crate) struct ExceptionRecord {
pub ra: u32,
pub sp: u32,
pub a0: u32,
pub a1: u32,
pub a2: u32,
pub a3: u32,
pub a... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/tools/test-rt/src/main.rs | rom/dev/tools/test-rt/src/main.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
main.rs
Abstract:
File contains main entry point for Caliptra Test Runtime
--*/
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(not(feature = "std"), no_main)]
use caliptra_drivers::Mailbox;
#[cfg(not(feature = "std"))]
core::arch::global_asm... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/tools/test-rt/src/print.rs | rom/dev/tools/test-rt/src/print.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
pring.rs
Abstract:
File contains support routines and macros to print to UART
--*/
use core::convert::Infallible;
use ufmt::uWrite;
#[derive(Default)]
pub struct RomPrinter;
impl uWrite for RomPrinter {
type Error = Infallible;
/// Writes a... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/tools/test-fmc/build.rs | rom/dev/tools/test-fmc/build.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
build.rs
Abstract:
Build script for Caliptra ROM Test FMC.
--*/
fn main() {
cfg_if::cfg_if! {
if #[cfg(not(feature = "std"))] {
use std::env;
use std::fs;
use std::path::PathBuf;
let out_di... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/tools/test-fmc/src/exception.rs | rom/dev/tools/test-fmc/src/exception.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
exception.rs
Abstract:
File contains exception related structures
--*/
/// Exception Record
#[repr(C)]
pub(crate) struct ExceptionRecord {
pub ra: u32,
pub sp: u32,
pub a0: u32,
pub a1: u32,
pub a2: u32,
pub a3: u32,
pub a... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/tools/test-fmc/src/main.rs | rom/dev/tools/test-fmc/src/main.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
main.rs
Abstract:
File contains main entry point for Caliptra ROM Test FMC
--*/
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(not(feature = "std"), no_main)]
use caliptra_common::pcr::PCR_ID_STASH_MEASUREMENT;
use caliptra_common::PcrLogEntr... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/tools/test-fmc/src/print.rs | rom/dev/tools/test-fmc/src/print.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
pring.rs
Abstract:
File contains support routines and macros to print to UART
--*/
use core::convert::Infallible;
use ufmt::uWrite;
#[derive(Default)]
pub struct RomPrinter;
impl uWrite for RomPrinter {
type Error = Infallible;
/// Writes a... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/exception.rs | rom/dev/src/exception.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
exception.rs
Abstract:
File contains exception related structures
--*/
/// Exception Record
#[repr(C)]
pub(crate) struct ExceptionRecord {
pub ra: u32,
pub sp: u32,
pub a0: u32,
pub a1: u32,
pub a2: u32,
pub a3: u32,
pub a... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/rom_env.rs | rom/dev/src/rom_env.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
rom_env.rs
Abstract:
File implements a context holding all the services utilized by ROM.
The primary need for this abstraction is to hide the hardware details
from the ROM flows. The natural side benefit of this abstraction is it
makes auth... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/lock.rs | rom/dev/src/lock.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
lock.rs
Abstract:
File contains function to lock registers based on reset reason.
--*/
use crate::rom_env::RomEnv;
#[cfg(not(feature = "no-cfi"))]
use caliptra_cfi_derive::cfi_mod_fn;
use caliptra_common::{
lock_datavault_region,
pcr::{PCR_ID... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/wdt.rs | rom/dev/src/wdt.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
wdt.rs
Abstract:
File contains execution routines for programming the Watchdog Timer.
Environment:
ROM
--*/
#[cfg(not(feature = "no-cfi"))]
use caliptra_cfi_derive::cfi_mod_fn;
use caliptra_common::WdtTimeout;
use caliptra_drivers::SocIfc;
use... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/fuse.rs | rom/dev/src/fuse.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
fuse.rs
Abstract:
The file contains Fuse-related Implementations.
--*/
#[cfg(not(feature = "no-cfi"))]
use caliptra_cfi_derive::cfi_mod_fn;
use caliptra_common::{FuseLogEntry, FuseLogEntryId};
use caliptra_drivers::{CaliptraError, CaliptraResult, FuseL... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/pcr.rs | rom/dev/src/pcr.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
pcr.rs
Abstract:
File contains execution routines for extending PCR0 & PCR1
Environment:
ROM
Note:
PCR0 - Journey PCR unlocked and cleared on cold reset
PCR1 - Current PCR unlocked and cleared on any reset
--*/
#[cfg(not(feature = "no... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/main.rs | rom/dev/src/main.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
main.rs
Abstract:
File contains main entry point for Caliptra ROM
--*/
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(not(feature = "std"), no_main)]
#![cfg_attr(feature = "fake-rom", allow(unused_imports))]
#![cfg_attr(feature = "fips-test-ho... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/key_ladder.rs | rom/dev/src/key_ladder.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
key_ladder.rs
Abstract:
File contains function to manage the firmware's key ladder.
--*/
#[cfg(not(feature = "no-cfi"))]
use caliptra_cfi_derive::cfi_mod_fn;
use caliptra_cfi_lib::cfi_assert_eq;
use caliptra_common::crypto::Crypto;
use caliptra_commo... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/crypto.rs | rom/dev/src/crypto.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
crypto.rs
Abstract:
Crypto helper routines
--*/
use caliptra_drivers::Ecc384Signature;
use caliptra_x509::Ecdsa384Signature;
/// ECDSA-384 Signature Adapter
///
pub trait Ecdsa384SignatureAdapter {
/// Convert to ECDSA Signature
fn to_ecdsa(... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/fht.rs | rom/dev/src/fht.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
fht.rs
Abstract:
Firmware Handoff table creation and loading.
--*/
use crate::{rom_env::RomEnv, CALIPTRA_ROM_INFO};
#[cfg(not(feature = "no-cfi"))]
use caliptra_cfi_derive::cfi_mod_fn;
use caliptra_common::{
keyids::{
KEY_ID_FMC_ECDSA_PRI... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/flow/fake.rs | rom/dev/src/flow/fake.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
fake.rs
Abstract:
File contains the implementation of the fake ROM reset flows
--*/
#[cfg(not(feature = "fake-rom"))]
compile_error!("This file should NEVER be included except for the fake-rom feature");
use crate::fht;
use crate::flow::cold_reset::... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/flow/uds_programming.rs | rom/dev/src/flow/uds_programming.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
uds_programming.rs
Abstract:
File contains the implementation of UDS programming flow.
--*/
use crate::rom_env::RomEnv;
#[cfg(not(feature = "no-cfi"))]
use caliptra_cfi_derive::cfi_impl_fn;
use caliptra_common::cprintln;
use caliptra_common::uds_fe_pr... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/flow/update_reset.rs | rom/dev/src/flow/update_reset.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
update_reset.rs
Abstract:
File contains the implementation of update reset flow.
--*/
#[cfg(feature = "fake-rom")]
use crate::flow::fake::FakeRomImageVerificationEnv;
use crate::key_ladder;
use crate::{cprintln, pcr, rom_env::RomEnv};
#[cfg(not(featur... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/flow/mod.rs | rom/dev/src/flow/mod.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
mod.rs
Abstract:
File contains the top level dispatch of various ROM Flows.
--*/
mod cold_reset;
pub mod debug_unlock;
#[cfg(feature = "fake-rom")]
mod fake;
pub(crate) mod uds_programming;
mod update_reset;
mod warm_reset;
pub use crate::flow::uds_... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/flow/warm_reset.rs | rom/dev/src/flow/warm_reset.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
warm_reset.rs
Abstract:
File contains the implementation of warm reset flow.
--*/
use crate::{cprintln, rom_env::RomEnv};
#[cfg(not(feature = "no-cfi"))]
use caliptra_cfi_derive::cfi_impl_fn;
use caliptra_cfi_lib::{cfi_assert_eq, cfi_assert_ne, cfi_la... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/flow/debug_unlock.rs | rom/dev/src/flow/debug_unlock.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
debug_unlock.rs
Abstract:
File contains the code to handle debug unlock
--*/
use core::mem::ManuallyDrop;
use crate::flow::cold_reset::fw_processor::FirmwareProcessor;
use crate::CaliptraResult;
use caliptra_api::mailbox::{
MailboxRespHeader, Ma... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/flow/cold_reset/ldev_id.rs | rom/dev/src/flow/cold_reset/ldev_id.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
ldev_id.rs
Abstract:
File contains the implementation of DICE Local Device Identity (LDEVID)
layer.
--*/
use super::dice::*;
use crate::cprintln;
use crate::flow::cold_reset::{copy_tbs, TbsType};
use crate::print::HexBytes;
use crate::rom_env::Ro... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/flow/cold_reset/ocp_lock.rs | rom/dev/src/flow/cold_reset/ocp_lock.rs | // Licensed under the Apache-2.0 license
use caliptra_api::mailbox::{
OcpLockReportHekMetadataReq, OcpLockReportHekMetadataResp, OcpLockReportHekMetadataRespFlags,
};
use caliptra_cfi_lib::{cfi_assert, cfi_assert_bool, cfi_launder};
use caliptra_common::{
crypto::Crypto,
keyids::{
ocp_lock::{KEY_ID... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/flow/cold_reset/dice.rs | rom/dev/src/flow/cold_reset/dice.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
dice.rs
Abstract:
File contains interface and definitions for common Device Identity
Composition Engine (DICE) functionality.
--*/
use caliptra_common::crypto::{Ecc384KeyPair, MlDsaKeyPair};
use zeroize::Zeroize;
/// DICE Layer Input
#[derive(De... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/flow/cold_reset/fmc_alias.rs | rom/dev/src/flow/cold_reset/fmc_alias.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
fmc_alias.rs
Abstract:
File contains the implementation of DICE First Mutable Code (FMC)
layer.
--*/
use super::dice::{DiceInput, DiceOutput};
use super::fw_processor::FwProcInfo;
use crate::cprintln;
use crate::flow::cold_reset::{copy_tbs, TbsTy... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/flow/cold_reset/mod.rs | rom/dev/src/flow/cold_reset/mod.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
mod.rs
Abstract:
File contains the implementation of Cold Reset Flow
--*/
mod dice;
mod fmc_alias;
pub mod fw_processor;
mod idev_id;
mod ldev_id;
mod ocp_lock;
mod x509;
use crate::fht;
use crate::flow::cold_reset::dice::*;
use crate::flow::cold_re... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/flow/cold_reset/idev_id.rs | rom/dev/src/flow/cold_reset/idev_id.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
init_dev_id.rs
Abstract:
File contains the implementation of DICE Initial Device Identity (IDEVID)
layer.
--*/
use super::dice::*;
use crate::cprintln;
use crate::crypto::Ecdsa384SignatureAdapter;
use crate::flow::{cold_reset, cold_reset::ocp_loc... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/flow/cold_reset/x509.rs | rom/dev/src/flow/cold_reset/x509.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
x509.rs
Abstract:
File contains X509 Certificate & CSR related utility functions
--*/
use crate::cprintln;
use crate::rom_env::RomEnv;
use caliptra_common::{crypto::PubKey, x509};
use caliptra_drivers::*;
use core::mem::size_of;
/// Get Initial Devic... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/flow/cold_reset/fw_processor/cm_derive_stable_key.rs | rom/dev/src/flow/cold_reset/fw_processor/cm_derive_stable_key.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
cm_derive_stable_key.rs
Abstract:
File contains CM_DERIVE_STABLE_KEY mailbox command.
--*/
use caliptra_api::mailbox::{CmDeriveStableKeyReq, CmDeriveStableKeyResp};
use caliptra_drivers::{Aes, CaliptraResult, Hmac, PersistentData, Trng};
use zerocop... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/flow/cold_reset/fw_processor/ri_download_firmware.rs | rom/dev/src/flow/cold_reset/fw_processor/ri_download_firmware.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
ri_download_firmware.rs
Abstract:
File contains RI_DOWNLOAD_FIRMWARE mailbox command.
--*/
use caliptra_common::RomBootStatus::FwProcessorDownloadImageComplete;
use caliptra_drivers::{cprintln, report_boot_status, CaliptraResult, Dma, SocIfc};
use s... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/flow/cold_reset/fw_processor/shutdown.rs | rom/dev/src/flow/cold_reset/fw_processor/shutdown.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
shutdown.rs
Abstract:
File contains SHUTDOWN mailbox command.
--*/
use caliptra_common::mailbox_api::{MailboxReqHeader, MailboxRespHeader};
use caliptra_drivers::{CaliptraError, CaliptraResult};
use zerocopy::FromBytes;
pub struct ShutdownCmd;
impl ... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/flow/cold_reset/fw_processor/version.rs | rom/dev/src/flow/cold_reset/fw_processor/version.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
version.rs
Abstract:
File contains VERSION mailbox command.
--*/
use caliptra_common::fips::FipsVersionCmd;
use caliptra_common::mailbox_api::{FipsVersionResp, MailboxReqHeader};
use caliptra_drivers::{CaliptraError, CaliptraResult, SocIfc};
use zero... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/flow/cold_reset/fw_processor/zeroize_uds_fe.rs | rom/dev/src/flow/cold_reset/fw_processor/zeroize_uds_fe.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
zeroize_uds_fe.rs
Abstract:
File contains ZEROIZE_UDS_FE mailbox command.
--*/
use caliptra_api::mailbox::{
ZeroizeUdsFeReq, ZeroizeUdsFeResp, ZEROIZE_FE0_FLAG, ZEROIZE_FE1_FLAG, ZEROIZE_FE2_FLAG,
ZEROIZE_FE3_FLAG, ZEROIZE_UDS_FLAG,
};
use ca... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/flow/cold_reset/fw_processor/cm_hmac.rs | rom/dev/src/flow/cold_reset/fw_processor/cm_hmac.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
cm_hmac.rs
Abstract:
File contains CM_HMAC mailbox command.
--*/
use caliptra_api::mailbox::CmHmacResp;
use caliptra_common::crypto::Crypto;
use caliptra_common::hmac_cm::hmac;
use caliptra_common::mailbox_api::ResponseVarSize;
use caliptra_drivers::... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/flow/cold_reset/fw_processor/mldsa_verify.rs | rom/dev/src/flow/cold_reset/fw_processor/mldsa_verify.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
mldsa_verify.rs
Abstract:
File contains MLDSA87_SIGNATURE_VERIFY mailbox command.
--*/
use caliptra_common::mailbox_api::MailboxRespHeader;
use caliptra_drivers::{report_fw_error_non_fatal, CaliptraResult, Mldsa87};
pub struct MldsaVerifyCmd;
impl M... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/flow/cold_reset/fw_processor/stash_measurement.rs | rom/dev/src/flow/cold_reset/fw_processor/stash_measurement.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
stash_measurement.rs
Abstract:
File contains STASH_MEASUREMENT mailbox command.
--*/
use caliptra_common::mailbox_api::{StashMeasurementReq, StashMeasurementResp};
use caliptra_common::pcr::PCR_ID_STASH_MEASUREMENT;
use caliptra_common::{PcrLogEntry,... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/flow/cold_reset/fw_processor/mod.rs | rom/dev/src/flow/cold_reset/fw_processor/mod.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
mod.rs
Abstract:
File contains the code to download and validate the firmware.
--*/
#[cfg(feature = "fake-rom")]
use crate::flow::fake::FakeRomImageVerificationEnv;
use crate::fuse::log_fuse_data;
use crate::key_ladder;
use crate::pcr;
use crate::rom... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | true |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/flow/cold_reset/fw_processor/ecdsa_verify.rs | rom/dev/src/flow/cold_reset/fw_processor/ecdsa_verify.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
ecdsa_verify.rs
Abstract:
File contains ECDSA384_SIGNATURE_VERIFY mailbox command.
--*/
use caliptra_common::mailbox_api::MailboxRespHeader;
use caliptra_drivers::{report_fw_error_non_fatal, CaliptraResult, Ecc384};
pub struct EcdsaVerifyCmd;
impl E... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/rom/dev/src/flow/cold_reset/fw_processor/get_idev_csr.rs | rom/dev/src/flow/cold_reset/fw_processor/get_idev_csr.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
get_idev_csr.rs
Abstract:
File contains GET_IDEV_ECC384_CSR and GET_IDEV_MLDSA87_CSR mailbox commands.
--*/
use caliptra_common::mailbox_api::{GetIdevCsrResp, MailboxReqHeader, ResponseVarSize};
use caliptra_drivers::{CaliptraError, CaliptraResult, P... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.