Home
last modified time | relevance | path

Searched refs:csr (Results 1 – 8 of 8) sorted by relevance

/tools/security/remote_provisioning/hwtrust/src/rkp/
Dfactory_csr.rs14 pub csr: Csr, field
41 let csr = Csr::from_base64_cbor(session, &base64)?; in from_map() localVariable
42 Ok(Self { csr, name }) in from_map()
49 use crate::cbor::rkp::csr::testutil::{parse_pem_public_key_or_panic, test_device_info};
71 let csr = FactoryCsr::from_json(&Session::default(), &json).unwrap(); in from_json_valid_v2_ed25519() localVariable
112 csr, in from_json_valid_v2_ed25519()
114 csr: Csr::V2 { in from_json_valid_v2_ed25519()
128 let csr = FactoryCsr::from_json(&Session::default(), &json).unwrap(); in from_json_valid_v3_ed25519() localVariable
129 if let Csr::V3 { device_info, dice_chain } = csr.csr { in from_json_valid_v3_ed25519()
139 panic!("Parsed CSR was not V3: {:?}", csr); in from_json_valid_v3_ed25519()
[all …]
/tools/security/remote_provisioning/hwtrust/src/cbor/rkp/
Dcsr.rs41 mut csr: Vec<Value>, in v2_from_cbor_values()
45 FieldValue::from_optional_value("MacedKeysToSign", csr.pop()).into_cose_mac0()?; in v2_from_cbor_values()
47 FieldValue::from_optional_value("ProtectedData", csr.pop()).into_cose_encrypt()?; in v2_from_cbor_values()
48 let challenge = FieldValue::from_optional_value("Challenge", csr.pop()).into_bytes()?; in v2_from_cbor_values()
79 mut csr: Vec<Value>, in v3_from_authenticated_request()
88 if csr.len() == 5 { in v3_from_authenticated_request()
89 FieldValue::from_optional_value("UnverifiedDeviceInfo", csr.pop()); in v3_from_authenticated_request()
93 FieldValue::from_optional_value("SignedData", csr.pop()).into_cose_sign1()?; in v3_from_authenticated_request()
95 Chain::from_value(session, csr.pop().ok_or(anyhow!("Missing DiceCertChain"))?)?; in v3_from_authenticated_request()
129 use crate::cbor::rkp::csr::testutil::{parse_pem_public_key_or_panic, test_device_info};
[all …]
/tools/security/remote_provisioning/hwtrust/
DREADME.md39 a "CSR" that contains a full DICE chain and other device properties. The `factory-csr`
44 hwtrust factory-csr csr.json
/tools/security/remote_provisioning/hwtrust/src/
Drkp.rs3 mod csr; module
8 pub use csr::Csr;
Dmain.rs152 let csr = rkp::FactoryCsr::from_json(&session, &line)?; in parse_factory_csr() localVariable
167 let csr = rkp::Csr::from_cbor(&session, input)?; in parse_csr() localVariable
/tools/netsim/rust/proto/src/
Dconfiguration.rs574 pub csr: ::std::option::Option<bool>, field
595 pub fn csr(&self) -> bool { in csr() method
596 self.csr.unwrap_or(false) in csr()
600 self.csr = ::std::option::Option::None; in clear_csr()
604 self.csr.is_some() in has_csr()
609 self.csr = ::std::option::Option::Some(v); in set_csr()
636 |m: &VendorFeatures| { &m.csr }, in generated_message_descriptor_data()
637 |m: &mut VendorFeatures| { &mut m.csr }, in generated_message_descriptor_data()
663 self.csr = ::std::option::Option::Some(is.read_bool()?); in merge_from()
680 if let Some(v) = self.csr { in compute_size()
[all …]
/tools/security/remote_provisioning/hwtrust/src/cbor/
Drkp.rs3 pub(crate) mod csr; module
/tools/netsim/ui/ts/rootcanal/
Dconfiguration.ts42 csr: boolean; property