Home
last modified time | relevance | path

Searched refs:to_cbor_value (Results 1 – 11 of 11) sorted by relevance

/system/keymint/wire/src/
Dkeymint.rs78 fn to_cbor_value(self) -> coset::Result<cbor::value::Value> { in to_cbor_value() method
79 <Self as AsCborValue>::to_cbor_value(self).map_err(|e| e.into()) in to_cbor_value()
98 fn to_cbor_value(self) -> Result<cbor::value::Value, CborError> { in to_cbor_value() method
99 self.ms_since_epoch.to_cbor_value() in to_cbor_value()
600 fn to_cbor_value(self) -> Result<cbor::value::Value, crate::CborError> { in to_cbor_value() method
602 KeyParam::Algorithm(v) => (Tag::Algorithm, v.to_cbor_value()?), in to_cbor_value()
603 KeyParam::BlockMode(v) => (Tag::BlockMode, v.to_cbor_value()?), in to_cbor_value()
604 KeyParam::Padding(v) => (Tag::Padding, v.to_cbor_value()?), in to_cbor_value()
605 KeyParam::Digest(v) => (Tag::Digest, v.to_cbor_value()?), in to_cbor_value()
606 KeyParam::EcCurve(v) => (Tag::EcCurve, v.to_cbor_value()?), in to_cbor_value()
[all …]
Dlib.rs297 fn to_cbor_value(self) -> Result<cbor::value::Value, CborError>; in to_cbor_value() method
307 cbor::ser::into_writer(&self.to_cbor_value()?, &mut data)?; in into_vec()
350 fn to_cbor_value(self) -> Result<cbor::value::Value, CborError> { in to_cbor_value() method
353 alloc::boxed::Box::new(coset::AsCborValue::to_cbor_value(self)?), in to_cbor_value()
375 fn to_cbor_value(self) -> Result<cbor::value::Value, CborError> { in to_cbor_value() method
377 Some(t) => Ok(cbor::value::Value::Array(vec_try![t.to_cbor_value()?]?)), in to_cbor_value()
398 fn to_cbor_value(self) -> Result<cbor::value::Value, CborError> { in to_cbor_value() method
399 let values: Result<Vec<_>, _> = self.into_iter().map(|v| v.to_cbor_value()).collect(); in to_cbor_value()
416 fn to_cbor_value(self) -> Result<cbor::value::Value, CborError> { in to_cbor_value() method
435 fn to_cbor_value(self) -> Result<cbor::value::Value, CborError> { in to_cbor_value() method
[all …]
Dtypes.rs456 fn to_cbor_value(self) -> Result<$crate::cbor::value::Value, crate::CborError> {
502 fn to_cbor_value(self) -> Result<cbor::value::Value, CborError> {
506 $cenum::$cname.to_cbor_value()?,
507 val.to_cbor_value()?
540 fn to_cbor_value(self) -> Result<cbor::value::Value, CborError> {
544 $cenum::$cname.to_cbor_value()?,
545 val.to_cbor_value()?
/system/keymint/derive/tests/
Dintegration_test.rs13 let want_value = want.clone().to_cbor_value().unwrap(); in test_derive_named_struct_roundtrip()
26 let want_value = want.clone().to_cbor_value().unwrap(); in test_derive_unnamed_struct_roundtrip()
43 let want_value = want.clone().to_cbor_value().unwrap(); in test_derive_numeric_enum_roundtrip()
/system/keymint/hal/src/hal/
Dtests.rs38 let obj_val = obj.clone().to_cbor_value().unwrap(); in test_cbor_value_roundtrip()
100 let obj_val = obj.clone().to_cbor_value().unwrap(); in test_unnamed_cbor_value_roundtrip()
/system/keymint/derive/src/
Dlib.rs34 fn to_cbor_value(self) -> Result<ciborium::value::Value, CborError> { in derive_as_cbor_value_internal()
80 v.push(AsCborValue::to_cbor_value(self.#name)?) in to_val_struct()
97 self.0.to_cbor_value() in to_val_struct()
116 v.push(AsCborValue::to_cbor_value(self.#index)?) in to_val_struct()
/system/keymint/common/src/
Dkeyblob.rs76 fn to_cbor_value(self) -> Result<cbor::value::Value, CborError> { in to_cbor_value() method
79 vec_try![Version::V1.to_cbor_value()?, inner.to_cbor_value()?] in to_cbor_value()
Dcrypto.rs298 fn to_cbor_value(self) -> Result<cbor::value::Value, CborError> { in to_cbor_value() method
/system/keymint/hal/src/
Dlib.rs151 <R>::CODE.to_cbor_value().map_err(failed_cbor)?, in channel_execute()
152 req.to_cbor_value().map_err(failed_cbor)?, in channel_execute()
/system/security/diced/sample_inputs/src/
Dsample_inputs.rs91 key.to_cbor_value() in ed25519_public_key_to_cbor_value()
/system/keymint/ta/src/
Ddevice.rs232 let signed_data_cbor = signed_data.to_cbor_value().map_err(CborError::from)?; in sign_data_in_cose_sign1()