/system/keymint/wire/src/ |
D | types.rs | 8 use crate::{cbor, cbor_type_error, vec_try, AsCborValue, CborError}; 15 use kmr_derive::AsCborValue; 19 #[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, AsCborValue)] 24 #[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, AsCborValue)] 56 #[derive(Debug, Default, AsCborValue)] 70 #[derive(Debug, AsCborValue)] 72 #[derive(Debug, AsCborValue)] 76 #[derive(Debug, AsCborValue)] 80 #[derive(Debug, AsCborValue)] 82 #[derive(Debug, AsCborValue)] [all …]
|
D | rpc.rs | 4 use crate::{cbor_type_error, try_from_n, AsCborValue, CborError}; 11 use kmr_derive::AsCborValue; 40 #[derive(Clone, Debug, Eq, PartialEq, AsCborValue)] 49 #[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, AsCborValue, N)] 58 #[derive(Clone, Debug, Eq, PartialEq, AsCborValue)] 63 #[derive(Clone, Debug, Eq, PartialEq, AsCborValue)] 68 #[derive(Clone, Debug, Eq, PartialEq, AsCborValue)]
|
D | secureclock.rs | 3 use crate::{cbor_type_error, AsCborValue, CborError}; 9 use kmr_derive::AsCborValue; 13 #[derive(Debug, Clone, Eq, Hash, PartialEq, AsCborValue)] 20 #[derive(Debug, Clone, Copy, Eq, Hash, Ord, PartialEq, PartialOrd, AsCborValue)]
|
D | sharedsecret.rs | 3 use crate::{cbor_type_error, AsCborValue, CborError}; 9 use kmr_derive::AsCborValue; 14 #[derive(Debug, Clone, Eq, Hash, PartialEq, Default, AsCborValue)]
|
D | lib.rs | 292 pub trait AsCborValue: Sized { interface 339 impl AsCborValue for coset::CoseEncrypt0 { 343 <coset::CoseEncrypt0 as coset::AsCborValue>::from_cbor_value(*inner_value) in from_cbor_value() 353 alloc::boxed::Box::new(coset::AsCborValue::to_cbor_value(self)?), in to_cbor_value() 362 impl<T: AsCborValue> AsCborValue for Option<T> { 388 impl<T: AsCborValue> AsCborValue for Vec<T> { 408 impl AsCborValue for Vec<u8> { 425 impl<const N: usize> AsCborValue for [u8; N] { impl 449 impl AsCborValue for String { 466 impl AsCborValue for u64 { [all …]
|
D | keymint.rs | 16 cbor, cbor_type_error, try_from_n, vec_try, AsCborValue, CborError, KeySizeInBits, RsaExponent, 22 use kmr_derive::{AsCborValue, FromRawTag}; 45 #[derive(Clone, Copy, Debug, PartialEq, Eq, N, AsCborValue)] 63 #[derive(Clone, Debug, AsCborValue, PartialEq, Eq)] 74 impl coset::AsCborValue for BootInfo { 76 <Self as AsCborValue>::from_cbor_value(value).map_err(|e| e.into()) in from_cbor_value() 79 <Self as AsCborValue>::to_cbor_value(self).map_err(|e| e.into()) in to_cbor_value() 93 impl AsCborValue for DateTime { 109 #[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, AsCborValue, N)] 120 #[derive(Clone, Debug, Eq, PartialEq, AsCborValue)] [all …]
|
/system/keymint/derive/tests/ |
D | integration_test.rs | 1 use kmr_derive::AsCborValue; 2 use kmr_wire::{cbor_type_error, AsCborValue, CborError}; 4 #[derive(Clone, Debug, PartialEq, Eq, AsCborValue)] 20 #[derive(Clone, Debug, PartialEq, Eq, AsCborValue)] 33 #[derive(Clone, Debug, PartialEq, Eq, AsCborValue)]
|
/system/keymint/hal/src/hal/ |
D | tests.rs | 2 use kmr_derive::AsCborValue; 3 use kmr_wire::{cbor_type_error, AsCborValue, CborError}; 5 #[derive(Debug, Clone, PartialEq, Eq, AsCborValue)] 10 #[derive(Debug, Clone, PartialEq, Eq, AsCborValue)] 81 #[derive(Debug, Clone, PartialEq, Eq, AsCborValue)]
|
/system/keymint/common/src/ |
D | keyblob.rs | 11 use kmr_derive::AsCborValue; 15 use kmr_wire::{cbor, cbor_type_error, AsCborValue, CborError}; 30 #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug, AsCborValue)] 34 #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug, AsCborValue)] 64 impl AsCborValue for EncryptedKeyBlob { 99 #[derive(Clone, Debug, AsCborValue)] 161 #[derive(Clone, PartialEq, Eq, AsCborValue, ZeroizeOnDrop)] 248 #[derive(Debug, Clone, AsCborValue)]
|
D | crypto.rs | 12 use kmr_derive::AsCborValue; 14 use kmr_wire::{cbor, cbor_type_error, AsCborValue, CborError, KeySizeInBits, RsaExponent}; 63 #[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, AsCborValue, N)] 196 impl AsCborValue for KeyMaterial {
|
/system/keymint/hal/src/ |
D | lib.rs | 14 cbor, cbor_type_error, keymint::ErrorCode, keymint::NEXT_MESSAGE_SIGNAL_TRUE, AsCborValue, 145 R: AsCborValue + Code<KeyMintOperation>, in channel_execute() 146 S: AsCborValue + Code<KeyMintOperation>, in channel_execute() 240 R: AsCborValue + Code<KeyMintOperation>, in execute() 241 S: AsCborValue + Code<KeyMintOperation>, in execute()
|
D | keymint.rs | 9 use kmr_wire::{keymint::KeyParam, AsCborValue, *}; 290 R: AsCborValue + Code<KeyMintOperation>, in execute() 291 S: AsCborValue + Code<KeyMintOperation>, in execute()
|
/system/keymint/wire/fuzz/fuzz_targets/ |
D | message.rs | 4 use kmr_wire::AsCborValue;
|
/system/keymint/derive/src/ |
D | lib.rs | 11 #[proc_macro_derive(AsCborValue)] 30 impl #impl_generics AsCborValue for #name #ty_generics #where_clause { in derive_as_cbor_value_internal() 54 type_param.bounds.push(parse_quote!(AsCborValue)); in add_trait_bounds() 80 v.push(AsCborValue::to_cbor_value(self.#name)?) in to_val_struct() 116 v.push(AsCborValue::to_cbor_value(self.#index)?) in to_val_struct()
|
/system/keymint/common/src/bin/ |
D | cddl-dump.rs | 7 fn show_schema<T: kmr_wire::AsCborValue>() { in show_schema() argument
|
D | keyblob-cddl-dump.rs | 15 fn add<T: kmr_wire::AsCborValue>(&mut self, sample: T) { in add()
|
/system/security/diced/sample_inputs/src/ |
D | sample_inputs.rs | 20 use coset::{iana, Algorithm, AsCborValue, CoseKey, KeyOperation, KeyType, Label};
|
/system/keymint/ta/src/ |
D | tests.rs | 12 AsCborValue,
|
D | device.rs | 3 use crate::coset::{iana, AsCborValue, CoseSign1Builder, HeaderBuilder};
|
D | rkp.rs | 5 cbor::value::Value, iana, AsCborValue, CborSerializable, CoseKey, CoseMac0, CoseMac0Builder,
|
/system/keymint/ |
D | README.md | 18 `kmr_wire::AsCborValue` trait that is used for message serialization. This crate uses `std`, but 43 …`kmr-derive` | Yes (build-only) | Proc macros for deriving the `AsCborValue` trait |
|