Home
last modified time | relevance | path

Searched refs:KeySizeInBits (Results 1 – 20 of 20) sorted by relevance

/system/keymint/common/src/crypto/
Dhmac.rs5 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()
Ddes.rs9 KeySizeInBits,
17 pub const KEY_SIZE_BITS: KeySizeInBits = KeySizeInBits(168);
Drsa.rs3 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()
Daes.rs8 use kmr_wire::KeySizeInBits;
49 pub fn size(&self) -> KeySizeInBits { in size() argument
50 KeySizeInBits(match self { in size()
Dtraits.rs6 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
Dec.rs7 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/
Dtests.rs4 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()
Dlegacy.rs12 KeySizeInBits, RsaExponent,
343 Tag::KeySize => KeyParam::KeySize(KeySizeInBits(consume_u32(data)?)), in deserialize()
/system/keymint/common/src/
Dtag.rs14 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 …]
Dcrypto.rs14 use kmr_wire::{cbor, cbor_type_error, AsCborValue, CborError, KeySizeInBits, RsaExponent};
55 Hmac(KeySizeInBits),
56 Rsa(KeySizeInBits, RsaExponent),
/system/keymint/common/src/bin/
Dcddl-dump.rs18 show_schema::<kmr_wire::KeySizeInBits>(); in main()
Dkeyblob-cddl-dump.rs119 schema.add(kmr_wire::KeySizeInBits(256)); in main()
/system/keymint/common/src/keyblob/
Dkeyblob.cddl84 [805306371, KeySizeInBits], ; Tag_KeySize
270 KeySizeInBits = int
/system/keymint/ta/src/
Drkp.rs29 types::KeySizeInBits,
36 KeyParam::KeySize(KeySizeInBits(256)),
Dcert.rs23 KeySizeInBits, RsaExponent,
712 KeySizeInBits, in decode_value_from_bytes()
/system/keymint/boringssl/src/
Drsa.rs13 use kmr_wire::{keymint, keymint::Digest, KeySizeInBits, RsaExponent};
36 key_size: KeySizeInBits, in generate_key() argument
/system/keymint/common/
Dgenerated.cddl2 KeySizeInBits = int
322 [805306371, KeySizeInBits], ; Tag_KeySize
/system/keymint/wire/src/
Dkeymint.rs16 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()
Dtypes.rs20 pub struct KeySizeInBits(pub u32); struct
/system/keymint/hal/src/
Dhal.rs26 use kmr_wire::{keymint::DateTime, keymint::KeyParam, KeySizeInBits, RsaExponent};
506 Some(KeyParam::KeySize(KeySizeInBits(value_of!(val, Integer)? as u32))) in try_fromm()