/system/keymint/wire/src/ |
D | keymint.rs | 98 fn to_cbor_value(self) -> coset::Result<cbor::value::Value> { in to_cbor_value() method 99 <Self as AsCborValue>::to_cbor_value(self).map_err(|e| e.into()) in to_cbor_value() 118 fn to_cbor_value(self) -> Result<cbor::value::Value, CborError> { in to_cbor_value() method 119 self.ms_since_epoch.to_cbor_value() in to_cbor_value() 627 fn to_cbor_value(self) -> Result<cbor::value::Value, crate::CborError> { in to_cbor_value() method 629 KeyParam::Algorithm(v) => (Tag::Algorithm, v.to_cbor_value()?), in to_cbor_value() 630 KeyParam::BlockMode(v) => (Tag::BlockMode, v.to_cbor_value()?), in to_cbor_value() 631 KeyParam::Padding(v) => (Tag::Padding, v.to_cbor_value()?), in to_cbor_value() 632 KeyParam::Digest(v) => (Tag::Digest, v.to_cbor_value()?), in to_cbor_value() 633 KeyParam::EcCurve(v) => (Tag::EcCurve, v.to_cbor_value()?), in to_cbor_value() [all …]
|
D | lib.rs | 315 fn to_cbor_value(self) -> Result<cbor::value::Value, CborError>; in to_cbor_value() method 325 cbor::ser::into_writer(&self.to_cbor_value()?, &mut data)?; in into_vec() 368 fn to_cbor_value(self) -> Result<cbor::value::Value, CborError> { in to_cbor_value() method 371 alloc::boxed::Box::new(coset::AsCborValue::to_cbor_value(self)?), in to_cbor_value() 393 fn to_cbor_value(self) -> Result<cbor::value::Value, CborError> { in to_cbor_value() method 395 Some(t) => Ok(cbor::value::Value::Array(vec_try![t.to_cbor_value()?]?)), in to_cbor_value() 416 fn to_cbor_value(self) -> Result<cbor::value::Value, CborError> { in to_cbor_value() method 417 let values: Result<Vec<_>, _> = self.into_iter().map(|v| v.to_cbor_value()).collect(); in to_cbor_value() 434 fn to_cbor_value(self) -> Result<cbor::value::Value, CborError> { in to_cbor_value() method 453 fn to_cbor_value(self) -> Result<cbor::value::Value, CborError> { in to_cbor_value() method [all …]
|
D | types.rs | 496 fn to_cbor_value(self) -> Result<$crate::cbor::value::Value, crate::CborError> { 542 fn to_cbor_value(self) -> Result<cbor::value::Value, CborError> { 546 $cenum::$cname.to_cbor_value()?, 547 val.to_cbor_value()? 580 fn to_cbor_value(self) -> Result<cbor::value::Value, CborError> { 584 $cenum::$cname.to_cbor_value()?, 585 val.to_cbor_value()?
|
/system/authgraph/wire/src/ |
D | cbor.rs | 115 fn to_cbor_value(self) -> Result<Value, CborError>; in to_cbor_value() method 125 ciborium::ser::into_writer(&self.to_cbor_value()?, &mut data)?; in into_vec() 143 fn to_cbor_value(self) -> Result<Value, CborError> { in to_cbor_value() method 145 Some(t) => Ok(Value::Array(vec![t.to_cbor_value()?])), in to_cbor_value() 161 fn to_cbor_value(self) -> Result<Value, CborError> { in to_cbor_value() method 162 let values: Result<Vec<_>, _> = self.into_iter().map(|v| v.to_cbor_value()).collect(); in to_cbor_value() 174 fn to_cbor_value(self) -> Result<Value, CborError> { in to_cbor_value() method 186 fn to_cbor_value(self) -> Result<Value, CborError> { in to_cbor_value() method
|
D | lib.rs | 166 fn to_cbor_value(self) -> Result<Value, CborError> { in to_cbor_value() method 168 Self::Create(req) => vec![req.value(), req.to_cbor_value()?], in to_cbor_value() 169 Self::Init(req) => vec![req.value(), req.to_cbor_value()?], in to_cbor_value() 170 Self::Finish(req) => vec![req.value(), req.to_cbor_value()?], in to_cbor_value() 171 Self::AuthenticationComplete(req) => vec![req.value(), req.to_cbor_value()?], in to_cbor_value() 213 fn to_cbor_value(self) -> Result<Value, CborError> { in to_cbor_value() method 215 Self::Create(req) => vec![req.value(), req.to_cbor_value()?], in to_cbor_value() 216 Self::Init(req) => vec![req.value(), req.to_cbor_value()?], in to_cbor_value() 217 Self::Finish(req) => vec![req.value(), req.to_cbor_value()?], in to_cbor_value() 218 Self::AuthenticationComplete(req) => vec![req.value(), req.to_cbor_value()?], in to_cbor_value()
|
/system/secretkeeper/comm/src/ |
D | wire.rs | 52 fn to_cbor_value(self) -> Result<Value, CoseError> { in to_cbor_value() method 55 vec![OpCode::SecretManagement.to_cbor_value()?, Value::Bytes(encrypt0)] in to_cbor_value() 59 OpCode::DeleteIds.to_cbor_value()?, in to_cbor_value() 65 Self::DeleteAll => vec![OpCode::DeleteAll.to_cbor_value()?, Value::Null], in to_cbor_value() 117 fn to_cbor_value(self) -> Result<Value, CoseError> { in to_cbor_value() method 149 fn to_cbor_value(self) -> Result<Value, CoseError> { in to_cbor_value() method 152 Value::Array(vec![Value::Integer(0.into()), rsp.to_cbor_value()?]) in to_cbor_value() 194 fn to_cbor_value(self) -> Result<Value, CoseError> { in to_cbor_value() method
|
/system/keymint/derive/tests/ |
D | integration_test.rs | 27 let want_value = want.clone().to_cbor_value().unwrap(); in test_derive_named_struct_roundtrip() 40 let want_value = want.clone().to_cbor_value().unwrap(); in test_derive_unnamed_struct_roundtrip() 57 let want_value = want.clone().to_cbor_value().unwrap(); in test_derive_numeric_enum_roundtrip()
|
/system/secretkeeper/dice_policy/src/ |
D | lib.rs | 123 fn to_cbor_value(self) -> Result<Value, CoseError> { in to_cbor_value() method 151 fn to_cbor_value(self) -> Result<Value, CoseError> { in to_cbor_value() method 156 .map(Constraint::to_cbor_value) in to_cbor_value() 186 fn to_cbor_value(self) -> Result<Value, CoseError> { in to_cbor_value() method 190 res.push(node_cons.to_cbor_value()?) in to_cbor_value()
|
/system/secretkeeper/comm/src/data_types/ |
D | packet.rs | 65 fn to_cbor_value(self) -> Result<Value, CoseError> { in to_cbor_value() method 110 fn to_cbor_value(self) -> Result<Value, CoseError> { in to_cbor_value() method
|
D | mod.rs | 55 fn to_cbor_value(self) -> Result<Value, CoseError> { in to_cbor_value() method 83 fn to_cbor_value(self) -> Result<Value, CoseError> { in to_cbor_value() method
|
/system/authgraph/core/src/ |
D | key.rs | 501 fn to_cbor_value(self) -> Result<Value, CoseError> { in to_cbor_value() method 634 fn to_cbor_value(mut self) -> Result<Value, CoseError> { in to_cbor_value() method 648 array.push(dice_chain_entry.to_cbor_value()?); in to_cbor_value() 666 fn to_cbor_value(self) -> Result<Value, CoseError> { in to_cbor_value() method 671 self.signature.to_cbor_value() in to_cbor_value() 733 fn to_cbor_value(self) -> Result<Value, CoseError> { in to_cbor_value() method 908 fn to_cbor_value(self) -> Result<Value, CoseError> { in to_cbor_value() method 970 fn to_cbor_value(self) -> Result<Value, CoseError> { in to_cbor_value() method 986 fn to_cbor_value(self) -> Result<Value, CoseError> { in to_cbor_value() method 1008 fn to_cbor_value(self) -> Result<Value, CoseError> { in to_cbor_value() method
|
D | arc.rs | 218 fn to_cbor_value(self) -> Result<Value, CoseError> { in to_cbor_value() method
|
D | keyexchange.rs | 428 .to_cbor_value()?;
|
/system/keymint/hal/src/hal/ |
D | tests.rs | 52 let obj_val = obj.clone().to_cbor_value().unwrap(); in test_cbor_value_roundtrip() 114 let obj_val = obj.clone().to_cbor_value().unwrap(); in test_unnamed_cbor_value_roundtrip()
|
/system/authgraph/derive/src/ |
D | lib.rs | 47 fn to_cbor_value(self) -> Result<ciborium::value::Value, CborError> { in derive_as_cbor_value_internal() 87 v.push(AsCborValue::to_cbor_value(self.#name)?) in to_val_struct()
|
/system/secretkeeper/core/src/ |
D | store.rs | 218 fn to_cbor_value(self) -> Result<Value, CoseError> { in to_cbor_value() method 219 Ok(Value::Array(vec![self.secret.to_cbor_value()?, Value::from(self.sealing_policy)])) in to_cbor_value()
|
/system/keymint/derive/src/ |
D | lib.rs | 48 fn to_cbor_value(self) -> Result<ciborium::value::Value, CborError> { in derive_as_cbor_value_internal() 94 v.push(AsCborValue::to_cbor_value(self.#name)?) in to_val_struct() 111 self.0.to_cbor_value() in to_val_struct() 130 v.push(AsCborValue::to_cbor_value(self.#index)?) in to_val_struct()
|
/system/keymint/common/src/ |
D | keyblob.rs | 94 fn to_cbor_value(self) -> Result<cbor::value::Value, CborError> { in to_cbor_value() method 97 vec_try![Version::V1.to_cbor_value()?, inner.to_cbor_value()?] in to_cbor_value()
|
D | crypto.rs | 332 fn to_cbor_value(self) -> Result<cbor::value::Value, CborError> { in to_cbor_value() method
|
/system/secretkeeper/dice_policy/tests/ |
D | test.rs | 212 .to_cbor_value() in get_dice_chain_helper() 230 .to_cbor_value() in get_dice_chain_helper()
|
/system/keymint/hal/src/ |
D | lib.rs | 165 <R>::CODE.to_cbor_value().map_err(failed_cbor)?, in channel_execute() 166 req.to_cbor_value().map_err(failed_cbor)?, in channel_execute()
|
/system/keymint/ta/src/ |
D | device.rs | 255 let signed_data_cbor = signed_data.to_cbor_value().map_err(CborError::from)?; in sign_data_in_cose_sign1()
|