Home
last modified time | relevance | path

Searched refs:AsCborValue (Results 1 – 21 of 21) sorted by relevance

/system/keymint/wire/src/
Dtypes.rs8 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 …]
Drpc.rs4 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)]
Dsecureclock.rs3 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)]
Dsharedsecret.rs3 use crate::{cbor_type_error, AsCborValue, CborError};
9 use kmr_derive::AsCborValue;
14 #[derive(Debug, Clone, Eq, Hash, PartialEq, Default, AsCborValue)]
Dlib.rs292 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 …]
Dkeymint.rs16 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/
Dintegration_test.rs1 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/
Dtests.rs2 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/
Dkeyblob.rs11 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)]
Dcrypto.rs12 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/
Dlib.rs14 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()
Dkeymint.rs9 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/
Dmessage.rs4 use kmr_wire::AsCborValue;
/system/keymint/derive/src/
Dlib.rs11 #[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/
Dcddl-dump.rs7 fn show_schema<T: kmr_wire::AsCborValue>() { in show_schema() argument
Dkeyblob-cddl-dump.rs15 fn add<T: kmr_wire::AsCborValue>(&mut self, sample: T) { in add()
/system/security/diced/sample_inputs/src/
Dsample_inputs.rs20 use coset::{iana, Algorithm, AsCborValue, CoseKey, KeyOperation, KeyType, Label};
/system/keymint/ta/src/
Dtests.rs12 AsCborValue,
Ddevice.rs3 use crate::coset::{iana, AsCborValue, CoseSign1Builder, HeaderBuilder};
Drkp.rs5 cbor::value::Value, iana, AsCborValue, CborSerializable, CoseKey, CoseMac0, CoseMac0Builder,
/system/keymint/
DREADME.md18 `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 |