Home
last modified time | relevance | path

Searched refs:KeyGenInfo (Results 1 – 3 of 3) sorted by relevance

/system/keymint/common/src/
Dtag.rs258 ) -> Result<(Vec<KeyCharacteristics>, KeyGenInfo), Error> { in extract_key_gen_characteristics() argument
381 ) -> Result<KeyGenInfo, Error> { in check_rsa_gen_params() argument
388 Ok(KeyGenInfo::Rsa(key_size, public_exponent)) in check_rsa_gen_params()
474 fn check_ec_gen_params(params: &[KeyParam], sec_level: SecurityLevel) -> Result<KeyGenInfo, Error> { in check_ec_gen_params() argument
480 (EcCurve::Curve25519, Some(KeyPurpose::Sign)) => KeyGenInfo::Ed25519, in check_ec_gen_params()
481 (EcCurve::Curve25519, Some(KeyPurpose::AttestKey)) => KeyGenInfo::Ed25519, in check_ec_gen_params()
482 (EcCurve::Curve25519, Some(KeyPurpose::AgreeKey)) => KeyGenInfo::X25519, in check_ec_gen_params()
490 (EcCurve::P224, _) => KeyGenInfo::NistEc(ec::NistCurve::P224), in check_ec_gen_params()
491 (EcCurve::P256, _) => KeyGenInfo::NistEc(ec::NistCurve::P256), in check_ec_gen_params()
492 (EcCurve::P384, _) => KeyGenInfo::NistEc(ec::NistCurve::P384), in check_ec_gen_params()
[all …]
Dcrypto.rs52 pub enum KeyGenInfo { enum
/system/keymint/ta/src/
Dkeys.rs257 crypto::KeyGenInfo::Aes(variant) => { in generate_key_material()
260 crypto::KeyGenInfo::TripleDes => { in generate_key_material()
263 crypto::KeyGenInfo::Hmac(key_size) => { in generate_key_material()
266 crypto::KeyGenInfo::Rsa(key_size, pub_exponent) => { in generate_key_material()
269 crypto::KeyGenInfo::NistEc(curve) => { in generate_key_material()
272 crypto::KeyGenInfo::Ed25519 => { in generate_key_material()
275 crypto::KeyGenInfo::X25519 => { in generate_key_material()