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/rom/dev/src/flow/cold_reset/fw_processor/report_hek_metadata.rs
rom/dev/src/flow/cold_reset/fw_processor/report_hek_metadata.rs
/*++ Licensed under the Apache-2.0 license. File Name: report_hek_metadata.rs Abstract: File contains OCP_LOCK_REPORT_HEK_METADATA mailbox command. --*/ use caliptra_api::mailbox::OcpLockReportHekMetadataReq; use caliptra_drivers::{CaliptraError, CaliptraResult, PersistentData, SocIfc}; use zerocopy::{Fr...
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_ldev_cert.rs
rom/dev/src/flow/cold_reset/fw_processor/get_ldev_cert.rs
/*++ Licensed under the Apache-2.0 license. File Name: get_ldev_cert.rs Abstract: File contains GET_LDEV_ECC384_CERT and GET_LDEV_MLDSA87_CERT mailbox commands. --*/ use caliptra_api::mailbox::{AlgorithmType, GetLdevCertResp}; use caliptra_common::dice::GetLdevCertCmd as CommonGetLdevCertCmd; use caliptr...
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/install_owner_pk_hash.rs
rom/dev/src/flow/cold_reset/fw_processor/install_owner_pk_hash.rs
/*++ Licensed under the Apache-2.0 license. File Name: install_owner_pk_hash.rs Abstract: File contains INSTALL_OWNER_PK_HASH mailbox command. --*/ use caliptra_api::mailbox::{InstallOwnerPkHashReq, InstallOwnerPkHashResp}; use caliptra_drivers::{CaliptraError, CaliptraResult, PersistentData}; use zeroco...
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_random_generate.rs
rom/dev/src/flow/cold_reset/fw_processor/cm_random_generate.rs
/*++ Licensed under the Apache-2.0 license. File Name: cm_random_generate.rs Abstract: File contains CM_RANDOM_GENERATE mailbox command. --*/ use caliptra_api::mailbox::{CmRandomGenerateReq, CmRandomGenerateResp}; use caliptra_common::mailbox_api::ResponseVarSize; use caliptra_drivers::CaliptraResult; us...
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/self_test.rs
rom/dev/src/flow/cold_reset/fw_processor/self_test.rs
/*++ Licensed under the Apache-2.0 license. File Name: self_test.rs Abstract: File contains SELF_TEST_START and SELF_TEST_GET_RESULTS mailbox commands. --*/ use caliptra_common::mailbox_api::{MailboxReqHeader, MailboxRespHeader}; use caliptra_drivers::{CaliptraError, CaliptraResult}; use caliptra_kat::Ka...
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/capabilities.rs
rom/dev/src/flow/cold_reset/fw_processor/capabilities.rs
/*++ Licensed under the Apache-2.0 license. File Name: capabilities.rs Abstract: File contains CAPABILITIES mailbox command. --*/ use caliptra_common::capabilities::Capabilities; use caliptra_common::mailbox_api::{CapabilitiesResp, MailboxReqHeader, MailboxRespHeader}; use caliptra_drivers::{CaliptraErro...
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/tests/rom_integration_tests/test_symbols.rs
rom/dev/tests/rom_integration_tests/test_symbols.rs
// Licensed under the Apache-2.0 license use std::{collections::HashMap, mem}; use caliptra_builder::Symbol; use caliptra_cfi_lib::CfiState; use caliptra_drivers::memory_layout; #[test] fn test_linker_symbols_match_memory_layout() { let elf_bytes = caliptra_builder::build_firmware_elf(crate::helpers::rom_from_en...
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/tests/rom_integration_tests/test_pmp.rs
rom/dev/tests/rom_integration_tests/test_pmp.rs
// Licensed under the Apache-2.0 license use caliptra_api::SocManager; use caliptra_builder::{ firmware::{self, rom_tests::TEST_FMC_INTERACTIVE, APP_WITH_UART}, ImageOptions, }; use caliptra_common::RomBootStatus::*; use caliptra_hw_model::{BootParams, Fuses, HwModel, InitParams}; use caliptra_image_types::FwV...
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/tests/rom_integration_tests/rv32_unit_tests.rs
rom/dev/tests/rom_integration_tests/rv32_unit_tests.rs
// Licensed under the Apache-2.0 license use caliptra_builder::firmware; use caliptra_hw_model::{BootParams, HwModel, InitParams}; #[test] fn test_asm() { let rom = caliptra_builder::build_firmware_rom(&firmware::rom_tests::ASM_TESTS).unwrap(); let mut hw = caliptra_hw_model::new( InitParams { ...
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/tests/rom_integration_tests/test_debug_unlock.rs
rom/dev/tests/rom_integration_tests/test_debug_unlock.rs
// Licensed under the Apache-2.0 license use std::mem::size_of; use caliptra_api::mailbox::MailboxRespHeader; use caliptra_api::mailbox::{ CommandId, MailboxReqHeader, ManufDebugUnlockTokenReq, ProductionAuthDebugUnlockChallenge, ProductionAuthDebugUnlockReq, ProductionAuthDebugUnlockToken, }; use caliptra_ap...
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/tests/rom_integration_tests/test_uds_fe.rs
rom/dev/tests/rom_integration_tests/test_uds_fe.rs
/*++ Licensed under the Apache-2.0 license. File Name: uds_programming.rs Abstract: File contains the implementation of UDS programming flow test. --*/ use caliptra_api::{ mailbox::{MailboxReqHeader, ZeroizeUdsFeReq, ZEROIZE_UDS_FLAG}, SocManager, }; use caliptra_builder::firmware::{self}; use cal...
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/tests/rom_integration_tests/tests_get_idev_csr.rs
rom/dev/tests/rom_integration_tests/tests_get_idev_csr.rs
// Licensed under the Apache-2.0 license use caliptra_api::SocManager; use caliptra_builder::ImageOptions; use caliptra_common::mailbox_api::{CommandId, GetIdevCsrResp, MailboxReqHeader}; use caliptra_drivers::{InitDevIdCsrEnvelope, MfgFlags}; use caliptra_error::CaliptraError; use caliptra_hw_model::{DeviceLifecycle,...
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/tests/rom_integration_tests/test_capabilities.rs
rom/dev/tests/rom_integration_tests/test_capabilities.rs
// Licensed under the Apache-2.0 license use caliptra_builder::ImageOptions; use caliptra_common::capabilities::Capabilities; use caliptra_common::mailbox_api::{ CapabilitiesResp, CommandId, MailboxReqHeader, MailboxRespHeader, }; use caliptra_hw_model::{Fuses, HwModel}; use zerocopy::{FromBytes, IntoBytes}; 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/tests/rom_integration_tests/test_cpu_fault.rs
rom/dev/tests/rom_integration_tests/test_cpu_fault.rs
// Licensed under the Apache-2.0 license use caliptra_api::SocManager; use caliptra_hw_model::{BootParams, HwModel, InitParams}; use elf::{endian::LittleEndian, ElfBytes}; #[test] fn test_cpu_fault() { const GLOBAL_EXCEPTION: u32 = 0x01050002; let rom_fwid = crate::helpers::rom_from_env(); let elf_bytes...
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/tests/rom_integration_tests/test_mldsa_verify.rs
rom/dev/tests/rom_integration_tests/test_mldsa_verify.rs
// Licensed under the Apache-2.0 license use caliptra_common::mailbox_api::{ CommandId, MailboxReqHeader, MailboxRespHeader, MldsaVerifyReq, }; use caliptra_hw_model::{Fuses, HwModel, ModelError}; use caliptra_kat::CaliptraError; use ml_dsa::signature::Signer; use ml_dsa::{KeyGen, MlDsa87}; use rand::thread_rng; u...
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/tests/rom_integration_tests/helpers.rs
rom/dev/tests/rom_integration_tests/helpers.rs
// Licensed under the Apache-2.0 license use std::mem; use caliptra_api::SocManager; use caliptra_builder::{firmware, FwId, ImageOptions}; use caliptra_common::mailbox_api::CommandId; use caliptra_common::{ memory_layout::{ROM_ORG, ROM_SIZE, ROM_STACK_ORG, ROM_STACK_SIZE, STACK_ORG, STACK_SIZE}, FMC_ORG, FMC_...
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/tests/rom_integration_tests/test_fips_hooks.rs
rom/dev/tests/rom_integration_tests/test_fips_hooks.rs
// Licensed under the Apache-2.0 license use crate::helpers; use caliptra_api::SocManager; use caliptra_builder::firmware::{ APP_WITH_UART, APP_WITH_UART_FPGA, FMC_WITH_UART, ROM_WITH_FIPS_TEST_HOOKS, ROM_WITH_FIPS_TEST_HOOKS_FPGA, }; use caliptra_builder::ImageOptions; use caliptra_drivers::CaliptraError; 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/tests/rom_integration_tests/test_wdt_activation_and_stoppage.rs
rom/dev/tests/rom_integration_tests/test_wdt_activation_and_stoppage.rs
// Licensed under the Apache-2.0 license use crate::helpers; use caliptra_api::SocManager; use caliptra_builder::{ firmware::rom_tests::TEST_FMC_INTERACTIVE, firmware::APP_WITH_UART, ImageOptions, }; use caliptra_common::RomBootStatus::{self, KatStarted}; use caliptra_hw_model::{BootParams, DeviceLifecycle, Fuses,...
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/tests/rom_integration_tests/test_mailbox_errors.rs
rom/dev/tests/rom_integration_tests/test_mailbox_errors.rs
// Licensed under the Apache-2.0 license use caliptra_builder::ImageOptions; use caliptra_common::mailbox_api::{CommandId, MailboxReqHeader, StashMeasurementReq}; use caliptra_error::CaliptraError; use caliptra_hw_model::{Fuses, HwModel, ModelError}; use zerocopy::IntoBytes; use crate::helpers; // Since the boot tak...
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/tests/rom_integration_tests/test_fmcalias_derivation.rs
rom/dev/tests/rom_integration_tests/test_fmcalias_derivation.rs
// Licensed under the Apache-2.0 license use caliptra_api::SocManager; use caliptra_builder::{ firmware::{ rom_tests::{TEST_FMC_INTERACTIVE, TEST_FMC_WITH_UART}, APP_WITH_UART, }, ImageOptions, }; use caliptra_common::mailbox_api::{CommandId, MailboxReqHeader, StashMeasurementReq}; use cali...
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/tests/rom_integration_tests/test_ldev_cert_cmd.rs
rom/dev/tests/rom_integration_tests/test_ldev_cert_cmd.rs
// Licensed under the Apache-2.0 license use caliptra_api::mailbox::GetLdevCertResp; use caliptra_api::SocManager; use caliptra_common::mailbox_api::{CommandId, MailboxReqHeader}; use caliptra_hw_model::{DefaultHwModel, Fuses, HwModel}; use caliptra_image_types::FwVerificationPqcKeyType; use openssl::x509::X509; 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/rom/dev/tests/rom_integration_tests/test_panic_missing.rs
rom/dev/tests/rom_integration_tests/test_panic_missing.rs
// Licensed under the Apache-2.0 license #[test] fn test_panic_missing() { let rom_elf = caliptra_builder::build_firmware_elf(crate::helpers::rom_from_env()).unwrap(); let symbols = caliptra_builder::elf_symbols(&rom_elf).unwrap(); if symbols.iter().any(|s| s.name.contains("panic_is_possible")) { p...
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/tests/rom_integration_tests/test_derive_stable_key.rs
rom/dev/tests/rom_integration_tests/test_derive_stable_key.rs
// Licensed under the Apache-2.0 license use crate::helpers; use aes_gcm::{aead::AeadMutInPlace, Key}; use caliptra_api::mailbox::{ CmDeriveStableKeyReq, CmDeriveStableKeyResp, CmHashAlgorithm, CmHmacReq, CmHmacResp, CmRandomGenerateReq, CmRandomGenerateResp, CmStableKeyType, MailboxReq, MailboxRespHeaderV...
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/tests/rom_integration_tests/test_ocp_lock.rs
rom/dev/tests/rom_integration_tests/test_ocp_lock.rs
// Licensed under the Apache-2.0 license use caliptra_api::mailbox::{ MailboxReq, OcpLockReportHekMetadataReq, OcpLockReportHekMetadataResp, OcpLockReportHekMetadataRespFlags, }; use caliptra_builder::firmware::ROM_FPGA_WITH_UART; use caliptra_common::mailbox_api::{CommandId, MailboxReqHeader}; use caliptra_dr...
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/tests/rom_integration_tests/test_dice_derivations.rs
rom/dev/tests/rom_integration_tests/test_dice_derivations.rs
// Licensed under the Apache-2.0 license use caliptra_api::SocManager; use caliptra_builder::firmware::rom_tests::TEST_FMC_WITH_UART; use caliptra_builder::firmware::APP_WITH_UART; use caliptra_builder::ImageOptions; use caliptra_common::mailbox_api::CommandId; use caliptra_common::RomBootStatus::*; use caliptra_hw_mo...
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/tests/rom_integration_tests/test_warm_reset.rs
rom/dev/tests/rom_integration_tests/test_warm_reset.rs
// Licensed under the Apache-2.0 license use caliptra_api::{ mailbox::{FipsVersionResp, MailboxReqHeader, MailboxRespHeader}, SocManager, }; #[allow(unused_imports)] use caliptra_builder::{ firmware::{self, APP_WITH_UART, APP_WITH_UART_FPGA, FMC_WITH_UART}, version, ImageOptions, }; use caliptra_common...
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/tests/rom_integration_tests/test_rom_integrity.rs
rom/dev/tests/rom_integration_tests/test_rom_integrity.rs
// Licensed under the Apache-2.0 license use crate::helpers; use caliptra_api::SocManager; use caliptra_builder::{ firmware::{rom_tests::TEST_FMC_WITH_UART, APP_WITH_UART}, ImageOptions, }; use caliptra_common::RomBootStatus::ColdResetComplete; use caliptra_error::CaliptraError; use caliptra_hw_model::{BootPar...
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/tests/rom_integration_tests/main.rs
rom/dev/tests/rom_integration_tests/main.rs
// Licensed under the Apache-2.0 license mod helpers; mod rv32_unit_tests; mod test_capabilities; mod test_cfi; mod test_cpu_fault; mod test_debug_unlock; mod test_derive_stable_key; mod test_dice_derivations; mod test_ecdsa_verify; mod test_fake_rom; mod test_fips_hooks; mod test_fmcalias_derivation; mod test_idevid...
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/tests/rom_integration_tests/test_image_validation.rs
rom/dev/tests/rom_integration_tests/test_image_validation.rs
// Licensed under the Apache-2.0 license use caliptra_api::{ mailbox::{CommandId, InstallOwnerPkHashReq, InstallOwnerPkHashResp}, SocManager, }; use caliptra_builder::{ firmware::{ rom_tests::{TEST_FMC_INTERACTIVE, TEST_FMC_WITH_UART, TEST_RT_WITH_UART}, APP_WITH_UART, }, ImageOptio...
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/tests/rom_integration_tests/test_update_reset.rs
rom/dev/tests/rom_integration_tests/test_update_reset.rs
// Licensed under the Apache-2.0 license use crate::helpers; use crate::test_derive_stable_key::HW_MODEL_MODES_SUBSYSTEM; use caliptra_api::SocManager; use caliptra_builder::{ firmware::{ rom_tests::{ FAKE_TEST_FMC_INTERACTIVE, FAKE_TEST_FMC_WITH_UART, TEST_FMC_INTERACTIVE, TEST_FMC...
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/tests/rom_integration_tests/test_version.rs
rom/dev/tests/rom_integration_tests/test_version.rs
// Licensed under the Apache-2.0 license use caliptra_builder::{version, ImageOptions}; use caliptra_common::fips::FipsVersionCmd; use caliptra_common::mailbox_api::{ CommandId, FipsVersionResp, MailboxReqHeader, MailboxRespHeader, }; use caliptra_hw_model::{Fuses, HwModel}; use zerocopy::{FromBytes, IntoBytes}; ...
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/tests/rom_integration_tests/test_cfi.rs
rom/dev/tests/rom_integration_tests/test_cfi.rs
// Licensed under the Apache-2.0 license use caliptra_builder::{ elf_symbols, firmware::{ROM, ROM_WITH_UART}, Symbol, }; use caliptra_common::RomBootStatus; use caliptra_emu_cpu::CoverageBitmaps; use caliptra_hw_model::{BootParams, HwModel, InitParams}; fn find_symbol<'a>(symbols: &'a [Symbol<'a>], name: ...
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/tests/rom_integration_tests/test_ecdsa_verify.rs
rom/dev/tests/rom_integration_tests/test_ecdsa_verify.rs
// Licensed under the Apache-2.0 license use caliptra_common::mailbox_api::{ CommandId, EcdsaVerifyReq, MailboxReqHeader, MailboxRespHeader, }; use caliptra_hw_model::{Fuses, HwModel, ModelError}; use caliptra_kat::CaliptraError; use openssl::sha::sha384; use zerocopy::{FromBytes, IntoBytes}; use crate::helpers; ...
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/tests/rom_integration_tests/test_fake_rom.rs
rom/dev/tests/rom_integration_tests/test_fake_rom.rs
// Licensed under the Apache-2.0 license use caliptra_api::SocManager; use caliptra_builder::{ firmware::{ fake_rom, rom_tests::{FAKE_TEST_FMC_INTERACTIVE, FAKE_TEST_FMC_WITH_UART}, APP_WITH_UART, }, ImageOptions, }; use caliptra_common::{mailbox_api::CommandId, RomBootStatus::*}; u...
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/tests/rom_integration_tests/test_idevid_derivation.rs
rom/dev/tests/rom_integration_tests/test_idevid_derivation.rs
// Licensed under the Apache-2.0 license use caliptra_api::SocManager; use caliptra_builder::{firmware, ImageOptions}; use caliptra_common::mailbox_api::{CommandId, GetLdevCertResp, MailboxReqHeader}; use caliptra_drivers::{IdevidCertAttr, InitDevIdCsrEnvelope, MfgFlags, X509KeyIdAlgo}; use caliptra_hw_model::{Default...
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/test-fw/asm_tests.rs
rom/dev/test-fw/asm_tests.rs
// Licensed under the Apache-2.0 license #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(not(feature = "std"), no_main)] #[cfg(feature = "std")] pub fn main() {} #[cfg(not(feature = "std"))] core::arch::global_asm!(include_str!("../src/start.S")); #[path = "../src/exception.rs"] mod exception; use caliptra_...
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/test-fw/pmp_tests.rs
rom/dev/test-fw/pmp_tests.rs
// Licensed under the Apache-2.0 license #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(not(feature = "std"), no_main)] #[cfg(feature = "std")] pub fn main() {} #[cfg(not(feature = "std"))] core::arch::global_asm!(include_str!("../src/start.S")); #[path = "../src/exception.rs"] mod exception; use caliptra_...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/fmc/build.rs
fmc/build.rs
/*++ Licensed under the Apache-2.0 license. File Name: build.rs Abstract: Build script for Caliptra FMC --*/ fn main() { cfg_if::cfg_if! { if #[cfg(not(feature = "std"))] { use std::env; use std::fs; use std::path::PathBuf; use caliptra_gen_link...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/fmc/src/fmc_env.rs
fmc/src/fmc_env.rs
/*++ Licensed under the Apache-2.0 license. File Name: fmc_env.rs Abstract: File implements a context holding all the services utilized by firmware. The primary need for this abstraction is to hide the hardware details from the ROM/FMC/RT flows. The natural side benefit of this abstraction is it ...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/fmc/src/main.rs
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 core::hint::black_box; use caliptra_cfi_lib::{cfi_assert_eq, CfiCounter}; 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/fmc/src/boot_status.rs
fmc/src/boot_status.rs
// Licensed under the Apache-2.0 license use core::convert::From; const RTALIAS_BOOT_STATUS_BASE: u32 = 0x400; /// Statuses used by ROM to log dice derivation progress. #[repr(u32)] #[derive(Clone, Copy, Debug, Eq, PartialEq)] pub enum FmcBootStatus { // RtAlias Statuses RtMeasurementComplete = RTALIAS_BOOT_ST...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/fmc/src/hand_off.rs
fmc/src/hand_off.rs
/*++ Licensed under the Apache-2.0 license. File Name: hand_off.rs Implements handoff behavior of FMC : - Retrieves FHT table from fixed address in DCCM. - Transfers control to the runtime firmware. ++*/ use crate::flow::dice::DiceOutput; use crate::fmc_env::FmcEnv; #[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/fmc/src/flow/dice.rs
fmc/src/flow/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_drivers::KeyId; use caliptra_common::crypto::{Ecc384KeyPair, MlDsaKeyPair}; /// DICE Layer Input #[d...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/fmc/src/flow/tci.rs
fmc/src/flow/tci.rs
/*++ Licensed under the Apache-2.0 license. File Name: tci.rs Abstract: File contains execution routines for TCI computation Environment: FMC --*/ use crate::fmc_env::FmcEnv; use caliptra_drivers::{Array4x12, CaliptraResult}; use zerocopy::IntoBytes; pub struct Tci {} impl Tci { /// Compute I...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/fmc/src/flow/mod.rs
fmc/src/flow/mod.rs
/*++ Licensed under the Apache-2.0 license. File Name: mod.rs Abstract: File contains the top level dispatch of various RT Flows. --*/ pub mod dice; mod fmc_alias_csr_ecc_384; mod pcr; mod rt_alias; mod tci; use crate::flow::rt_alias::RtAliasLayer; use crate::fmc_env::FmcEnv; use caliptra_cfi_lib::cfi_...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/fmc/src/flow/rt_alias.rs
fmc/src/flow/rt_alias.rs
/*++ Licensed under the Apache-2.0 license. File Name: rt_alias.rs Abstract: Alias RT DICE Layer & PCR extension --*/ #[cfg(not(feature = "no-cfi"))] use caliptra_cfi_derive::cfi_impl_fn; use caliptra_cfi_lib::{cfi_assert, cfi_assert_bool, cfi_assert_eq, cfi_launder}; use caliptra_common::x509; 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/fmc/src/flow/pcr.rs
fmc/src/flow/pcr.rs
/*++ Licensed under the Apache-2.0 license. File Name: pcr.rs Abstract: File contains execution routines for extending current and journey PCRs. Environment: FMC Note: PCR2 - Current PCR unlocked and cleared on any reset PCR3 - Journey PCR unlocked and cleared on cold reset --*/ 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/fmc/src/flow/fmc_alias_csr_ecc_384.rs
fmc/src/flow/fmc_alias_csr_ecc_384.rs
// Licensed under the Apache-2.0 license use crate::flow::dice::DiceOutput; use crate::fmc_env::FmcEnv; use crate::HandOff; use caliptra_common::{ crypto::{Crypto, Ecc384KeyPair, MlDsaKeyPair, PubKey}, dice, x509, }; use caliptra_drivers::{ okmutref, sha2_512_384::Sha2DigestOpTrait, Array4x12, CaliptraErro...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/fmc/tests/fmc_integration_tests/helpers.rs
fmc/tests/fmc_integration_tests/helpers.rs
// Licensed under the Apache-2.0 license use caliptra_image_types::FwVerificationPqcKeyType; pub const PQC_KEY_TYPE: [FwVerificationPqcKeyType; 2] = [ FwVerificationPqcKeyType::LMS, FwVerificationPqcKeyType::MLDSA, ];
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/fmc/tests/fmc_integration_tests/test_panic_missing.rs
fmc/tests/fmc_integration_tests/test_panic_missing.rs
// Licensed under the Apache-2.0 license use caliptra_builder::firmware; #[test] fn test_panic_missing() { let fmc_elf = caliptra_builder::build_firmware_elf(&firmware::FMC_WITH_UART).unwrap(); let symbols = caliptra_builder::elf_symbols(&fmc_elf).unwrap(); if symbols.iter().any(|s| s.name.contains("panic...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/fmc/tests/fmc_integration_tests/test_rtalias.rs
fmc/tests/fmc_integration_tests/test_rtalias.rs
// Licensed under the Apache-2.0 license use caliptra_api::soc_mgr::SocManager; use caliptra_auth_man_gen::default_test_manifest::DEFAULT_MCU_FW; use caliptra_builder::{ firmware::{ self, runtime_tests::{MOCK_RT_INTERACTIVE, MOCK_RT_INTERACTIVE_FPGA}, 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/fmc/tests/fmc_integration_tests/main.rs
fmc/tests/fmc_integration_tests/main.rs
// Licensed under the Apache-2.0 license mod helpers; mod test_hand_off; mod test_panic_missing; mod test_rtalias;
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/fmc/tests/fmc_integration_tests/test_hand_off.rs
fmc/tests/fmc_integration_tests/test_hand_off.rs
// Licensed under the Apache-2.0 license use crate::helpers; use caliptra_builder::{firmware, ImageOptions}; use caliptra_hw_model::{BootParams, Fuses, HwModel, InitParams}; #[test] fn test_hand_off() { for pqc_key_type in helpers::PQC_KEY_TYPE.iter() { let fuses = Fuses { fuse_pqc_key_type: *p...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/api/src/mailbox.rs
api/src/mailbox.rs
// Licensed under the Apache-2.0 license use crate::CaliptraApiError; use bitflags::bitflags; use caliptra_error::{CaliptraError, CaliptraResult}; use caliptra_image_types::{ ECC384_SCALAR_BYTE_SIZE, MLDSA87_PUB_KEY_BYTE_SIZE, MLDSA87_SIGNATURE_BYTE_SIZE, SHA512_DIGEST_BYTE_SIZE, }; use caliptra_registers::mbo...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
true
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/api/src/lib.rs
api/src/lib.rs
// Licensed under the Apache-2.0 license #![cfg_attr(not(test), no_std)] mod capabilities; pub mod checksum; pub mod mailbox; pub mod soc_mgr; pub use caliptra_error as error; pub use capabilities::Capabilities; pub use checksum::{calc_checksum, verify_checksum}; pub use soc_mgr::SocManager; #[derive(Debug, Eq, Part...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/api/src/checksum.rs
api/src/checksum.rs
// Licensed under the Apache-2.0 license /// Verify checksum pub fn verify_checksum(checksum: u32, cmd: u32, data: &[u8]) -> bool { calc_checksum(cmd, data) == checksum } /// Calculate the checksum /// 0 - (SUM(command code bytes) + SUM(request/response bytes)) pub fn calc_checksum(cmd: u32, data: &[u8]) -> u32 {...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/api/src/soc_mgr.rs
api/src/soc_mgr.rs
// Licensed under the Apache-2.0 license use crate::{ calc_checksum, mailbox::{ mbox_read_response, mbox_write_fifo, MailboxReqHeader, MailboxRespHeader, Request, Response, StashMeasurementReq, }, CaliptraApiError, }; use caliptra_api_types::Fuses; use core::mem; use ureg::MmioMut; use ...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/api/src/capabilities.rs
api/src/capabilities.rs
/*++ Licensed under the Apache-2.0 license. File Name: capabilities.rs Abstract: Capability bits --*/ bitflags::bitflags! { /// First 64 bits are reserved for RT, next 32 bits are reserved for FMC, and final 32 bits are reserved for ROM #[derive(Default, Copy, Clone, Debug)] pub struct Capabi...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/api/types/src/lib.rs
api/types/src/lib.rs
// Licensed under the Apache-2.0 license #![cfg_attr(not(test), no_std)] use caliptra_image_types::FwVerificationPqcKeyType; // Rationale behind this choice // // * The constant should be easily recognizable in waveforms and debug logs // * Every word must be different to ensure that a "stuck word" bug is noticed. //...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/common/src/fips.rs
common/src/fips.rs
// Licensed under the Apache-2.0 license use crate::cprintln; use crate::mailbox_api::{FipsVersionResp, MailboxRespHeader}; use caliptra_drivers::SocIfc; pub struct FipsVersionCmd; impl FipsVersionCmd { pub const NAME: [u8; 12] = *b"Caliptra RTM"; pub const MODE: u32 = 0x46495053; #[cfg_attr(feature = "r...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/common/src/pmp.rs
common/src/pmp.rs
/*++ Licensed under the Apache-2.0 license. File Name: pmp.rs Abstract: PMP support routine for locking the DataVault. --*/ use riscv::register::{pmpaddr0, pmpaddr1, pmpaddr2, pmpaddr3, pmpcfg0, Permission, Range}; /// Lock the DataVault region using PMP configuration. /// /// # Arguments /// * `base_add...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/common/src/lib.rs
common/src/lib.rs
// Licensed under the Apache-2.0 license. #![cfg_attr(not(feature = "std"), no_std)] pub mod boot_status; pub mod capabilities { pub use caliptra_api::Capabilities; } pub mod checksum { pub use caliptra_api::{calc_checksum, verify_checksum}; } pub mod crypto; pub mod debug_unlock; pub mod dice; pub mod error_...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/common/src/dice.rs
common/src/dice.rs
/*++ Licensed under the Apache-2.0 license. File Name: dice.rs Abstract: DICE-related --*/ use caliptra_api::mailbox::{AlgorithmType, GetLdevCertResp, MailboxRespHeader, ResponseVarSize}; use caliptra_drivers::{ CaliptraError, CaliptraResult, Ecc384Signature, Lifecycle, Mldsa87Signature, PersistentDa...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/common/src/hmac_cm.rs
common/src/hmac_cm.rs
/*++ Licensed under the Apache-2.0 license. File Name: hmac_cm.rs Abstract: HMAC Cryptographic Mailbox command processing. --*/ use crate::crypto::{Crypto, EncryptedCmk, UnencryptedCmk}; use caliptra_api::mailbox::{ CmHashAlgorithm, CmHmacReq, CmHmacResp, CmKeyUsage, Cmk, MailboxRespHeaderVarSize, ...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/common/src/wdt.rs
common/src/wdt.rs
/*++ Licensed under the Apache-2.0 license. File Name: wdt.rs Abstract: File contains execution routines for programming the Watchdog Timer. --*/ use caliptra_drivers::SocIfc; pub struct WdtTimeout(pub core::num::NonZeroU64); impl Default for WdtTimeout { fn default() -> WdtTimeout { WdtTi...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/common/src/verify.rs
common/src/verify.rs
/*++ Licensed under the Apache-2.0 license. File Name: verify.rs Abstract: File contains EcdsaVerify mailbox command. --*/ use caliptra_api::mailbox::{EcdsaVerifyReq, MldsaVerifyReq}; use caliptra_cfi_derive_git::cfi_impl_fn; use caliptra_drivers::{ Array4x12, CaliptraError, CaliptraResult, Ecc384, E...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/common/src/macros.rs
common/src/macros.rs
// Licensed under the Apache-2.0 license. #[macro_export] macro_rules! cfi_check { ($result:expr) => { if cfi_launder($result.is_ok()) { cfi_assert!($result.is_ok()); } else { cfi_assert!($result.is_err()); } }; }
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/common/src/keyids.rs
common/src/keyids.rs
/*++ Licensed under the Apache-2.0 license. File Name: keyids.rs Abstract: Key IDs --*/ use caliptra_drivers::KeyId; #[cfg(feature = "rom")] pub const KEY_ID_UDS: KeyId = KeyId::KeyId0; #[cfg(feature = "rom")] pub const KEY_ID_FE: KeyId = KeyId::KeyId1; #[cfg(feature = "rom")] pub const KEY_ID_IDEVID_ECD...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/common/src/debug_unlock.rs
common/src/debug_unlock.rs
/*++ Licensed under the Apache-2.0 license. File Name: debug_unlock.rs Abstract: File contains common code for debug unlock validation. --*/ use core::mem::size_of; use caliptra_api::mailbox::{ MailboxReqHeader, MailboxRespHeader, ProductionAuthDebugUnlockChallenge, ProductionAuthDebugUnlockReq,...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/common/src/crypto.rs
common/src/crypto.rs
/*++ Licensed under the Apache-2.0 license. File Name: crypto.rs Abstract: Crypto helper routines --*/ use crate::keyids::KEY_ID_TMP; use caliptra_drivers::{ okmutref, okref, Aes, AesGcmIv, AesKey, Array4x12, CaliptraResult, Ecc384, Ecc384PrivKeyIn, Ecc384PrivKeyOut, Ecc384PubKey, Ecc384Result, Ec...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/common/src/error_handler.rs
common/src/error_handler.rs
// Licensed under the Apache-2.0 license use caliptra_drivers::{ cprintln, report_fw_error_fatal, report_fw_error_non_fatal, Aes, Ecc384, Hmac, KeyVault, Mailbox, MlKem1024, Mldsa87, Sha256, Sha2_512_384, Sha2_512_384Acc, Sha3, SocIfc, }; #[allow(clippy::empty_loop)] pub fn handle_fatal_error(code: u32) -> ! {...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/common/src/boot_status.rs
common/src/boot_status.rs
/*++ Licensed under the Apache-2.0 license. File Name: boot_status.rs Abstract: ROM boot status codes. --*/ const IDEVID_BOOT_STATUS_BASE: u32 = 1; const LDEVID_BOOT_STATUS_BASE: u32 = 65; const FWPROCESSOR_BOOT_STATUS_BASE: u32 = 129; const FMCALIAS_BOOT_STATUS_BASE: u32 = 193; const COLD_RESET_BOOT_STA...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/common/src/x509.rs
common/src/x509.rs
/*++ Licensed under the Apache-2.0 license. File Name: x509.rs Abstract: File contains X509 Certificate & CSR related utility functions --*/ use caliptra_drivers::*; use core::mem::size_of; use zerocopy::IntoBytes; use crate::crypto::PubKey; /// Get device serial number /// /// # Arguments /// /// * `so...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/common/src/verifier.rs
common/src/verifier.rs
/*++ Licensed under the Apache-2.0 license. File Name: verifier.rs Abstract: Image Verification support routines. --*/ use caliptra_drivers::*; use caliptra_image_types::*; use caliptra_image_verify::ImageVerificationEnv; use core::ops::Range; use dma::AesDmaMode; use zerocopy::{FromBytes, IntoBytes}; u...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/common/src/uds_fe_programming.rs
common/src/uds_fe_programming.rs
/*++ Licensed under the Apache-2.0 license. File Name: uds_fe_programming.rs Abstract: File contains the implementation of UDS/FE programming flow that can be used by both ROM and Runtime. --*/ use crate::cprintln; use caliptra_drivers::{AxiAddr, CaliptraError, CaliptraResult, Dma, DmaOtpCtrl, SocIfc...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/src/hkdf.rs
drivers/src/hkdf.rs
/*++ Licensed under the Apache-2.0 license. File Name: hkdf.rs Abstract: An HKDF implementation that is compliant with RFC 5869 and NIST SP 800-56Cr2 Section 5 (Two-Step Derivation). --*/ use crate::{Array4x12, Array4x16, Hmac, HmacKey, HmacMode, HmacTag, Trng}; #[cfg(not(feature = "no-cfi"))] use calipt...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/src/exit_ctrl.rs
drivers/src/exit_ctrl.rs
/*++ Licensed under the Apache-2.0 license. File Name: exit_ctrl.rs Abstract: File contains API for Caliptra Exit control --*/ use caliptra_registers::soc_ifc::SocIfcReg; use crate::Mailbox; /// Exit control pub enum ExitCtrl {} impl ExitCtrl { /// Exit the emulator /// /// # Arguments ...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/src/hmac.rs
drivers/src/hmac.rs
/*++ Licensed under the Apache-2.0 license. File Name: hmac.rs Abstract: File contains API for HMAC-384 and HMAC-512 Cryptography operations --*/ use crate::kv_access::{KvAccess, KvAccessErr}; use crate::{ array::Array4x32, wait, Array4x12, Array4x16, CaliptraError, CaliptraResult, KeyReadArgs, K...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/src/pcr_reset.rs
drivers/src/pcr_reset.rs
/*++ Licensed under the Apache-2.0 license. File Name: pcr_reset.rs Abstract: PCR reset counter. --*/ use crate::pcr_bank::{PcrBank, PcrId}; use core::ops::{Index, IndexMut}; use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout}; use zeroize::Zeroize; #[repr(C, align(4))] #[derive(IntoBytes, FromB...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/src/array.rs
drivers/src/array.rs
/*++ Licensed under the Apache-2.0 license. File Name: array.rs Abstract: File contains common array definitions used by Caliptra hardware software interface. --*/ #[cfg(not(feature = "no-cfi"))] use caliptra_cfi_derive::Launder; use core::mem::MaybeUninit; use zerocopy::{FromBytes, Immutable, IntoBy...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/src/memory_layout.rs
drivers/src/memory_layout.rs
/*++ Licensed under the Apache-2.0 license. File Name: memory_layout.rs Abstract: The file contains the layout of memory. The constants defined in this file define the memory layout. --*/ use core::mem::size_of; use crate::PersistentData; // // Memory Addresses // pub const ROM_ORG: u32 = 0x00000000...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/src/ecc384.rs
drivers/src/ecc384.rs
/*++ Licensed under the Apache-2.0 license. File Name: ecc384.rs Abstract: File contains API for ECC-384 Cryptography operations --*/ use crate::kv_access::{KvAccess, KvAccessErr}; use crate::{ array_concat3, okmutref, wait, Array4x12, Array4xN, CaliptraError, CaliptraResult, KeyReadArgs, KeyWrit...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/src/fuse_bank.rs
drivers/src/fuse_bank.rs
/*++ Licensed under the Apache-2.0 license. File Name: fuse_bank.rs Abstract: File contains API for Fuse Bank. --*/ use crate::{Array4x12, Array4x16, Array4x8}; #[cfg(not(feature = "no-cfi"))] use caliptra_cfi_derive::Launder; use caliptra_registers::soc_ifc::SocIfcReg; use zerocopy::IntoBytes; pub stru...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/src/trng_ext.rs
drivers/src/trng_ext.rs
// Licensed under the Apache-2.0 license use caliptra_error::{CaliptraError, CaliptraResult}; use caliptra_registers::soc_ifc_trng::SocIfcTrngReg; use crate::Array4x12; pub struct TrngExt { soc_ifc_trng: SocIfcTrngReg, } impl TrngExt { pub fn new(soc_ifc_trng: SocIfcTrngReg) -> Self { Self { soc_ifc...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/src/mailbox.rs
drivers/src/mailbox.rs
/*++ Licensed under the Apache-2.0 license. File Name: mailbox.rs Abstract: File contains API for Mailbox operations --*/ use crate::{memory_layout, SocIfc}; use crate::{CaliptraError, CaliptraResult}; use caliptra_registers::mbox::enums::MboxFsmE; use caliptra_registers::mbox::enums::MboxStatusE; 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/drivers/src/lib.rs
drivers/src/lib.rs
/*++ Licensed under the Apache-2.0 license. File Name: lib.rs Abstract: File contains exports for for Caliptra Library. --*/ #![cfg_attr(not(feature = "std"), no_std)] mod array; mod array_concat; mod wait; mod aes; mod bounded_address; pub mod cmac_kdf; mod csrng; mod data_vault; pub mod dma; mod doe;...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/src/ocp_lock.rs
drivers/src/ocp_lock.rs
// Licensed under the Apache-2.0 license use caliptra_error::CaliptraError; use crate::{Array4x8, Lifecycle}; #[derive(Debug)] pub enum HekSeedState { Empty, Zeroized, Corrupted, Programmed, Unerasable, } impl TryFrom<u16> for HekSeedState { type Error = CaliptraError; fn try_from(value:...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/src/soc_ifc.rs
drivers/src/soc_ifc.rs
/*++ Licensed under the Apache-2.0 license. File Name: state.rs Abstract: File contains Device state related API --*/ use crate::Array4x12; use bitfield::size_of; #[cfg(not(feature = "no-cfi"))] use caliptra_cfi_derive::Launder; use caliptra_error::{CaliptraError, CaliptraResult}; use caliptra_registers:...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/src/array_concat.rs
drivers/src/array_concat.rs
// Licensed under the Apache-2.0 license use core::mem::MaybeUninit; #[inline(always)] pub fn array_concat3< T: Copy, const LEN0: usize, const LEN1: usize, const LEN2: usize, const TOTAL_LEN: usize, >( a0: [T; LEN0], a1: [T; LEN1], a2: [T; LEN2], ) -> [T; TOTAL_LEN] { let expected_...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/src/sha2_512_384.rs
drivers/src/sha2_512_384.rs
/*++ Licensed under the Apache-2.0 license. File Name: sha2_512_384.rs Abstract: File contains API for SHA2-512/384 Cryptography operations --*/ use crate::kv_access::{KvAccess, KvAccessErr}; use crate::{array::Array4x32, wait, Array4x12, Array4x16, Array4x8, PcrId}; #[cfg(not(feature = "no-cfi"))] 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/drivers/src/sha3.rs
drivers/src/sha3.rs
/*++ Licensed under the Apache-2.0 license. File Name: sha3.rs Abstract: File contains API for SHAKE and SHA3 Cryptography operations --*/ use crate::{wait, Array4xN, CaliptraError, CaliptraResult}; use caliptra_cfi_derive::cfi_impl_fn; use caliptra_registers::kmac::{regs::CfgShadowedWriteVal, Kmac as Km...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/src/sha1.rs
drivers/src/sha1.rs
/*++ Licensed under the Apache-2.0 license. File Name: sha1.rs Abstract: File contains API for SHA1 Cryptography operations --*/ use crate::{Array4x5, CaliptraError, CaliptraResult}; #[cfg(not(feature = "no-cfi"))] use caliptra_cfi_derive::cfi_impl_fn; use zeroize::Zeroize; const SHA1_BLOCK_BYTE_SIZE: u...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/src/fuse_log.rs
drivers/src/fuse_log.rs
/*++ Licensed under the Apache-2.0 license. File Name: fuse.rs Abstract: Fuse-related Types. --*/ use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout}; use zeroize::Zeroize; #[repr(u32)] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum FuseLogEntryId { Invalid = 0, VendorEccPubKeyIn...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/src/bounded_address.rs
drivers/src/bounded_address.rs
// Licensed under the Apache-2.0 license use core::fmt::Debug; use core::marker::PhantomData; use caliptra_error::CaliptraError; use zerocopy::{FromBytes, Immutable, IntoBytes, TryFromBytes, Unalign}; use zeroize::Zeroize; use crate::memory_layout; pub trait MemBounds { const ORG: usize; const SIZE: usize; ...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/src/dma.rs
drivers/src/dma.rs
/*++ Licensed under the Apache-2.0 license. File Name: dma.rs Abstract: File contains API for DMA Widget operations --*/ use crate::{cprintln, Array4x12, Array4x16, Sha2_512_384Acc, ShaAccLockState, SocIfc}; use caliptra_error::{CaliptraError, CaliptraResult}; use caliptra_registers::axi_dma::{ enums...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
true
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/src/pcr_bank.rs
drivers/src/pcr_bank.rs
/*++ Licensed under the Apache-2.0 license. File Name: pcr_bank.rs Abstract: File contains API for managing Platform Configuration Register (PCR) Bank. --*/ use crate::{Array4x12, CaliptraError, CaliptraResult, Sha2_512_384}; use caliptra_registers::pv::PvReg; /// PCR Identifier #[derive(Debug, Clone, C...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/src/sha256.rs
drivers/src/sha256.rs
/*++ Licensed under the Apache-2.0 license. File Name: sha256.rs Abstract: File contains API for SHA-256 Cryptography operations --*/ use crate::{array::Array4x16, wait, Array4x8, CaliptraError, CaliptraResult}; use caliptra_registers::sha256::Sha256Reg; use zeroize::Zeroize; const SHA256_BLOCK_BYTE_SIZ...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/src/printer.rs
drivers/src/printer.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::{uDisplay, uWrite}; #[derive(Default)] pub struct Printer; impl uWrite for Printer { type Error = Infallible; /// Wr...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/src/error_reporter.rs
drivers/src/error_reporter.rs
/*++ Licensed under the Apache-2.0 license. File Name: sha256.rs Abstract: File contains API for Error Reporting via Soc Iface. --*/ use crate::memory_layout::BOOT_STATUS_ORG; use crate::PersistentData; use caliptra_registers::soc_ifc::SocIfcReg; /// Report non fatal F/W error /// /// # Arguments /// ///...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/src/uart.rs
drivers/src/uart.rs
/*++ Licensed under the Apache-2.0 license. File Name: uart.rs Abstract: File contains API for accessing the UART References: https://os.phil-opp.com/vga-text-mode for output functionality. --*/ use core::fmt; use caliptra_registers::soc_ifc::SocIfcReg; /// Caliptra UART #[derive(Default, Debug)] ...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false