/system/keymint/common/src/crypto/ |
D | hmac.rs | 5 use kmr_wire::KeySizeInBits; 21 fn valid_size(key_size: KeySizeInBits, max_size_bits: usize) -> Result<(), Error> { in valid_size() argument 32 pub fn valid_hal_size(key_size: KeySizeInBits) -> Result<(), Error> { in valid_hal_size() 37 pub fn valid_strongbox_hal_size(key_size: KeySizeInBits) -> Result<(), Error> { in valid_strongbox_hal_size() 53 pub fn size(&self) -> KeySizeInBits { in size() argument 54 KeySizeInBits((self.0.len() * 8) as u32) in size()
|
D | des.rs | 9 KeySizeInBits, 17 pub const KEY_SIZE_BITS: KeySizeInBits = KeySizeInBits(168);
|
D | rsa.rs | 3 use super::{KeyMaterial, KeySizeInBits, OpaqueOr, RsaExponent}; 181 pub fn import_pkcs8_key(data: &[u8]) -> Result<(KeyMaterial, KeySizeInBits, RsaExponent), Error> { in import_pkcs8_key() argument 198 ) -> Result<(KeyMaterial, KeySizeInBits, RsaExponent), Error> { in import_pkcs1_key() argument 219 Ok((KeyMaterial::Rsa(key.into()), KeySizeInBits(key_size), RsaExponent(pub_exponent))) in import_pkcs1_key()
|
D | aes.rs | 8 use kmr_wire::KeySizeInBits; 49 pub fn size(&self) -> KeySizeInBits { in size() argument 50 KeySizeInBits(match self { in size()
|
D | traits.rs | 6 use kmr_wire::{keymint, keymint::Digest, KeySizeInBits, RsaExponent}; 115 ) -> Result<(KeyMaterial, KeySizeInBits), Error> { in import_key() argument 182 key_size: KeySizeInBits, in generate_key() argument 199 ) -> Result<(KeyMaterial, KeySizeInBits), Error> { in import_key() argument 231 key_size: KeySizeInBits, in generate_key() argument 243 ) -> Result<(KeyMaterial, KeySizeInBits, RsaExponent), Error> { in import_pkcs8_key() argument 563 _key_size: KeySizeInBits, in generate_key() argument
|
D | ec.rs | 7 use kmr_wire::{coset, keymint::EcCurve, rpc, KeySizeInBits}; 342 pub fn curve_to_key_size(curve: EcCurve) -> KeySizeInBits { in curve_to_key_size() argument 343 KeySizeInBits(match curve { in curve_to_key_size()
|
/system/keymint/common/src/tag/ |
D | tests.rs | 4 use kmr_wire::{keymint::KeyParam, KeySizeInBits}; 34 KeyParam::KeySize(KeySizeInBits(256)), in test_legacy_serialization() 57 KeyParam::KeySize(KeySizeInBits(128)), in test_check_begin_params_fail()
|
D | legacy.rs | 12 KeySizeInBits, RsaExponent, 343 Tag::KeySize => KeyParam::KeySize(KeySizeInBits(consume_u32(data)?)), in deserialize()
|
/system/keymint/common/src/ |
D | tag.rs | 14 KeySizeInBits, 364 fn check_rsa_key_size(key_size: KeySizeInBits, sec_level: SecurityLevel) -> Result<(), Error> { in check_rsa_key_size() argument 367 KeySizeInBits(512) if sec_level != SecurityLevel::Strongbox => Ok(()), in check_rsa_key_size() 368 KeySizeInBits(768) if sec_level != SecurityLevel::Strongbox => Ok(()), in check_rsa_key_size() 369 KeySizeInBits(1024) if sec_level != SecurityLevel::Strongbox => Ok(()), in check_rsa_key_size() 370 KeySizeInBits(2048) => Ok(()), in check_rsa_key_size() 371 KeySizeInBits(3072) if sec_level != SecurityLevel::Strongbox => Ok(()), in check_rsa_key_size() 372 KeySizeInBits(4096) if sec_level != SecurityLevel::Strongbox => Ok(()), in check_rsa_key_size() 619 EcCurve::P224 if *key_size == KeySizeInBits(224) => {} in check_ec_params() 620 EcCurve::P256 if *key_size == KeySizeInBits(256) => {} in check_ec_params() [all …]
|
D | crypto.rs | 14 use kmr_wire::{cbor, cbor_type_error, AsCborValue, CborError, KeySizeInBits, RsaExponent}; 55 Hmac(KeySizeInBits), 56 Rsa(KeySizeInBits, RsaExponent),
|
/system/keymint/common/src/bin/ |
D | cddl-dump.rs | 18 show_schema::<kmr_wire::KeySizeInBits>(); in main()
|
D | keyblob-cddl-dump.rs | 119 schema.add(kmr_wire::KeySizeInBits(256)); in main()
|
/system/keymint/common/src/keyblob/ |
D | keyblob.cddl | 84 [805306371, KeySizeInBits], ; Tag_KeySize 270 KeySizeInBits = int
|
/system/keymint/ta/src/ |
D | rkp.rs | 29 types::KeySizeInBits, 36 KeyParam::KeySize(KeySizeInBits(256)),
|
D | cert.rs | 23 KeySizeInBits, RsaExponent, 712 KeySizeInBits, in decode_value_from_bytes()
|
/system/keymint/boringssl/src/ |
D | rsa.rs | 13 use kmr_wire::{keymint, keymint::Digest, KeySizeInBits, RsaExponent}; 36 key_size: KeySizeInBits, in generate_key() argument
|
/system/keymint/common/ |
D | generated.cddl | 2 KeySizeInBits = int 322 [805306371, KeySizeInBits], ; Tag_KeySize
|
/system/keymint/wire/src/ |
D | keymint.rs | 16 cbor, cbor_type_error, try_from_n, vec_try, AsCborValue, CborError, KeySizeInBits, RsaExponent, 326 KeySize(KeySizeInBits), 484 Tag::KeySize => KeyParam::KeySize(<KeySizeInBits>::from_cbor_value(raw)?), in from_cbor_value() 768 KeySizeInBits::cddl_ref(), in cddl_schema()
|
D | types.rs | 20 pub struct KeySizeInBits(pub u32); struct
|
/system/keymint/hal/src/ |
D | hal.rs | 26 use kmr_wire::{keymint::DateTime, keymint::KeyParam, KeySizeInBits, RsaExponent}; 506 Some(KeyParam::KeySize(KeySizeInBits(value_of!(val, Integer)? as u32))) in try_fromm()
|