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/drivers/src/data_vault.rs | drivers/src/data_vault.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
data_vault.rs
Abstract:
File contains API for the Data Vault.
--*/
use crate::{Array4x12, Ecc384PubKey, Ecc384Signature, Mldsa87PubKey, Mldsa87Signature};
use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout};
use zeroize::Zeroize;
#[repr(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/wait.rs | drivers/src/wait.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
wait.rs
Abstract:
File contains common functions and macros to implement wait routines.
--*/
pub fn until<F>(predicate: F)
where
F: Fn() -> bool,
{
while !predicate() {}
}
| 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/aes.rs | drivers/src/aes.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
aes.rs
Abstract:
Driver for AES hardware operations.
Notes about how this hardware differs from other hardware:
* Shadowed control registers need to be written twice.
* Registers are in little-endian order rather than big-endian,
so... | 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/doe.rs | drivers/src/doe.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
doe.rs
Abstract:
File contains API for Deobfuscation Engine
--*/
use crate::{wait, Array4x4, CaliptraResult, KeyId};
use caliptra_registers::doe::DoeReg;
pub struct DeobfuscationEngine {
doe: DoeReg,
}
impl DeobfuscationEngine {
pub fn new(... | 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/pic.rs | drivers/src/pic.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
pic.rs
Abstract:
File contains a driver for the RISC-V VeeR EL2 programmable interrupt controller
--*/
use caliptra_registers::el2_pic_ctrl::*;
pub enum IntSource {
DoeErr = 1,
DoeNotif = 2,
EccErr = 3,
EccNotif = 4,
HmacErr = 5,
Hma... | 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/persistent.rs | drivers/src/persistent.rs | // Licensed under the Apache-2.0 license
use core::{marker::PhantomData, mem::size_of, ptr::addr_of};
#[cfg(feature = "runtime")]
use caliptra_auth_man_types::{
AuthManifestImageMetadata, AuthManifestImageMetadataCollection,
AUTH_MANIFEST_IMAGE_METADATA_MAX_COUNT,
};
use caliptra_error::{CaliptraError, 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/mldsa87.rs | drivers/src/mldsa87.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
Mldsa87.rs
Abstract:
File contains API for MLDSA-87 Cryptography operations
--*/
#![allow(dead_code)]
use crate::{
array::{LEArray4x1157, LEArray4x1224, LEArray4x16, LEArray4x648, LEArray4x8},
kv_access::{KvAccess, KvAccessErr},
wait, Cal... | 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_384acc.rs | drivers/src/sha2_512_384acc.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
sha2_512_384acc.rs
Abstract:
File contains API for SHA2 512/384 accelerator operations
--*/
use crate::wait;
use crate::CaliptraResult;
use crate::Mailbox;
use crate::{Array4x12, Array4x16};
use caliptra_error::CaliptraError;
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/okref.rs | drivers/src/okref.rs | // Licensed under the Apache-2.0 license
/// This function makes it easier to efficiently deal with Result types with
/// large `Ok` variants.
///
/// Consider this code:
///
/// ```
/// use caliptra_drivers::okref;
///
/// fn some_function() -> Result<[u32; 64], u32> {
/// Ok([0u32; 64])
/// }
/// fn compute(val:... | 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/fips_test_hooks.rs | drivers/src/fips_test_hooks.rs | // Licensed under the Apache-2.0 license
use caliptra_error::CaliptraResult;
use caliptra_registers::soc_ifc::SocIfcReg;
pub struct FipsTestHook;
impl FipsTestHook {
pub const RSVD: u8 = 0x0;
// Set by Caliptra
pub const COMPLETE: u8 = 0x1;
// Set by external test
pub const CONTINUE: u8 = 0x10;
... | 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/lms.rs | drivers/src/lms.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
lms_hss.rs
Abstract:
File contains API for LMS signature validation
Implementation follows the LMS specification and pseudocode from RFC 8554
https://www.rfc-editor.org/rfc/rfc8554
--*/
use core::mem::MaybeUninit;
use crate::{sha256::Sha256A... | 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_kdf.rs | drivers/src/hmac_kdf.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
hmac_kdf.rs
Abstract:
A KDF implementation that is compliant with SP 800-108 Section 4.1 (KDF in Counter Mode).
--*/
use crate::{Hmac, HmacKey, HmacMode, HmacTag, Trng};
#[cfg(not(feature = "no-cfi"))]
use caliptra_cfi_derive::cfi_mod_fn;
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/drivers/src/preconditioned_key.rs | drivers/src/preconditioned_key.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
preconditioned_key.rs
Abstract:
A FIPS-approved method for combining keys together leveraging an HMAC-based key-extraction process.
--*/
use crate::{
hmac_kdf, Aes, AesKey, AesOperation, Hmac, HmacData, HmacKey, HmacMode, HmacTag, KeyReadArgs,
... | 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_log.rs | drivers/src/pcr_log.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
pcr.rs
Abstract:
PCR-related types.
--*/
use crate::PcrId;
use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout};
use zeroize::Zeroize;
pub const PCR_ID_FMC_CURRENT: PcrId = PcrId::PcrId0;
pub const PCR_ID_FMC_JOURNEY: PcrId = PcrId::PcrId1;
p... | 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/kv_access.rs | drivers/src/kv_access.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
kv_access.rs
Abstract:
File contains helper methods used by peripherals to access keys in
key vault.
--*/
use crate::array::Array4xN;
use crate::{wait, CaliptraResult, KeyId, KeyUsage, PcrId};
use caliptra_registers::enums::KvErrorE;
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/drivers/src/cmac_kdf.rs | drivers/src/cmac_kdf.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
cmac_kdf.rs
Abstract:
A KDF implementation that is compliant with SP 800-108 Section 4.1 (KDF in Counter Mode)
using CMAC as the underlying PRF.
--*/
use crate::{Aes, AesKey, LEArray4x16, AES_BLOCK_SIZE_WORDS};
use arrayvec::ArrayVec;
#[cfg(not(... | 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.rs | drivers/src/trng.rs | // Licensed under the Apache-2.0 license
use core::array;
use caliptra_error::{CaliptraError, CaliptraResult};
use caliptra_registers::{
csrng::CsrngReg, entropy_src::EntropySrcReg, soc_ifc::SocIfcReg, soc_ifc_trng::SocIfcTrngReg,
};
use crate::{trng_ext::TrngExt, Array4x12, Array4x16, Csrng, MfgFlags};
#[repr(... | 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/ml_kem.rs | drivers/src/ml_kem.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
ml_kem.rs
Abstract:
File contains API for ML-KEM-1024 Cryptography operations
--*/
#![allow(dead_code)]
use crate::{
array::{LEArray4x392, LEArray4x792, LEArray4x8},
kv_access::{KvAccess, KvAccessErr},
wait, CaliptraError, CaliptraResult,... | 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/csrng.rs | drivers/src/csrng.rs | /*++
Licensed under the Apache-2.0 license.
Inspired by OpenTitan's driver interface functions for the entropy_src and
CSRNG peripherals:
https://opentitan.org/book/sw/device/lib/dif/dif_entropy_src_h.html
https://opentitan.org/book/sw/device/lib/dif/dif_csrng_h.html
An overview of the entropy_src and CSRNG peripher... | 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/key_vault.rs | drivers/src/key_vault.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
key_vault.rs
Abstract:
File contains API for controlling the Key Vault
--*/
use bitfield::bitfield;
use crate::{CaliptraError, CaliptraResult};
use caliptra_registers::kv::KvReg;
use zerocopy::{IntoBytes, KnownLayout, TryFromBytes};
/// Key Identi... | 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/hand_off.rs | drivers/src/hand_off.rs | // Licensed under the Apache-2.0 license.
use crate::bounded_address::RomAddr;
use crate::{persistent, soc_ifc};
use crate::{Ecc384PubKey, Ecc384Signature, KeyId, ResetReason};
use bitfield::{bitfield_bitrange, bitfield_fields};
use caliptra_error::CaliptraError;
use caliptra_image_types::RomInfo;
use core::mem::size_... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/tests/drivers_integration_tests/main.rs | drivers/tests/drivers_integration_tests/main.rs | // Licensed under the Apache-2.0 license
use caliptra_api::SocManager;
use std::error::Error;
use std::iter;
use caliptra_builder::{firmware, FwId};
use caliptra_drivers::{Array4x12, Array4xN, Ecc384PubKey};
use caliptra_drivers_test_bin::{
DoeTestResults, OCP_LOCK_WARM_RESET_MAGIC_BOOT_STATUS, PLAINTEXT_MEK,
};
... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | true |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/fuzz/src/sha256.rs | drivers/fuzz/src/sha256.rs | // Licensed under the Apache-2.0 license
use caliptra_drivers::{Array4x8, CaliptraResult, Sha256Alg, Sha256DigestOp};
use std::marker::PhantomData;
use sha2::Digest;
#[derive(Default)]
pub struct Sha256SoftwareDriver {}
pub struct Sha256DigestOpSw<'a> {
driver: PhantomData<&'a mut Sha256SoftwareDriver>,
dig... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/fuzz/src/fuzz_target_lms.rs | drivers/fuzz/src/fuzz_target_lms.rs | // Licensed under the Apache-2.0 license
#![cfg_attr(feature = "libfuzzer-sys", no_main)]
#[cfg(all(not(feature = "libfuzzer-sys"), not(feature = "afl")))]
compile_error!("Either feature \"libfuzzer-sys\" or \"afl\" must be enabled!");
#[cfg(feature = "libfuzzer-sys")]
use libfuzzer_sys::fuzz_target;
#[cfg(feature ... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/build.rs | drivers/test-fw/build.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
build.rs
Abstract:
Cargo build file
--*/
fn main() {
if cfg!(feature = "riscv") {
println!("cargo:rerun-if-changed=../../test-harness/scripts/rom.ld");
println!("cargo:rustc-link-arg=-Ttest-harness/scripts/rom.ld");
}
}
| rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/scripts/vector_gen/src/mdk.rs | drivers/test-fw/scripts/vector_gen/src/mdk.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
mdk.rs
Abstract:
A vector generator for an MDK.
--*/
use openssl::{
hash::MessageDigest,
pkey::PKey,
sign::Signer,
symm::{Cipher, Crypter, Mode},
};
pub const PLAINTEXT_MEK: [u8; 64] = [
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, ... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/scripts/vector_gen/src/preconditioned_key_extract_gen.rs | drivers/test-fw/scripts/vector_gen/src/preconditioned_key_extract_gen.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
preconditioned_key_extract_gen.rs
Abstract:
A vector generator for the preconditioned_key_extract function.
https://chipsalliance.github.io/Caliptra/ocp-lock/specification/HEAD/#fig:preconditioned-key-extract
--*/
use crate::utils::*;
use openss... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/scripts/vector_gen/src/hmac384_kdf_vector_gen.rs | drivers/test-fw/scripts/vector_gen/src/hmac384_kdf_vector_gen.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
hmac384_kdf_vector_gen.rs
Abstract:
A vector generator for an SP 800-108-compliant KDF.
--*/
use crate::utils::*;
use caliptra_test::crypto::derive_ecdsa_keypair;
pub struct Hmac384KdfVector {
pub key_0: [u8; 48],
pub msg_0: [u8; 48],
p... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/scripts/vector_gen/src/hmac384_vector_gen.rs | drivers/test-fw/scripts/vector_gen/src/hmac384_vector_gen.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
hmac384_vector_gen.rs
Abstract:
A vector generator for HMAC operations.
--*/
use caliptra_test::crypto::derive_ecdsa_keypair;
use crate::utils::*;
pub struct Hmac384Vector {
pub seed: [u8; 48],
pub data: Vec<u8>,
// key = ECDSA_KEYGEN(s... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/scripts/vector_gen/src/utils.rs | drivers/test-fw/scripts/vector_gen/src/utils.rs | // Licensed under the Apache-2.0 license
use openssl::{hash::MessageDigest, pkey::PKey, sign::Signer};
pub(crate) enum Digest {
SHA384,
SHA512,
}
pub(crate) fn rand_bytes(buf: &mut [u8]) {
openssl::rand::rand_bytes(buf).unwrap()
}
pub(crate) fn hmac(key: &[u8], msg: &[u8], tag: &mut [u8], digest_type: D... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/scripts/vector_gen/src/main.rs | drivers/test-fw/scripts/vector_gen/src/main.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
main.rs
Abstract:
Driver for test vector generators.
--*/
mod hmac384_kdf_vector_gen;
mod hmac384_vector_gen;
mod mdk;
mod preconditioned_key_extract_gen;
mod utils;
use crate::hmac384_kdf_vector_gen::Hmac384KdfVector;
use crate::hmac384_vector_gen:... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/lib.rs | drivers/test-fw/src/lib.rs | // Licensed under the Apache-2.0 license
#![no_std]
use caliptra_drivers::{
Aes, Array4x16, DeobfuscationEngine, Dma, Ecc384PubKey, Hmac, HmacData, HmacKey, HmacMode,
KeyId, KeyReadArgs, KeyUsage, KeyVault, KeyWriteArgs, SocIfc, Trng,
};
use caliptra_kat::CaliptraResult;
use caliptra_registers::{
aes::Aes... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/mbox_send_txn_drop.rs | drivers/test-fw/src/bin/mbox_send_txn_drop.rs | // Licensed under the Apache-2.0 license
//! A very simple program that uses the driver to send mailbox messages
#![no_main]
#![no_std]
use caliptra_registers::mbox::MboxCsr;
// Needed to bring in startup code
#[allow(unused)]
use caliptra_test_harness::{self, println};
use caliptra_drivers::{self, Mailbox};
#[pan... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/preconditioned_keys_tests.rs | drivers/test-fw/src/bin/preconditioned_keys_tests.rs | // Licensed under the Apache-2.0 license
#![no_std]
#![no_main]
use caliptra_cfi_lib::CfiCounter;
use caliptra_drivers::preconditioned_key::preconditioned_key_extract;
use caliptra_drivers::{
Aes, AesKey, AesOperation, Array4x12, Array4x16, Hmac, HmacData, HmacKey, HmacMode, HmacTag,
KeyId, KeyReadArgs, KeyUs... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/dma_aes_tests.rs | drivers/test-fw/src/bin/dma_aes_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
dma_sha384_tests.rs
Abstract:
File contains test cases for DMA SHA384 operations
--*/
#![no_std]
#![no_main]
use caliptra_cfi_lib::CfiCounter;
use caliptra_drivers::sha2_512_384::Sha2DigestOpTrait;
use caliptra_drivers::{
cprintln, Aes, AesGcmIv... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/test_success.rs | drivers/test-fw/src/bin/test_success.rs | // Licensed under the Apache-2.0 license
//! A very simple ROM. Prints an 'S' character followed by a request to exit
//! with success. Used for testing the toolchain and test infrastructure.
#![no_main]
#![no_std]
#[panic_handler]
pub fn panic(_info: &core::panic::PanicInfo) -> ! {
loop {}
}
#[no_mangle]
exter... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/trng_driver_responder.rs | drivers/test-fw/src/bin/trng_driver_responder.rs | // Licensed under the Apache-2.0 license
//! A very simple program that responds with TRNG data through the mailbox
#![no_main]
#![no_std]
// Needed to bring in startup code
#[allow(unused)]
use caliptra_test_harness::{self, println};
use caliptra_drivers::{self, Trng};
use caliptra_registers::{
csrng::CsrngReg... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/test_failure.rs | drivers/test-fw/src/bin/test_failure.rs | // Licensed under the Apache-2.0 license
//! A very simple ROM. Prints an 'F' character followed by a request to exit
//! with failure. Used for testing the toolchain and test infrastructure.
#![no_main]
#![no_std]
#[panic_handler]
pub fn panic(_info: &core::panic::PanicInfo) -> ! {
loop {}
}
#[no_mangle]
exter... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/negative_tests_lms.rs | drivers/test-fw/src/bin/negative_tests_lms.rs | /*
Licensed under the Apache-2.0 license.
File Name:
lms_24_tests.rs
Abstract:
File contains test cases for LMS signature verification using SHA256/192.
--*/
#![no_std]
#![no_main]
use caliptra_drivers::{CaliptraError, Lms, LmsResult, Sha256};
use caliptra_lms_types::{
bytes_to_words_6, LmotsAlgorithmType, ... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/aes_tests.rs | drivers/test-fw/src/bin/aes_tests.rs | // Licensed under the Apache-2.0 license
#![no_std]
#![no_main]
use caliptra_cfi_lib::CfiCounter;
use caliptra_drivers::{
Aes, AesKey, Array4x12, Ecc384, Ecc384PrivKeyOut, Ecc384Scalar, Ecc384Seed, KeyId, KeyReadArgs,
KeyUsage, KeyWriteArgs, Trng,
};
use caliptra_registers::aes::AesReg;
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/test-fw/src/bin/error_reporter_tests.rs | drivers/test-fw/src/bin/error_reporter_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
error_reporter_tests.rs
Abstract:
File contains test cases for HMAC-384 API
--*/
#![no_std]
#![no_main]
use caliptra_drivers::{
clear_fw_error_non_fatal, get_fw_error_non_fatal, report_fw_error_fatal,
report_fw_error_non_fatal, PersistentDat... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/csrng_pass_health_tests.rs | drivers/test-fw/src/bin/csrng_pass_health_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
csrng_pass_health_tests.rs
Abstract:
https://opentitan.org/book/hw/ip/entropy_src/index.html#description
The test cases in this file should pass entropy health tests.
--*/
#![no_std]
#![no_main]
use caliptra_drivers::Csrng;
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/test-fw/src/bin/ecc384_tests.rs | drivers/test-fw/src/bin/ecc384_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
ecc384_tests.rs
Abstract:
File contains test cases for ECC-384 API tests
--*/
#![no_std]
#![no_main]
use caliptra_cfi_lib::CfiCounter;
use caliptra_drivers::{
Array4x12, Ecc384, Ecc384PrivKeyIn, Ecc384PrivKeyOut, Ecc384PubKey, Ecc384Result, Ecc3... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/status_reporter_tests.rs | drivers/test-fw/src/bin/status_reporter_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
error_reporter_tests.rs
Abstract:
File contains test cases for HMAC-384 API
--*/
#![no_std]
#![no_main]
use caliptra_drivers::{report_boot_status, SocIfc};
use caliptra_registers::soc_ifc::SocIfcReg;
use caliptra_test_harness::test_suite;
fn retri... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/sha1_tests.rs | drivers/test-fw/src/bin/sha1_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
sha1_tests.rs
Abstract:
File contains test cases for SHA1 API
--*/
#![no_std]
#![no_main]
use caliptra_cfi_lib::CfiCounter;
use caliptra_drivers::{Array4x5, Array4xN, Sha1};
use caliptra_kat::Sha1Kat;
use caliptra_test_harness::test_suite;
fn test... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/mldsa87_tests.rs | drivers/test-fw/src/bin/mldsa87_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
ml_dsa87_tests.rs
Abstract:
File contains test cases for ML_DSA87 API tests
--*/
#![no_std]
#![no_main]
use caliptra_cfi_lib::CfiCounter;
use caliptra_drivers::{
Array4x12, Array4x16, Hmac, HmacData, HmacKey, HmacMode, HmacTag, KeyId, KeyReadArg... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | true |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/csrng_tests.rs | drivers/test-fw/src/bin/csrng_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
csrng_tests.rs
Abstract:
File contains test cases for CSRNG API
--*/
#![no_std]
#![no_main]
use caliptra_drivers::{Csrng, CsrngSeed};
use caliptra_registers::{csrng::CsrngReg, entropy_src::EntropySrcReg, soc_ifc::SocIfcReg};
use caliptra_test_harnes... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/sha384_tests.rs | drivers/test-fw/src/bin/sha384_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
sha384_tests.rs
Abstract:
File contains test cases for SHA-384 API
--*/
#![no_std]
#![no_main]
use caliptra_cfi_lib::CfiCounter;
use caliptra_drivers::sha2_512_384::Sha2DigestOpTrait;
use caliptra_drivers::{Array4x12, PcrBank, PcrId, Sha2_512_384};
... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/dma_sha384_tests.rs | drivers/test-fw/src/bin/dma_sha384_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
dma_sha384_tests.rs
Abstract:
File contains test cases for DMA SHA384 operations
--*/
#![no_std]
#![no_main]
use caliptra_cfi_lib::CfiCounter;
use caliptra_drivers::{
AesDmaMode, Array4x16, AxiAddr, Dma, DmaRecovery, Sha2_512_384, Sha2_512_384Ac... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/csrng_fail_adaptp_tests.rs | drivers/test-fw/src/bin/csrng_fail_adaptp_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
csrng_fail_adaptp_tests.rs
Abstract:
https://opentitan.org/book/hw/ip/entropy_src/doc/theory_of_operation.html#adaptive-proportion-test
File contains test cases for CSRNG API when the physical entropy source
has a strong bias to produce too man... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/mailbox_driver_responder.rs | drivers/test-fw/src/bin/mailbox_driver_responder.rs | // Licensed under the Apache-2.0 license
//! A very simple program that uses the driver to respond to the mailbox.
#![no_main]
#![no_std]
// Needed to bring in startup code
#[allow(unused)]
use caliptra_test_harness::{self, println};
use caliptra_drivers::{self, Mailbox};
use caliptra_registers::mbox::MboxCsr;
use ... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/sha3_tests.rs | drivers/test-fw/src/bin/sha3_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
sha3_tests.rs
Abstract:
File contains test cases for SHA-3 API
--*/
#![no_std]
#![no_main]
use caliptra_cfi_lib::CfiCounter;
use caliptra_drivers::{Array4x16, Array4x8, Sha3};
use caliptra_kat::Shake256Kat;
use caliptra_registers::kmac::Kmac as Kmac... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/mlkem_tests.rs | drivers/test-fw/src/bin/mlkem_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
mlkem_tests.rs
Abstract:
File contains test cases for ML-KEM-1024 API tests
--*/
#![no_std]
#![no_main]
use caliptra_cfi_lib::CfiCounter;
use caliptra_drivers::{
Array4x12, Hmac, HmacData, HmacKey, HmacMode, HmacTag, KeyId, KeyReadArgs, KeyUsage... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | true |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/csrng_fail_repcnt_tests.rs | drivers/test-fw/src/bin/csrng_fail_repcnt_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
csrng_fail_repcnt_tests.rs
Abstract:
https://opentitan.org/book/hw/ip/entropy_src/doc/theory_of_operation.html#repetition-count-test
File contains test cases for CSRNG API when the physical entropy source
has a stuck bit on at least one of the ... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/test_uart.rs | drivers/test-fw/src/bin/test_uart.rs | // Licensed under the Apache-2.0 license
//! A very simple ROM. Prints a serious of strings using the UART driver.
#![no_std]
#![no_main]
use caliptra_drivers::{ExitCtrl, Uart};
// Needed to bring in startup code
#[allow(unused)]
use caliptra_test_harness;
#[panic_handler]
pub fn panic(_info: &core::panic::PanicInf... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/pcrbank_tests.rs | drivers/test-fw/src/bin/pcrbank_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
pcrbank_tests.rs
Abstract:
File contains test cases for PCR bank API
--*/
#![no_std]
#![no_main]
use caliptra_drivers::{PcrBank, PcrId};
use caliptra_registers::pv::PvReg;
use caliptra_test_harness::test_suite;
const PCR_IDS: [PcrId; 32] = [
P... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/ocp_lock_tests.rs | drivers/test-fw/src/bin/ocp_lock_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
ocp_lock_tests.rs
Abstract:
File contains test cases for OCP LOCK.
--*/
#![no_std]
#![no_main]
use caliptra_cfi_lib::CfiCounter;
use caliptra_drivers::{
cmac_kdf, hmac_kdf, AesKey, Array4x4, HmacKey, HmacMode, HmacTag, KeyId, KeyReadArgs, KeyUsag... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/sha2_512_384acc_tests.rs | drivers/test-fw/src/bin/sha2_512_384acc_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
sha2_512_384_tests.rs
Abstract:
File contains test cases for SHA-384 Accelerator API
--*/
#![no_std]
#![no_main]
use caliptra_drivers::{
memory_layout, Array4x12, Array4x16, Mailbox, Sha2_512_384Acc, ShaAccLockState,
StreamEndianness, MBOX_S... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/mailbox_driver_sender.rs | drivers/test-fw/src/bin/mailbox_driver_sender.rs | // Licensed under the Apache-2.0 license
//! A very simple program that uses the driver to send mailbox messages
#![no_main]
#![no_std]
// Needed to bring in startup code
#[allow(unused)]
use caliptra_test_harness::{self, println};
use caliptra_drivers::{self, Mailbox};
use caliptra_registers::mbox::MboxCsr;
#[pan... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/lms_32_tests.rs | drivers/test-fw/src/bin/lms_32_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
lms_32_tests.rs
Abstract:
File contains test cases for LMS signature verification using SHA256.
As of March 2023 Caliptra does not use SHA256 due to the additional size
of the signatures and verification time compared to SHA256/192. These tes... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | true |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/axi_bypass.rs | drivers/test-fw/src/bin/axi_bypass.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
axi_bypass.rs
Abstract:
File contains test cases for the AXI bypass recovery flow.
Note: This test is triggered from `caliptra-mcu-sw`.
--*/
#![no_std]
#![no_main]
use core::mem::ManuallyDrop;
use caliptra_drivers::{AxiAddr, Dma, DmaRecovery, Ma... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/doe_tests.rs | drivers/test-fw/src/bin/doe_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
doe_tests.rs
Abstract:
File contains test cases for Deobfuscation Engine API
--*/
#![no_std]
#![no_main]
use caliptra_drivers::{
Array4x12, Array4x4, DeobfuscationEngine, Ecc384, Ecc384PubKey, Hmac, HmacData, HmacKey,
HmacMode, KeyId, KeyRea... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/sha256_tests.rs | drivers/test-fw/src/bin/sha256_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
sha256_tests.rs
Abstract:
File contains test cases for SHA-256 API
--*/
#![no_std]
#![no_main]
use caliptra_cfi_lib::CfiCounter;
use caliptra_drivers::{Array4x8, Sha256, Sha256Alg, Sha256DigestOp};
use caliptra_kat::Sha256Kat;
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/test-fw/src/bin/ecc384_sign_validation_failure_test.rs | drivers/test-fw/src/bin/ecc384_sign_validation_failure_test.rs | // Licensed under the Apache-2.0 license
#![no_std]
#![no_main]
use caliptra_cfi_lib::CfiCounter;
use caliptra_drivers::{Array4x12, Ecc384, Ecc384PrivKeyIn, Ecc384PubKey, Ecc384Scalar, Trng};
use caliptra_registers::csrng::CsrngReg;
use caliptra_registers::ecc::EccReg;
use caliptra_registers::entropy_src::EntropySrcR... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/hmac_tests.rs | drivers/test-fw/src/bin/hmac_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
hmac_tests.rs
Abstract:
File contains test cases for HMAC-384 and HMAC-512 API
--*/
#![no_std]
#![no_main]
use caliptra_cfi_lib::CfiCounter;
use caliptra_drivers::{
hmac_kdf, Array4x12, Array4x16, Ecc384, Ecc384PrivKeyOut, Ecc384Scalar, Ecc384Se... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | true |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/csrng_tests2.rs | drivers/test-fw/src/bin/csrng_tests2.rs | // Licensed under the Apache-2.0 license
#![no_std]
#![no_main]
use caliptra_drivers::Csrng;
use caliptra_registers::{csrng::CsrngReg, entropy_src::EntropySrcReg, soc_ifc::SocIfcReg};
use caliptra_test_harness::test_suite;
fn test_assume_initialized() {
let csrng_reg = unsafe { CsrngReg::new() };
let entropy... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/mldsa87_external_mu_tests.rs | drivers/test-fw/src/bin/mldsa87_external_mu_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
ml_dsa87_tests.rs
Abstract:
File contains test cases for ML_DSA87 API tests
--*/
#![no_std]
#![no_main]
use caliptra_cfi_lib::CfiCounter;
use caliptra_drivers::{
Mldsa87, Mldsa87PrivKey, Mldsa87PubKey, Mldsa87Result, Mldsa87Seed, Mldsa87SignRnd,... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | true |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/keyvault_tests.rs | drivers/test-fw/src/bin/keyvault_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
keyvault_tests.rs
Abstract:
File contains test cases for Key-Vault API
--*/
#![no_std]
#![no_main]
use caliptra_drivers::{KeyId, KeyUsage, KeyVault};
use caliptra_registers::kv::KvReg;
use caliptra_test_harness::test_suite;
const KEY_IDS: [KeyId; 2... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/sha512_tests.rs | drivers/test-fw/src/bin/sha512_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
sha512_tests.rs
Abstract:
File contains test cases for SHA-512 API
--*/
#![no_std]
#![no_main]
use caliptra_cfi_lib::CfiCounter;
use caliptra_drivers::sha2_512_384::Sha2DigestOpTrait;
use caliptra_drivers::{Array4x16, Sha2_512_384};
use caliptra_kat... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/ocp_lock_warm_reset_test.rs | drivers/test-fw/src/bin/ocp_lock_warm_reset_test.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
ocp_lock_warm_reset_test.rs
Abstract:
File contains test cases for OCP LOCK after a warm reset.
--*/
#![no_std]
#![no_main]
use caliptra_cfi_lib::CfiCounter;
use caliptra_drivers::{
hmac_kdf, HmacKey, HmacMode, HmacTag, KeyId, KeyReadArgs, KeyUsa... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/persistent_tests.rs | drivers/test-fw/src/bin/persistent_tests.rs | // Licensed under the Apache-2.0 license
#![no_std]
#![no_main]
use caliptra_drivers::{PersistentData, PersistentDataAccessor};
use caliptra_test_harness::test_suite;
fn test_persistent_data_layout() {
PersistentData::assert_matches_layout();
}
fn test_read_write() {
{
let mut accessor = unsafe { Pe... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/drivers/test-fw/src/bin/lms_24_tests.rs | drivers/test-fw/src/bin/lms_24_tests.rs | /*++
Licensed under the Apache-2.0 license.
File Name:
lms_24_tests.rs
Abstract:
File contains test cases for LMS signature verification using SHA256/192.
--*/
#![no_std]
#![no_main]
use caliptra_drivers::{get_lms_parameters, HashValue, Lms, LmsResult, Sha256};
use caliptra_error::CaliptraError;
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/drivers/test-fw/src/bin/mailbox_driver_negative_tests.rs | drivers/test-fw/src/bin/mailbox_driver_negative_tests.rs | // Licensed under the Apache-2.0 license
//! A very simple program that uses the driver to send mailbox messages
#![no_main]
#![no_std]
use caliptra_registers::mbox::MboxCsr;
// Needed to bring in startup code
#[allow(unused)]
use caliptra_test_harness::{self, println};
use caliptra_drivers::{self, Mailbox};
#[pan... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/zero_bin/build.rs | zero_bin/build.rs | // Licensed under the Apache-2.0 license
fn main() {
cfg_if::cfg_if! {
if #[cfg(not(feature = "std"))] {
use std::env;
use std::fs;
use std::path::PathBuf;
use caliptra_gen_linker_scripts::gen_memory_x;
let out_dir = PathBuf::from(env::var("OUT_D... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/zero_bin/src/main.rs | zero_bin/src/main.rs | // Licensed under the Apache-2.0 license
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(not(feature = "std"), no_main)]
#[cfg(target_arch = "riscv32")]
core::arch::global_asm!(include_str!("zeros.S"));
#[cfg(feature = "std")]
pub fn main() {}
// Should not be linked
#[cfg(not(feature = "std"))]
#[panic_hand... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/zero_bin/tests/test_zeros.rs | zero_bin/tests/test_zeros.rs | // Licensed under the Apache-2.0 license
use caliptra_api::soc_mgr::SocManager;
use caliptra_builder::{
firmware::{APP_ZEROS, FMC_ZEROS},
ImageOptions,
};
use caliptra_drivers::memory_layout::ICCM_ORG;
use caliptra_error::CaliptraError;
use caliptra_hw_model::{BootParams, HwModel, InitParams};
#[test]
fn test... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/registers/src/lib.rs | registers/src/lib.rs | // Licensed under the Apache-2.0 license
//
#![no_std]
pub use caliptra_registers_latest::*;
| rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
chipsalliance/caliptra-sw | https://github.com/chipsalliance/caliptra-sw/blob/d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c/registers/bin/generator/src/main.rs | registers/bin/generator/src/main.rs | // Licensed under the Apache-2.0 license.
use std::collections::HashMap;
use std::fmt::Write;
use std::path::PathBuf;
use std::process::Stdio;
use std::rc::Rc;
use std::{error::Error, path::Path, process::Command};
use quote::__private::TokenStream;
use quote::{format_ident, quote};
use ureg_schema::{Enum, EnumVarian... | rust | Apache-2.0 | d6e4f6fae9e4966ec1f5a52167a60c87fafecf1c | 2026-01-04T20:21:36.839730Z | false |
lolishinshi/exloli | https://github.com/lolishinshi/exloli/blob/c3d9604c8cf125eff15b45e7336a627a6f50b75c/src/exhentai.rs | src/exhentai.rs | use crate::utils::{download_to_temp, HOST};
use crate::xpath::parse_html;
use crate::{CONFIG, DB};
use anyhow::{Context, Result};
use futures::executor::block_on;
use futures::prelude::*;
use once_cell::sync::Lazy;
use reqwest::header::{self, HeaderMap, HeaderValue};
use reqwest::{redirect::Policy, Client, Proxy, Respo... | rust | MIT | c3d9604c8cf125eff15b45e7336a627a6f50b75c | 2026-01-04T20:23:19.139359Z | false |
lolishinshi/exloli | https://github.com/lolishinshi/exloli/blob/c3d9604c8cf125eff15b45e7336a627a6f50b75c/src/config.rs | src/config.rs | use anyhow::Error;
use reqwest::{Client, Proxy};
use serde::Deserialize;
use std::time::Duration;
use std::{fs::File, io::Read, path::Path};
use teloxide::types::{ChatId, Recipient};
use url::Url;
#[derive(Debug, Deserialize)]
pub struct Config {
pub log_level: String,
pub threads_num: usize,
pub interval:... | rust | MIT | c3d9604c8cf125eff15b45e7336a627a6f50b75c | 2026-01-04T20:23:19.139359Z | false |
lolishinshi/exloli | https://github.com/lolishinshi/exloli/blob/c3d9604c8cf125eff15b45e7336a627a6f50b75c/src/trans.rs | src/trans.rs | use once_cell::sync::Lazy;
use serde::Deserialize;
use std::collections::HashMap;
use std::fs::read_to_string;
pub static TRANS: Lazy<Database> = Lazy::new(Database::new);
#[derive(Deserialize)]
pub struct Database {
// head: (),
// version: u8,
// repo: String,
data: Vec<Data>,
}
#[derive(Deserializ... | rust | MIT | c3d9604c8cf125eff15b45e7336a627a6f50b75c | 2026-01-04T20:23:19.139359Z | false |
lolishinshi/exloli | https://github.com/lolishinshi/exloli/blob/c3d9604c8cf125eff15b45e7336a627a6f50b75c/src/database.rs | src/database.rs | use crate::exhentai::*;
use crate::schema::*;
use crate::utils::*;
use anyhow::{Context, Result};
use chrono::prelude::*;
use diesel::dsl::sql;
use diesel::prelude::*;
use diesel::r2d2::{ConnectionManager, Pool};
use diesel::sqlite::Sqlite;
use std::env;
embed_migrations!("migrations");
#[derive(Queryable, Insertable... | rust | MIT | c3d9604c8cf125eff15b45e7336a627a6f50b75c | 2026-01-04T20:23:19.139359Z | false |
lolishinshi/exloli | https://github.com/lolishinshi/exloli/blob/c3d9604c8cf125eff15b45e7336a627a6f50b75c/src/schema.rs | src/schema.rs | table! {
gallery (message_id) {
message_id -> Integer,
gallery_id -> Integer,
token -> Text,
title -> Text,
tags -> Text,
telegraph -> Text,
upload_images -> SmallInt,
publish_date -> Date,
poll_id -> Text,
score -> Float,
votes... | rust | MIT | c3d9604c8cf125eff15b45e7336a627a6f50b75c | 2026-01-04T20:23:19.139359Z | false |
lolishinshi/exloli | https://github.com/lolishinshi/exloli/blob/c3d9604c8cf125eff15b45e7336a627a6f50b75c/src/utils.rs | src/utils.rs | use crate::trans::TRANS;
use crate::CONFIG;
use anyhow::Context;
use futures::TryFutureExt;
use once_cell::sync::Lazy;
use regex::Regex;
use reqwest::header::*;
use reqwest::{Client, Response};
use std::borrow::Cow;
use std::io::Write;
use std::time::SystemTime;
use tempfile::NamedTempFile;
pub static HOST: Lazy<&'sta... | rust | MIT | c3d9604c8cf125eff15b45e7336a627a6f50b75c | 2026-01-04T20:23:19.139359Z | false |
lolishinshi/exloli | https://github.com/lolishinshi/exloli/blob/c3d9604c8cf125eff15b45e7336a627a6f50b75c/src/xpath.rs | src/xpath.rs | use anyhow::{Context, Error};
use libxml::parser::Parser;
use libxml::tree::{self, Document, NodeType};
use libxml::xpath::Context as XContext;
use std::{fmt, ops::Deref, rc::Rc};
#[derive(Debug)]
pub enum Value {
Element(Vec<Node>),
Text(Vec<String>),
None,
}
impl Value {
pub fn into_element(self) ->... | rust | MIT | c3d9604c8cf125eff15b45e7336a627a6f50b75c | 2026-01-04T20:23:19.139359Z | false |
lolishinshi/exloli | https://github.com/lolishinshi/exloli/blob/c3d9604c8cf125eff15b45e7336a627a6f50b75c/src/exloli.rs | src/exloli.rs | use crate::database::Gallery;
use crate::exhentai::*;
use crate::utils::*;
use crate::{BOT, CONFIG, DB};
use anyhow::Result;
use chrono::{Datelike, Duration, Timelike, Utc};
use futures::TryFutureExt;
use telegraph_rs::{html_to_node, Page, Telegraph};
use teloxide::prelude::*;
use teloxide::types::{MessageId, ParseMode... | rust | MIT | c3d9604c8cf125eff15b45e7336a627a6f50b75c | 2026-01-04T20:23:19.139359Z | false |
lolishinshi/exloli | https://github.com/lolishinshi/exloli/blob/c3d9604c8cf125eff15b45e7336a627a6f50b75c/src/main.rs | src/main.rs | #[macro_use]
extern crate log;
#[macro_use]
extern crate diesel;
#[macro_use]
extern crate diesel_migrations;
#[macro_use]
extern crate anyhow;
use crate::config::Config;
use crate::database::DataBase;
use crate::exloli::ExLoli;
use anyhow::Error;
use futures::executor::block_on;
use once_cell::sync::Lazy;
use teloxi... | rust | MIT | c3d9604c8cf125eff15b45e7336a627a6f50b75c | 2026-01-04T20:23:19.139359Z | false |
lolishinshi/exloli | https://github.com/lolishinshi/exloli/blob/c3d9604c8cf125eff15b45e7336a627a6f50b75c/src/bot/command.rs | src/bot/command.rs | use crate::bot::utils::*;
use crate::database::Gallery;
use crate::exhentai::EXHENTAI;
use crate::*;
use futures::TryFutureExt;
use std::convert::TryInto;
use std::fmt::{self, Debug, Formatter};
use std::str::FromStr;
use teloxide::types::Message;
pub enum CommandError {
/// 命令解析错误
WrongCommand(&'static str),
... | rust | MIT | c3d9604c8cf125eff15b45e7336a627a6f50b75c | 2026-01-04T20:23:19.139359Z | false |
lolishinshi/exloli | https://github.com/lolishinshi/exloli/blob/c3d9604c8cf125eff15b45e7336a627a6f50b75c/src/bot/utils.rs | src/bot/utils.rs | use crate::database::Gallery;
use crate::{CONFIG, DB};
use dashmap::DashMap;
use once_cell::sync::Lazy;
use regex::Regex;
use std::collections::VecDeque;
use std::fmt::Debug;
use std::hash::Hash;
use std::ops::Deref;
use std::time::{Duration, Instant};
use teloxide::prelude::*;
use teloxide::types::*;
use uuid::Uuid;
... | rust | MIT | c3d9604c8cf125eff15b45e7336a627a6f50b75c | 2026-01-04T20:23:19.139359Z | false |
lolishinshi/exloli | https://github.com/lolishinshi/exloli/blob/c3d9604c8cf125eff15b45e7336a627a6f50b75c/src/bot/mod.rs | src/bot/mod.rs | mod command;
mod handler;
mod utils;
use handler::*;
use teloxide::prelude::*;
pub async fn start_bot(bot: Bot) {
info!("BOT 启动");
let handler = dptree::entry()
.branch(Update::filter_message().branch(Message::filter_text().endpoint(message_handler)))
.branch(Update::filter_poll().endpoint(po... | rust | MIT | c3d9604c8cf125eff15b45e7336a627a6f50b75c | 2026-01-04T20:23:19.139359Z | false |
lolishinshi/exloli | https://github.com/lolishinshi/exloli/blob/c3d9604c8cf125eff15b45e7336a627a6f50b75c/src/bot/handler.rs | src/bot/handler.rs | use super::utils::*;
use crate::bot::command::*;
use crate::database::Gallery;
use crate::utils::get_message_url;
use crate::*;
use anyhow::{Context, Result};
use chrono::{Duration, Utc};
use futures::{FutureExt, TryFutureExt};
use std::convert::TryInto;
use std::future::Future;
use teloxide::types::*;
use teloxide::{A... | rust | MIT | c3d9604c8cf125eff15b45e7336a627a6f50b75c | 2026-01-04T20:23:19.139359Z | false |
lolishinshi/exloli | https://github.com/lolishinshi/exloli/blob/c3d9604c8cf125eff15b45e7336a627a6f50b75c/src/ehentai/client.rs | src/ehentai/client.rs | use anyhow::Result;
use reqwest::header::*;
use reqwest::{Client, Response};
use std::time::Duration;
use crate::ehentai::types::Gallery;
use crate::xpath::parse_html;
macro_rules! send {
($e:expr) => {
$e.send().await.and_then(Response::error_for_status)
};
}
const DEFAULT_HEADERS: [(HeaderName, &'st... | rust | MIT | c3d9604c8cf125eff15b45e7336a627a6f50b75c | 2026-01-04T20:23:19.139359Z | false |
lolishinshi/exloli | https://github.com/lolishinshi/exloli/blob/c3d9604c8cf125eff15b45e7336a627a6f50b75c/src/ehentai/types.rs | src/ehentai/types.rs | /// 画廊信息
#[derive(Debug)]
pub struct Gallery {
/// 画廊标题
pub title: String,
/// 画廊日文标题
pub title_jp: Option<String>,
/// 画廊地址
pub url: String,
/// 父画廊地址
pub parent: Option<String>,
/// 标签
pub tags: Vec<(String, Vec<String>)>,
/// 图片页面的地址
pub images: Vec<String>,
}
| rust | MIT | c3d9604c8cf125eff15b45e7336a627a6f50b75c | 2026-01-04T20:23:19.139359Z | false |
lolishinshi/exloli | https://github.com/lolishinshi/exloli/blob/c3d9604c8cf125eff15b45e7336a627a6f50b75c/src/ehentai/mod.rs | src/ehentai/mod.rs | mod client;
mod types;
pub use client::EHentaiClient;
| rust | MIT | c3d9604c8cf125eff15b45e7336a627a6f50b75c | 2026-01-04T20:23:19.139359Z | false |
alexmoon/bluest | https://github.com/alexmoon/bluest/blob/37e353d778b43d4892d2b7315cb5fba6cd5cb969/src/corebluetooth.rs | src/corebluetooth.rs | #![allow(unexpected_cfgs)]
use crate::Uuid;
pub mod adapter;
pub mod characteristic;
pub mod descriptor;
pub mod device;
pub mod error;
#[cfg(feature = "l2cap")]
pub mod l2cap_channel;
pub mod service;
mod ad;
pub(crate) mod delegates;
pub(crate) mod dispatch;
/// A platform-specific device identifier.
#[derive(Deb... | rust | Apache-2.0 | 37e353d778b43d4892d2b7315cb5fba6cd5cb969 | 2026-01-04T20:23:19.181316Z | false |
alexmoon/bluest | https://github.com/alexmoon/bluest/blob/37e353d778b43d4892d2b7315cb5fba6cd5cb969/src/descriptor.rs | src/descriptor.rs | use crate::{sys, Result, Uuid};
/// A Bluetooth GATT descriptor
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Descriptor(pub(crate) sys::descriptor::DescriptorImpl);
impl Descriptor {
/// The [`Uuid`] identifying the type of this GATT descriptor
///
/// # Panics
///
/// On Linux, this method w... | rust | Apache-2.0 | 37e353d778b43d4892d2b7315cb5fba6cd5cb969 | 2026-01-04T20:23:19.181316Z | false |
alexmoon/bluest | https://github.com/alexmoon/bluest/blob/37e353d778b43d4892d2b7315cb5fba6cd5cb969/src/lib.rs | src/lib.rs | #![warn(missing_docs)]
//! Bluest is a cross-platform [Bluetooth Low Energy] (BLE) library for [Rust]. It currently supports Windows (version
//! 10 and later), MacOS/iOS, and Linux. Android support is planned.
//!
//! The goal of Bluest is to create a *thin* abstraction on top of the platform-specific Bluetooth APIs ... | rust | Apache-2.0 | 37e353d778b43d4892d2b7315cb5fba6cd5cb969 | 2026-01-04T20:23:19.181316Z | false |
alexmoon/bluest | https://github.com/alexmoon/bluest/blob/37e353d778b43d4892d2b7315cb5fba6cd5cb969/src/device.rs | src/device.rs | #![allow(clippy::let_unit_value)]
use futures_core::Stream;
use futures_lite::StreamExt;
use crate::error::ErrorKind;
#[cfg(feature = "l2cap")]
use crate::l2cap_channel::L2capChannel;
use crate::pairing::PairingAgent;
use crate::{sys, DeviceId, Error, Result, Service, Uuid};
/// A Bluetooth LE device
#[derive(Debug,... | rust | Apache-2.0 | 37e353d778b43d4892d2b7315cb5fba6cd5cb969 | 2026-01-04T20:23:19.181316Z | false |
alexmoon/bluest | https://github.com/alexmoon/bluest/blob/37e353d778b43d4892d2b7315cb5fba6cd5cb969/src/bluer.rs | src/bluer.rs | pub mod adapter;
pub mod characteristic;
pub mod descriptor;
pub mod device;
pub mod l2cap_channel;
pub mod service;
mod error;
/// A platform-specific device identifier.
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub stru... | rust | Apache-2.0 | 37e353d778b43d4892d2b7315cb5fba6cd5cb969 | 2026-01-04T20:23:19.181316Z | false |
alexmoon/bluest | https://github.com/alexmoon/bluest/blob/37e353d778b43d4892d2b7315cb5fba6cd5cb969/src/characteristic.rs | src/characteristic.rs | use futures_core::Stream;
use crate::{sys, CharacteristicProperties, Descriptor, Result, Uuid};
/// A Bluetooth GATT characteristic
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct Characteristic(pub(crate) sys::characteristic::CharacteristicImpl);
impl Characteristic {
/// The [`Uuid`] identifying the ty... | rust | Apache-2.0 | 37e353d778b43d4892d2b7315cb5fba6cd5cb969 | 2026-01-04T20:23:19.181316Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.