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/auth-manifest/gen/src/lib.rs
auth-manifest/gen/src/lib.rs
/*++ Licensed under the Apache-2.0 license. File Name: generator.rs Abstract: Caliptra Image generator --*/ mod generator; pub mod default_test_manifest; use caliptra_image_types::FwVerificationPqcKeyType; pub use generator::AuthManifestGenerator; use caliptra_auth_man_types::*; /// Image Generator Ven...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/auth-manifest/gen/src/generator.rs
auth-manifest/gen/src/generator.rs
/*++ Licensed under the Apache-2.0 license. File Name: generator.rs Abstract: Caliptra Authorization Manifest generator --*/ use caliptra_image_gen::ImageGeneratorCrypto; use zerocopy::IntoBytes; use crate::*; use core::mem::size_of; /// Authorization Manifest generator pub struct AuthManifestGenerator<...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/auth-manifest/gen/src/default_test_manifest.rs
auth-manifest/gen/src/default_test_manifest.rs
// Licensed under the Apache-2.0 license use crate::{AuthManifestGenerator, AuthManifestGeneratorConfig, AuthManifestGeneratorKeyConfig}; use caliptra_auth_man_types::{ AuthManifestFlags, AuthManifestImageMetadata, AuthManifestPrivKeysConfig, AuthManifestPubKeysConfig, AuthorizationManifest, ImageMetadataFlags...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/auth-manifest/types/src/lib.rs
auth-manifest/types/src/lib.rs
/*++ Licensed under the Apache-2.0 license. File Name: lib.rs Abstract: File contains data structures for the image authorization manifest bundle. --*/ #![no_std] use bitfield::bitfield; use caliptra_image_types::*; use core::default::Default; use core::ops::Range; use memoffset::span_of; use zerocopy::{...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/coverage/src/lib.rs
coverage/src/lib.rs
// Licensed under the Apache-2.0 license use anyhow::Context; use bit_vec::BitVec; use caliptra_builder::{build_firmware_elf, FwId, SymbolType}; use elf::endian::AnyEndian; use elf::ElfBytes; use std::collections::hash_map::{DefaultHasher, Entry}; use std::collections::{HashMap, HashSet}; use std::fs::File; use std::h...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/coverage/src/disasm.rs
coverage/src/disasm.rs
// Licensed under the Apache-2.0 license use std::process::Command; use caliptra_builder::run_cmd_stdout; const OBJDUMP: &str = "riscv64-unknown-elf-objdump"; pub fn invoke_objdump(binary_path: &str) -> std::io::Result<String> { let mut cmd = Command::new(OBJDUMP); cmd.arg("-C").arg("-d").arg(binary_path); ...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/coverage/src/main.rs
coverage/src/main.rs
// Licensed under the Apache-2.0 license use bit_vec::BitVec; use caliptra_builder::build_firmware_elf; use caliptra_builder::firmware::APP_WITH_UART; use caliptra_builder::firmware::FMC_WITH_UART; use caliptra_coverage::calculator; use caliptra_coverage::collect_instr_pcs; use caliptra_coverage::get_bitvec_paths; use...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/cfi/lib/src/lib.rs
cfi/lib/src/lib.rs
/*++ Licensed under the Apache-2.0 license. File Name: lib.rs --*/ #![no_std] extern crate core; mod cfi; mod cfi_counter; mod xoshiro; pub use cfi::*; pub use cfi_counter::{CfiCounter, CfiInt}; pub use xoshiro::Xoshiro128; #[repr(C)] pub struct CfiState { val: u32, mask: u32, prng: Xoshiro128, ...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/cfi/lib/src/cfi.rs
cfi/lib/src/cfi.rs
/*++ Licensed under the Apache-2.0 license. File Name: cfi.rs Abstract: File contains CFI launder implementation. References: https://github.com/lowRISC/opentitan/blob/7a61300cf7c409fa68fd892942c1d7b58a7cd4c0/sw/device/lib/base/hardened.h#L260 --*/ use caliptra_error::CaliptraError; use crate::CfiC...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/cfi/lib/src/cfi_counter.rs
cfi/lib/src/cfi_counter.rs
/*++ Licensed under the Apache-2.0 license. File Name: cfi_ctr.rs Abstract: File contains CFI Integer and Counter implementations. The counter is based on ideas from Trusted Firmware-M firmware. References: https://tf-m-user-guide.trustedfirmware.org/design_docs/tfm_physical_attack_mitigation.html...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/cfi/lib/src/xoshiro.rs
cfi/lib/src/xoshiro.rs
/*++ Licensed under the Apache-2.0 license. File Name: xoshiro.rs Abstract: File contains implementation of RNG based on System.Random Xoshiro128** algorithm. References: https://github.com/dotnet/runtime/blob/main/src/libraries/System.Private.CoreLib/src/System/Random.Xoshiro128StarStarImpl.cs --*/ ...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/cfi/lib/tests/test_asm.rs
cfi/lib/tests/test_asm.rs
// Licensed under the Apache-2.0 license #![cfg(any(target_arch = "riscv32", target_arch = "riscv64"))] // This test only runs on risc-v. // To test, run "cargo install cross", then "cross test --target // riscv64gc-unknown-linux-gnu" use std::cell::RefCell; use std::sync::atomic::{AtomicU32, Ordering::Relaxed}; use...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/cfi/lib/tests/test_derive.rs
cfi/lib/tests/test_derive.rs
/*++ Licensed under the Apache-2.0 license. File Name: test_derive.rs --*/ use caliptra_cfi_derive::{cfi_impl_fn, cfi_mod_fn}; use caliptra_cfi_lib::{CfiCounter, Xoshiro128}; use serial_test::serial; #[cfi_mod_fn] fn test1<T>(val: T) -> T { test2(val) } #[cfi_mod_fn] fn test2<T>(val: T) -> T { val } ...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/cfi/derive/src/lib.rs
cfi/derive/src/lib.rs
/*++ Licensed under the Apache-2.0 license. File Name: lib.rs Abstract: File contains CFI procedural macro. References: https://tf-m-user-guide.trustedfirmware.org/design_docs/tfm_physical_attack_mitigation.html https://github.com/rust-embedded/riscv/blob/master/src/asm.rs --*/ mod cfi_asm_test;...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/cfi/derive/src/cfi_asm_test.rs
cfi/derive/src/cfi_asm_test.rs
// Licensed under the Apache-2.0 license // These tests are here so that they are excluded in FPGA tests. // These tests don't directly import the CFI code. If they fail, // this likely indicates that the CFI laundering code may not // be doing what we want, and we need to investigate. #[cfg(test)] mod test { c...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/test-harness/src/lib.rs
test-harness/src/lib.rs
/*++ Licensed under the Apache-2.0 license. File Name: mod.rs Abstract: File contains Macros and API for Caliptra Library Test Harness References: https://os.phil-opp.com/vga-text-mode for print functionality. --*/ #![no_std] use core::fmt; use core::format_args; use core::ops::Fn; // If not using ...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/test-harness/types/src/lib.rs
test-harness/types/src/lib.rs
// Licensed under the Apache-2.0 license /// Errors codes placed into CPTRA_FW_ERROR_NON_FATAL /// by the test harness. pub const ERROR_EXCEPTION: u32 = 0x0300_0002; pub const ERROR_NMI: u32 = 0x0300_0003; // From RISC-V_VeeR_EL2_PRM.pdf // Exception causes pub const EXCEPTION_CAUSE_INSTRUCTION_ACCESS_FAULT: u32 = 0x...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/test/src/lib.rs
test/src/lib.rs
// Licensed under the Apache-2.0 license use caliptra_api::soc_mgr::SocManager; use caliptra_auth_man_gen::default_test_manifest::default_test_soc_manifest; pub use caliptra_auth_man_gen::default_test_manifest::DEFAULT_MCU_FW; use caliptra_builder::{ firmware::{APP_WITH_UART, APP_WITH_UART_FPGA, FMC_WITH_UART}, ...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/test/src/unwrap_single.rs
test/src/unwrap_single.rs
// Licensed under the Apache-2.0 license pub trait UnwrapSingle { type RetVal; fn unwrap_single(self) -> Self::RetVal; } impl<T: Iterator> UnwrapSingle for T { type RetVal = T::Item; #[track_caller] fn unwrap_single(mut self) -> Self::RetVal { let Some(result) = self.next() else { ...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/test/src/redact.rs
test/src/redact.rs
// Licensed under the Apache-2.0 license use openssl::nid::Nid; use crate::{crypto::pubkey_ecdsa_der, UnwrapSingle}; fn replace(bytes: &mut [u8], search: &[u8], replace: &[u8]) { assert_eq!(search.len(), replace.len()); let mut offsets = vec![]; for window in bytes.windows(search.len()) { if wind...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/test/src/derive.rs
test/src/derive.rs
// Licensed under the Apache-2.0 license /// Caliptra key derivation logic implemented independently from the hardware / /// firmware, for use in end-to-end test-cases. /// /// DO NOT REFACTOR THIS FILE TO RE-USE CODE FROM OTHER PARTS OF CALIPTRA use caliptra_api_types::SecurityState; use caliptra_image_types::ImageMa...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/test/src/crypto.rs
test/src/crypto.rs
// Licensed under the Apache-2.0 license #![allow(unused)] /// Cryptographic operations implemented for readability rather than /// performance, implemented independently from the rest of Caliptra for use in /// end-to-end test cases. /// /// DO NOT REFACTOR THIS FILE TO RE-USE CODE FROM OTHER PARTS OF CALIPTRA use o...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/test/src/x509.rs
test/src/x509.rs
// Licensed under the Apache-2.0 license use std::error::Error; use asn1::{Explicit, Implicit, ObjectIdentifier, ParseError, Utf8String}; pub const DICE_TCB_INFO_OID: ObjectIdentifier = asn1::oid!(2, 23, 133, 5, 4, 1); pub const DICE_MULTI_TCB_INFO_OID: ObjectIdentifier = asn1::oid!(2, 23, 133, 5, 4, 5); #[derive(E...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/test/src/crypto/hpke/test_vector.rs
test/src/crypto/hpke/test_vector.rs
// Licensed under the Apache-2.0 license use serde::{Deserialize, Serialize}; /// This file contains the test vectors as defined in Appendix A of /// https://datatracker.ietf.org/doc/draft-ietf-hpke-pq/03/. const HPKE_TEST_VECTOR_PQ: &str = include_str!("../../crypto/test_vectors/hpke-pq.json"); #[derive(Deserialize...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/test/src/crypto/hpke/mod.rs
test/src/crypto/hpke/mod.rs
// Licensed under the Apache-2.0 license use std::marker::PhantomData; /// HPKE Implementation intended to be used in OCP LOCK tests /// /// Implements: /// * ML-KEM-1024-HKDF-SHA-384-AES-256-GCM use aes_gcm::{ aead::{Aead, Payload}, Aes256Gcm, KeyInit, }; use ml_kem::{ kem::{Decapsulate, DecapsulationKey...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/test/src/crypto/hpke/kdf.rs
test/src/crypto/hpke/kdf.rs
// Licensed under the Apache-2.0 license use hkdf::Hkdf; use sha3::{ digest::{ExtendableOutput, Update, XofReader}, Shake256, }; pub struct Hmac384Kdf; impl Hmac384Kdf { pub fn extract(salt: &[u8], ikm: &[u8]) -> Vec<u8> { let (prk, _) = Hkdf::<sha2::Sha384>::extract(Some(salt), ikm); prk....
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/test/tests/caliptra_integration_tests/fake_collateral_boot_test.rs
test/tests/caliptra_integration_tests/fake_collateral_boot_test.rs
// Licensed under the Apache-2.0 license #![allow(dead_code)] use caliptra_api::mailbox::{ AlgorithmType, GetFmcAliasEcc384CertReq, GetFmcAliasMlDsa87CertReq, GetLdevEcc384CertReq, GetLdevMldsa87CertReq, }; use caliptra_api_types::Fuses; use caliptra_builder::{ firmware::{ APP_WITH_UART, APP_WITH_...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/test/tests/caliptra_integration_tests/test_code_coverage.rs
test/tests/caliptra_integration_tests/test_code_coverage.rs
// Licensed under the Apache-2.0 license #[cfg(all( not(feature = "verilator"), not(feature = "fpga_realtime"), not(feature = "fpga_subsystem") ))] #[test] fn test_emu_coverage() { use std::path::PathBuf; use caliptra_api::SocManager; use caliptra_builder::firmware; use caliptra_coverage::{...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/test/tests/caliptra_integration_tests/warm_reset.rs
test/tests/caliptra_integration_tests/warm_reset.rs
// Licensed under the Apache-2.0 license use caliptra_api::soc_mgr::SocManager; use caliptra_api_types::{DeviceLifecycle, Fuses}; use caliptra_auth_man_gen::default_test_manifest::DEFAULT_MCU_FW; use caliptra_builder::{ firmware::{APP_WITH_UART, APP_WITH_UART_FPGA, FMC_WITH_UART}, ImageOptions, }; 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/test/tests/caliptra_integration_tests/smoke_test.rs
test/tests/caliptra_integration_tests/smoke_test.rs
use caliptra_api::mailbox::AlgorithmType; // Licensed under the Apache-2.0 license use caliptra_api::soc_mgr::SocManager; use caliptra_api_types::{DeviceLifecycle, Fuses}; use caliptra_auth_man_gen::default_test_manifest::DEFAULT_MCU_FW; use caliptra_builder::firmware::{APP_WITH_UART, APP_WITH_UART_FPGA, FMC_WITH_UART}...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
true
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/test/tests/caliptra_integration_tests/main.rs
test/tests/caliptra_integration_tests/main.rs
// Licensed under the Apache-2.0 license mod fake_collateral_boot_test; mod jtag_test; mod smoke_test; mod test_code_coverage; mod warm_reset;
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/test/tests/caliptra_integration_tests/jtag_test.rs
test/tests/caliptra_integration_tests/jtag_test.rs
// Licensed under the Apache-2.0 license use caliptra_builder::{firmware, get_elf_path, ImageOptions}; use caliptra_api_types::DeviceLifecycle; use caliptra_hw_model::{BootParams, Fuses, HwModel, InitParams, SecurityState}; use caliptra_test::image_pk_desc_hash; use std::io::{BufRead, BufReader, Write}; use std::proc...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/test/tests/fips_test_suite/services.rs
test/tests/fips_test_suite/services.rs
// Licensed under the Apache-2.0 license use crate::common; use caliptra_api::SocManager; use caliptra_auth_man_gen::default_test_manifest::{default_test_soc_manifest, DEFAULT_MCU_FW}; use caliptra_builder::firmware::{ APP_WITH_UART_FIPS_TEST_HOOKS, APP_WITH_UART_FIPS_TEST_HOOKS_FPGA, FMC_WITH_UART, }; 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/test/tests/fips_test_suite/jtag_locked.rs
test/tests/fips_test_suite/jtag_locked.rs
// Licensed under the Apache-2.0 license use crate::common::fips_test_init_to_rom; use caliptra_hw_model::OpenOcdError; use caliptra_hw_model::{InitParams, SecurityState}; use caliptra_hw_model_types::DeviceLifecycle; fn check_jtag_accessible( rom: &[u8], debug_locked: bool, device_lifecycle: DeviceLifecy...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/test/tests/fips_test_suite/fw_load.rs
test/tests/fips_test_suite/fw_load.rs
// Licensed under the Apache-2.0 license use crate::common; use caliptra_api::SocManager; use caliptra_auth_man_gen::default_test_manifest::{default_test_soc_manifest, DEFAULT_MCU_FW}; use caliptra_builder::firmware::{ APP_WITH_UART, APP_WITH_UART_FPGA, FMC_FAKE_WITH_UART, FMC_WITH_UART, ROM_WITH_FIPS_TEST_HOOKS, ...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
true
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/test/tests/fips_test_suite/self_tests.rs
test/tests/fips_test_suite/self_tests.rs
// Licensed under the Apache-2.0 license use crate::common; use caliptra_api::SocManager; use caliptra_builder::firmware::{ APP_WITH_UART_FIPS_TEST_HOOKS, FMC_WITH_UART, ROM_WITH_FIPS_TEST_HOOKS, ROM_WITH_UART, }; use caliptra_builder::ImageOptions; use caliptra_common::mailbox_api::*; use caliptra_drivers::Calip...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/test/tests/fips_test_suite/main.rs
test/tests/fips_test_suite/main.rs
// Licensed under the Apache-2.0 license mod common; mod fw_load; #[cfg(feature = "fpga_realtime")] mod jtag_locked; mod security_parameters; mod self_tests; mod services;
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/test/tests/fips_test_suite/common.rs
test/tests/fips_test_suite/common.rs
// Licensed under the Apache-2.0 license use caliptra_api::SocManager; use caliptra_auth_man_gen::default_test_manifest::{default_test_soc_manifest, DEFAULT_MCU_FW}; use caliptra_builder::firmware::{APP_WITH_UART, APP_WITH_UART_FPGA, FMC_WITH_UART}; use caliptra_builder::{version, 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/test/tests/fips_test_suite/security_parameters.rs
test/tests/fips_test_suite/security_parameters.rs
// Licensed under the Apache-2.0 license #![allow(dead_code)] use crate::common; use caliptra_builder::firmware::ROM_WITH_FIPS_TEST_HOOKS; use caliptra_common::mailbox_api::*; use caliptra_drivers::{CaliptraError, FipsTestHook}; use caliptra_hw_model::{BootParams, DeviceLifecycle, HwModel, InitParams, SecurityState};...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/kat/src/sha256_kat.rs
kat/src/sha256_kat.rs
/*++ Licensed under the Apache-2.0 license. File Name: sha256_kat.rs Abstract: File contains the Known Answer Tests (KAT) for SHA-256 cryptography operations. --*/ use caliptra_drivers::{Array4x8, CaliptraError, CaliptraResult, Sha256, Sha256Alg}; const EXPECTED_DIGEST: Array4x8 = Array4x8::new([ 0x...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/kat/src/aes256cmac_kat.rs
kat/src/aes256cmac_kat.rs
/*++ Licensed under the Apache-2.0 license. File Name: aes256gcm_kat.rs Abstract: File contains the Known Answer Tests (KAT) for AES-256-CMAC cryptography operations. --*/ use caliptra_drivers::{Aes, AesKey, CaliptraError, CaliptraResult, LEArray4x4, LEArray4x8}; // FROM ACVP test vector: // { // "tgI...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/kat/src/hkdf_kat.rs
kat/src/hkdf_kat.rs
/*++ Licensed under the Apache-2.0 license. File Name: hmac_kdf_kat.rs Abstract: File contains the Known Answer Tests (KAT) for HKDF Extract and Expand using HMAC-384 and HMAC-512. --*/ use caliptra_drivers::{ hkdf_expand, hkdf_extract, Array4x12, Array4x16, CaliptraError, CaliptraResult, Hmac, HmacM...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/kat/src/aes256gcm_kat.rs
kat/src/aes256gcm_kat.rs
/*++ Licensed under the Apache-2.0 license. File Name: aes256gcm_kat.rs Abstract: File contains the Known Answer Tests (KAT) for AES-256-GCM cryptography operations. --*/ use caliptra_drivers::{ Aes, AesKey, CaliptraError, CaliptraResult, LEArray4x3, LEArray4x4, LEArray4x8, Trng, }; // Taken from NI...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/kat/src/kats_env.rs
kat/src/kats_env.rs
// Licensed under the Apache-2.0 license use caliptra_drivers::{ Aes, Ecc384, Hmac, Lms, Mldsa87, Sha1, Sha256, Sha2_512_384, Sha2_512_384Acc, Sha3, ShaAccLockState, Trng, }; pub struct KatsEnv<'a> { // SHA1 Engine pub sha1: &'a mut Sha1, // SHA2-256 Engine pub sha256: &'a mut Sha256, //...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/kat/src/lms_kat.rs
kat/src/lms_kat.rs
/*++ Licensed under the Apache-2.0 license. File Name: lms_kat.rs Abstract: File contains the Known Answer Tests (KAT) for LMS cryptography operations. --*/ use caliptra_drivers::{CaliptraError, CaliptraResult, Lms, LmsResult, Sha256}; use caliptra_lms_types::{ bytes_to_words_6, LmotsAlgorithmType, L...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/kat/src/lib.rs
kat/src/lib.rs
/*++ Licensed under the Apache-2.0 license. File Name: lib.rs Abstract: File contains exports for the Caliptra Known Answer Tests. --*/ #![no_std] mod aes256cbc_kat; mod aes256cmac_kat; mod aes256ctr_kat; mod aes256ecb_kat; mod aes256gcm_kat; mod cmackdf_kat; mod ecc384_kat; mod ecdh_kat; mod hkdf_kat; ...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/kat/src/aes256ecb_kat.rs
kat/src/aes256ecb_kat.rs
/*++ Licensed under the Apache-2.0 license. File Name: aes256ecb_kat.rs Abstract: File contains the Known Answer Tests (KAT) for AES-256-ECB cryptography operations. --*/ use caliptra_drivers::{Aes, AesKey, AesOperation, CaliptraError, CaliptraResult, LEArray4x8}; // Generated from Python code: // >>> f...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/kat/src/aes256ctr_kat.rs
kat/src/aes256ctr_kat.rs
/*++ Licensed under the Apache-2.0 license. File Name: aes256gcm_kat.rs Abstract: File contains the Known Answer Tests (KAT) for AES-256-CTR cryptography operations. --*/ use caliptra_drivers::{Aes, CaliptraError, CaliptraResult, LEArray4x4, LEArray4x8}; // From NIST SP800-38A, F.5.5 // CTR-AES256.Encry...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/kat/src/cmackdf_kat.rs
kat/src/cmackdf_kat.rs
/*++ Licensed under the Apache-2.0 license. File Name: hmac_kdf_kat.rs Abstract: File contains the Known Answer Tests (KAT) for Counter Mode KDF using CMAC. --*/ // From ACVP test vector: // "tgId": 263, // "keyOutLength": 1024, // "kdfMode": "counter", // "macMode": "CMAC-AES256", // "counterLength": 32...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/kat/src/aes256cbc_kat.rs
kat/src/aes256cbc_kat.rs
/*++ Licensed under the Apache-2.0 license. File Name: aes256gcm_kat.rs Abstract: File contains the Known Answer Tests (KAT) for AES-256-CBC cryptography operations. --*/ use caliptra_drivers::{Aes, AesOperation, CaliptraError, CaliptraResult, LEArray4x4, LEArray4x8}; // Generated from Python code: // >...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/kat/src/sha512_kat.rs
kat/src/sha512_kat.rs
/*++ Licensed under the Apache-2.0 license. File Name: sha512_kat.rs Abstract: File contains the Known Answer Tests (KAT) for SHA-512 cryptography operations. --*/ use caliptra_drivers::{Array4x16, CaliptraError, CaliptraResult, Sha2_512_384}; pub const EXPECTED_DIGEST: Array4x16 = Array4x16::new([ ...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/kat/src/sha3_kat.rs
kat/src/sha3_kat.rs
/*++ Licensed under the Apache-2.0 license. File Name: sha3_kat.rs Abstract: File contains the Known Answer Tests (KAT) for SHA3 cryptography operations. --*/ use caliptra_drivers::{Array4x8, CaliptraError, CaliptraResult, Sha3}; pub const EXPECTED_SHAKE256_DIGEST: Array4x8 = Array4x8::new([ 0x46b9d...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/kat/src/hmac_kdf_kat.rs
kat/src/hmac_kdf_kat.rs
/*++ Licensed under the Apache-2.0 license. File Name: hmac_kdf_kat.rs Abstract: File contains the Known Answer Tests (KAT) for HMAC-384 and HMAC-512 cryptography operations. --*/ use caliptra_drivers::{ hmac_kdf, Array4x12, Array4x16, CaliptraError, CaliptraResult, Hmac, HmacMode, Trng, }; const KE...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/kat/src/sha1_kat.rs
kat/src/sha1_kat.rs
/*++ Licensed under the Apache-2.0 license. File Name: sha1_kat.rs Abstract: File contains the Known Answer Tests (KAT) for SHA-1 cryptography operations. --*/ use caliptra_drivers::{Array4x5, CaliptraError, CaliptraResult, Sha1}; const EXPECTED_DIGEST: Array4x5 = Array4x5::new([0xda39a3ee, 0x5e6b4b...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/kat/src/ecc384_kat.rs
kat/src/ecc384_kat.rs
/*++ Licensed under the Apache-2.0 license. File Name: ecc384_kat.rs Abstract: File contains the Known Answer Tests (KAT) for ECC-384 cryptography operations. --*/ use caliptra_drivers::{ Array4x12, Array4xN, CaliptraError, CaliptraResult, Ecc384, Ecc384PrivKeyOut, Ecc384PubKey, Ecc384Signature, ...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/kat/src/mldsa87_kat.rs
kat/src/mldsa87_kat.rs
/*++ Licensed under the Apache-2.0 license. File Name: mldsa_kat.rs Abstract: File contains the Known Answer Tests (KAT) for MLDSA cryptography operations. --*/ use caliptra_drivers::{ Array4x16, CaliptraError, CaliptraResult, LEArray4x8, Mldsa87, Mldsa87PrivKey, Mldsa87Seed, Mldsa87SignRnd, Sha2...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/kat/src/sha2_512_384acc_kat.rs
kat/src/sha2_512_384acc_kat.rs
/*++ Licensed under the Apache-2.0 license. File Name: sha2_512_384acc_kat.rs Abstract: File contains the Known Answer Tests (KAT) for SHA512 accelerator cryptography operations. --*/ use caliptra_drivers::{ Array4x16, CaliptraError, CaliptraResult, Sha2_512_384Acc, ShaAccLockState, StreamEndianness, ...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/kat/src/ecdh_kat.rs
kat/src/ecdh_kat.rs
/*++ Licensed under the Apache-2.0 license. File Name: ecc384_kat.rs Abstract: File contains the Known Answer Tests (KAT) for ECC-384 cryptography operations. --*/ use caliptra_drivers::{ Array4x12, CaliptraError, CaliptraResult, Ecc384, Ecc384PrivKeyIn, Ecc384PrivKeyOut, Ecc384PubKey, Trng, }; ...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/kat/src/sha384_kat.rs
kat/src/sha384_kat.rs
/*++ Licensed under the Apache-2.0 license. File Name: sha384_kat.rs Abstract: File contains the Known Answer Tests (KAT) for SHA-384 cryptography operations. --*/ use caliptra_drivers::{Array4x12, CaliptraError, CaliptraResult, Sha2_512_384}; pub const SHA384_EXPECTED_DIGEST: Array4x12 = Array4x12::new...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/cpu/build.rs
cpu/build.rs
// Licensed under the Apache-2.0 license use std::env; use std::fs; use std::path::PathBuf; fn main() { let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); // Put the linker script somewhere the linker can find it. fs::write( out_dir.join("link.x"), r#"SECTIONS { .text...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/cpu/src/lib.rs
cpu/src/lib.rs
// Licensed under the Apache-2.0 license #![no_std] #[cfg(not(feature = "std"))] #[cfg(feature = "riscv")] core::arch::global_asm!(include_str!("start.S")); #[cfg(feature = "riscv")] core::arch::global_asm!(include_str!("nmi.S")); #[cfg(feature = "riscv")] core::arch::global_asm!(include_str!("trap.S")); pub mod csr;...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/cpu/src/trap.rs
cpu/src/trap.rs
/*++ Licensed under the Apache-2.0 license. File Name: exception.rs Abstract: File contains RISCV trap related types. --*/ /// Exception Record #[repr(C)] pub struct TrapRecord { pub ra: u32, pub sp: u32, pub a0: u32, pub a1: u32, pub a2: u32, pub a3: u32, pub a4: u32, pu...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/cpu/src/csr.rs
cpu/src/csr.rs
// Licensed under the Apache-2.0 license // Standard RISC-V MIE CSR #[cfg(feature = "riscv")] pub fn mie_enable_external_interrupts() { const MEIE: usize = 1 << 11; unsafe { core::arch::asm!("csrrs zero, mie, {r}", r = in(reg) MEIE); } } // VeeR EL2 PRM 5.5.1 Power Management Control Register // I...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/cpu/gen/src/lib.rs
cpu/gen/src/lib.rs
// Licensed under the Apache-2.0 license use caliptra_common::memory_layout::*; pub fn gen_memory_x(iccm_org: u32, iccm_size: u32) -> String { format!( r#" ICCM_ORG = 0x{iccm_org:08X}; DCCM_ORG = 0x{DCCM_ORG:08X}; DATA_ORG = 0x{EXTRA_MEMORY_ORG:08X}; STACK_ORG ...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false
chipsalliance/caliptra-sw
https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/runtime/build.rs
runtime/build.rs
/*++ Licensed under the Apache-2.0 license. File Name: build.rs Abstract: Build script for Caliptra Runtime. --*/ fn main() { cfg_if::cfg_if! { if #[cfg(not(feature = "std"))] { use std::env; use std::fs; use std::path::PathBuf; use caliptra_gen...
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/hmac.rs
runtime/src/hmac.rs
/*++ Licensed under the Apache-2.0 license. File Name: hmac.rs Abstract: File contains cryptography helper functions related to HMAC. --*/ use caliptra_cfi_derive_git::{cfi_impl_fn, cfi_mod_fn}; use caliptra_cfi_lib_git::{cfi_assert, cfi_assert_eq, cfi_launder}; use caliptra_common::{cfi_check, crypto::E...
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/tagging.rs
runtime/src/tagging.rs
/*++ Licensed under the Apache-2.0 license. File Name: tagging.rs Abstract: File contains mailbox commands dealing with tagging. --*/ use crate::{mutrefbytes, Drivers}; use caliptra_cfi_derive_git::cfi_impl_fn; use caliptra_common::mailbox_api::{ GetTaggedTciReq, GetTaggedTciResp, MailboxRespHeader, ...
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/get_fmc_alias_csr.rs
runtime/src/get_fmc_alias_csr.rs
// Licensed under the Apache-2.0 license use crate::{mutrefbytes, Drivers}; use caliptra_cfi_derive_git::cfi_impl_fn; use caliptra_common::mailbox_api::{GetFmcAliasCsrResp, MailboxRespHeader, ResponseVarSize}; use caliptra_error::{CaliptraError, CaliptraResult}; use caliptra_drivers::FmcAliasCsrs; pub struct GetFm...
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/handoff.rs
runtime/src/handoff.rs
/*++ Licensed under the Apache-2.0 license. File Name: handoff.rs Abstract: File contains helper functions that extract values from the FirmwareHandoffTable and DataVault. --*/ use caliptra_common::DataStore::KeyVaultSlot; use caliptra_drivers::{hand_off::DataStore, DataVault, FirmwareHandoffTable, KeyId...
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/mailbox.rs
runtime/src/mailbox.rs
/*++ Licensed under the Apache-2.0 license. File Name: mailbox.rs Abstract: File contains mailbox interface. --*/ use core::mem::size_of; use core::slice; use caliptra_drivers::{memory_layout, CaliptraResult, SocIfc}; use caliptra_error::CaliptraError; use caliptra_registers::mbox::{ enums::{MboxFsm...
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/packet.rs
runtime/src/packet.rs
/*++ Licensed under the Apache-2.0 license. File Name: packet.rs Abstract: File contains an API that reads commands and writes responses to the mailbox. --*/ use caliptra_drivers::CaliptraResult; use caliptra_common::mailbox_api::MailboxReqHeader; use caliptra_drivers::CaliptraError; use zerocopy::FromB...
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/get_image_info.rs
runtime/src/get_image_info.rs
/*++ Licensed under the Apache-2.0 license. File Name: get_image_info.rs Abstract: File contains GET_IMAGE_INFO mailbox command. --*/ use crate::Drivers; use crate::{manifest::find_metadata_entry, mutrefbytes}; use caliptra_cfi_derive_git::cfi_impl_fn; use caliptra_common::mailbox_api::{GetImageInfoReq, ...
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/fips.rs
runtime/src/fips.rs
/*++ Licensed under the Apache-2.0 license. File Name: fips.rs Abstract: File contains FIPS module and FIPS self test. --*/ use caliptra_cfi_derive_git::{cfi_impl_fn, cfi_mod_fn}; use caliptra_common::cprintln; use caliptra_drivers::CaliptraError; use caliptra_drivers::CaliptraResult; 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/runtime/src/lib.rs
runtime/src/lib.rs
/*++ Licensed under the Apache-2.0 license. File Name: lib.rs Abstract: File contains exports for the Runtime library and mailbox command handling logic. --*/ #![cfg_attr(not(feature = "fips_self_test"), allow(unused))] #![no_std] mod activate_firmware; mod authorize_and_stash; mod capabilities; mod certi...
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/update.rs
runtime/src/update.rs
/*++ Licensed under the Apache-2.0 license. File Name: update.rs Abstract: File contains FirmwareLoad mailbox command. --*/ use crate::Drivers; use caliptra_cfi_derive_git::cfi_mod_fn; use caliptra_drivers::{CaliptraError, CaliptraResult}; #[cfg_attr(not(feature = "no-cfi"), cfi_mod_fn)] pub(crate) fn h...
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/dice.rs
runtime/src/dice.rs
/*++ Licensed under the Apache-2.0 license. File Name: dice.rs Abstract: File contains mailbox commands related to DICE certificates. --*/ use crate::{mutrefbytes, Drivers}; use caliptra_common::{ dice::{ copy_ldevid_ecc384_cert, copy_ldevid_mldsa87_cert, ecc384_cert_from_tbs_and_sig, ...
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/sign_with_exported_mldsa.rs
runtime/src/sign_with_exported_mldsa.rs
// Licensed under the Apache-2.0 license use crate::Drivers; use caliptra_cfi_derive_git::cfi_impl_fn; use caliptra_error::{CaliptraError, CaliptraResult}; #[allow(dead_code)] pub struct SignWithExportedMldsaCmd; impl SignWithExportedMldsaCmd { #[allow(dead_code)] #[cfg_attr(not(feature = "no-cfi"), cfi_impl...
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/manifest.rs
runtime/src/manifest.rs
/*++ Licensed under the Apache-2.0 license. File Name: manifest.rs Abstract: File contains utilities related to the auth manifest. --*/ use caliptra_auth_man_types::{AuthManifestImageMetadata, AuthManifestImageMetadataCollection}; /// Search for a metadata entry in the sorted `AuthManifestImageMetadataC...
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/dpe_crypto.rs
runtime/src/dpe_crypto.rs
/*++ Licensed under the Apache-2.0 license. File Name: dpe_crypto.rs Abstract: File contains DpeCrypto implementation. --*/ #[cfg(not(feature = "no-cfi"))] use caliptra_cfi_derive_git::cfi_impl_fn; use caliptra_common::keyids::{ KEY_ID_DPE_CDI, KEY_ID_DPE_PRIV_KEY, KEY_ID_EXPORTED_DPE_CDI, KEY_ID_TMP...
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/drivers.rs
runtime/src/drivers.rs
/*++ Licensed under the Apache-2.0 license. File Name: drivers.rs Abstract: File contains driver initializations. --*/ #![cfg_attr(not(feature = "fips_self_test"), allow(unused))] use crate::cryptographic_mailbox::CmStorage; use crate::debug_unlock::ProductionDebugUnlock; #[cfg(feature = "fips_self_test...
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/revoke_exported_cdi_handle.rs
runtime/src/revoke_exported_cdi_handle.rs
// Licensed under the Apache-2.0 license use crate::{Drivers, PauserPrivileges}; #[cfg(not(feature = "no-cfi"))] use caliptra_cfi_derive_git::cfi_impl_fn; #[cfg(not(feature = "no-cfi"))] use caliptra_cfi_lib_git::{cfi_assert, cfi_assert_eq}; use caliptra_common::mailbox_api::RevokeExportedCdiHandleReq; 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/runtime/src/info.rs
runtime/src/info.rs
/*++ Licensed under the Apache-2.0 license. File Name: info.rs Abstract: File contains mailbox commands to retrieve info about state of the Runtime firmware. --*/ use crate::{handoff::RtHandoff, mutrefbytes, Drivers}; use caliptra_common::mailbox_api::{ AlgorithmType, FwInfoResp, GetIdevEcc384InfoRes...
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/disable.rs
runtime/src/disable.rs
/*++ Licensed under the Apache-2.0 license. File Name: disable.rs Abstract: File contains DisableAttestation mailbox command. --*/ use crate::Drivers; use caliptra_cfi_derive_git::cfi_impl_fn; use caliptra_common::keyids::KEY_ID_EXPORTED_DPE_CDI; use caliptra_drivers::{ hmac_kdf, Array4x12, CaliptraR...
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/verify.rs
runtime/src/verify.rs
/*++ Licensed under the Apache-2.0 license. File Name: verify.rs Abstract: File contains EcdsaVerify mailbox command and HmacVerify test-only mailbox command. --*/ use crate::Drivers; use caliptra_cfi_derive_git::cfi_impl_fn; use caliptra_common::mailbox_api::LmsVerifyReq; use caliptra_drivers::{Caliptra...
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/certify_key_extended.rs
runtime/src/certify_key_extended.rs
/*++ Licensed under the Apache-2.0 license. File Name: populate_idev.rs Abstract: File contains CertifyKeyExtended mailbox command. --*/ use crate::{ mutrefbytes, CptraDpeTypes, DpeCrypto, DpeEnv, DpePlatform, Drivers, PauserPrivileges, }; use caliptra_common::mailbox_api::{ CertifyKeyExtendedFla...
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/stash_measurement.rs
runtime/src/stash_measurement.rs
/*++ Licensed under the Apache-2.0 license. File Name: stash_measurement.rs Abstract: File contains StashMeasurement mailbox command. --*/ use crate::{ dpe_crypto::DpeCrypto, mutrefbytes, CptraDpeTypes, DpePlatform, Drivers, PauserPrivileges, }; use caliptra_cfi_derive_git::cfi_impl_fn; 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/runtime/src/subject_alt_name.rs
runtime/src/subject_alt_name.rs
/*++ Licensed under the Apache-2.0 license. File Name: populate_idev.rs Abstract: File contains AddSubjectAltName mailbox command. --*/ use crate::Drivers; use arrayvec::ArrayVec; use caliptra_common::mailbox_api::AddSubjectAltNameReq; use caliptra_error::{CaliptraError, CaliptraResult}; use zerocopy::In...
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/sign_with_exported_ecdsa.rs
runtime/src/sign_with_exported_ecdsa.rs
// Licensed under the Apache-2.0 license use crate::{dpe_crypto::DpeCrypto, mutrefbytes, Drivers, PauserPrivileges}; use caliptra_cfi_derive_git::cfi_impl_fn; use caliptra_cfi_lib_git::{cfi_assert, cfi_assert_eq, cfi_launder}; use caliptra_common::cfi_check; use caliptra_common::mailbox_api::{ MailboxRespHeader,...
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/pcr.rs
runtime/src/pcr.rs
/*++ Licensed under the Apache-2.0 license. File Name: pcr.rs Abstract: File contains mailbox commands that deal with PCRs. --*/ use crate::{mutrefbytes, Drivers}; use caliptra_cfi_derive_git::cfi_impl_fn; use caliptra_common::mailbox_api::{ AlgorithmType, ExtendPcrReq, GetPcrLogResp, IncrementPcrRes...
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/authorize_and_stash.rs
runtime/src/authorize_and_stash.rs
/*++ Licensed under the Apache-2.0 license. File Name: authorize_and_stash.rs Abstract: File contains AUTHORIZE_AND_STASH mailbox command. --*/ use crate::manifest::find_metadata_entry; use crate::{mutrefbytes, Drivers, StashMeasurementCmd}; use caliptra_auth_man_types::ImageMetadataFlags; use caliptra_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/src/get_idev_csr.rs
runtime/src/get_idev_csr.rs
// Licensed under the Apache-2.0 license use crate::{mutrefbytes, Drivers}; use caliptra_cfi_derive_git::cfi_impl_fn; use caliptra_common::mailbox_api::{GetIdevCsrResp, MailboxRespHeader, ResponseVarSize}; use caliptra_error::{CaliptraError, CaliptraResult}; use caliptra_drivers::{Ecc384IdevIdCsr, Mldsa87IdevIdCsr};...
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/main.rs
runtime/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)] #[cfg(target_arch = "riscv32")] core::arch::global_asm!(include_str!("ext_intr.S"))...
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/activate_firmware.rs
runtime/src/activate_firmware.rs
/*++ Licensed under the Apache-2.0 license. File Name: activate_firmware.rs Abstract: File contains ACTIVATE_FIRMWARE mailbox command. --*/ use core::mem::offset_of; use crate::authorize_and_stash::AuthorizeAndStashCmd; use crate::drivers::{McuFwStatus, McuResetReason}; use crate::Drivers; use crate::{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/src/invoke_dpe.rs
runtime/src/invoke_dpe.rs
/*++ Licensed under the Apache-2.0 license. File Name: invoke_dpe.rs Abstract: File contains InvokeDpe mailbox command. --*/ use crate::{ mutrefbytes, CptraDpeTypes, DpeCrypto, DpeEnv, DpePlatform, Drivers, PauserPrivileges, }; use caliptra_cfi_derive_git::cfi_impl_fn; use caliptra_common::mailbox_ap...
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/debug_unlock.rs
runtime/src/debug_unlock.rs
/*++ Licensed under the Apache-2.0 license. File Name: debug_unlock.rs Abstract: File contains code to handle production debug unlock in the runtime. --*/ use crate::mutrefbytes; use caliptra_cfi_lib_git::CfiCounter; use caliptra_common::{ cprintln, mailbox_api::{ ProductionAuthDebugUnloc...
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/key_ladder.rs
runtime/src/key_ladder.rs
/*++ Licensed under the Apache-2.0 license. File Name: key_ladder.rs Abstract: File contains key ladder utilities. --*/ use crate::{handoff::RtHandoff, Drivers, Hmac}; use caliptra_cfi_derive_git::cfi_impl_fn; use caliptra_common::keyids::KEY_ID_TMP; use caliptra_drivers::{CaliptraResult, HmacMode, KeyId...
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/populate_idev.rs
runtime/src/populate_idev.rs
/*++ Licensed under the Apache-2.0 license. File Name: populate_idev.rs Abstract: File contains PopulateIdev mailbox command. --*/ use caliptra_common::mailbox_api::{PopulateIdevEcc384CertReq, PopulateIdevMldsa87CertReq}; use caliptra_error::{CaliptraError, CaliptraResult}; use zerocopy::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/runtime/src/recovery_flow.rs
runtime/src/recovery_flow.rs
/*++ Licensed under the Apache-2.0 license. File Name: recovery_flow.rs Abstract: File contains the implementation of the recovery flow for MCU firmware and SoC manifest. --*/ use crate::{ activate_firmware::MCI_TOP_REG_RESET_REASON_OFFSET, authorize_and_stash::AuthorizeAndStashCmd, drivers::...
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/reallocate_dpe_context_limits.rs
runtime/src/reallocate_dpe_context_limits.rs
/*++ Licensed under the Apache-2.0 license. File Name: reallocate_dpe_context_limits.rs Abstract: File contains mailbox command implementation for reallocating DPE contexts between PL0 and PL1. --*/ use crate::mutrefbytes; use crate::Drivers; use crate::{ PauserPrivileges, PL0_DPE_ACTIVE_CONTEXT_DEFA...
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/dpe_platform.rs
runtime/src/dpe_platform.rs
/*++ Licensed under the Apache-2.0 license. File Name: dpe_platform.rs Abstract: File contains DpePlatform implementation. --*/ use core::cmp::min; use arrayvec::ArrayVec; use caliptra_drivers::cprintln; use caliptra_x509::{NotAfter, NotBefore}; use crypto::Digest; use dpe::x509::{CertWriter, DirectoryS...
rust
Apache-2.0
d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c
2026-01-04T20:21:36.839730Z
false