Lines Matching refs:Ok

81     Ok(boot_unique_value.clone())  in get_boot_unique_value()
102 Ok(Self { in new()
116 Ok(KeyPolicy { in get_policy()
128 Ok(Self { in try_clone()
176 Ok(opaque_keybinder) in new_binder()
182 Ok(OpaqueKey { key_header, key_material }) in try_clone()
225 Ok(raw_key) in derive_raw_key_material()
250 KeyLifetime::EPHEMERAL => Ok(true), in derivation_allowed_lifetime()
254 Ok(false) in derivation_allowed_lifetime()
256 Ok(true) in derivation_allowed_lifetime()
262 Ok(true) in derivation_allowed_lifetime()
264 Ok(false) in derivation_allowed_lifetime()
277 KeyMaterial::Hmac(_) => Ok(()), in key_can_be_used_for_derivation()
283 Ok(()) in key_can_be_used_for_derivation()
301 Ok(self.key_header.get_policy()?) in getKeyPolicy()
328 | KeyType::AES_128_CMAC => Ok(()), in check_key_material_with_policy()
344 | KeyType::AES_256_CMAC => Ok(()), in check_key_material_with_policy()
360 KeyType::HMAC_SHA256 => Ok(()), in check_key_material_with_policy()
361 KeyType::HMAC_SHA512 => Ok(()), in check_key_material_with_policy()
374 (2048, KeyType::RSA2048_PSS_SHA256) => Ok(()), in check_key_material_with_policy()
375 (2048, KeyType::RSA2048_PKCS1_5_SHA256) => Ok(()), in check_key_material_with_policy()
386 (EcCurve::P256, KeyType::ECC_NIST_P256_SIGN_NO_PADDING) => Ok(()), in check_key_material_with_policy()
387 (EcCurve::P256, KeyType::ECC_NIST_P256_SIGN_SHA256) => Ok(()), in check_key_material_with_policy()
388 (EcCurve::P521, KeyType::ECC_NIST_P521_SIGN_NO_PADDING) => Ok(()), in check_key_material_with_policy()
389 (EcCurve::P521, KeyType::ECC_NIST_P521_SIGN_SHA512) => Ok(()), in check_key_material_with_policy()
391 (CurveType::EdDsa, KeyType::ECC_ED25519_SIGN) => Ok(()), in check_key_material_with_policy()
428 | KeyType::AES_128_CMAC => Ok(crypto::aes::Variant::Aes128), in get_aes_variant()
433 | KeyType::AES_256_CMAC => Ok(crypto::aes::Variant::Aes256), in get_aes_variant()
446 | KeyType::AES_128_CMAC => Ok(16), in get_key_size_in_bytes()
451 | KeyType::AES_256_CMAC => Ok(32), in get_key_size_in_bytes()
452 KeyType::HMAC_SHA256 => Ok(32), in get_key_size_in_bytes()
453 KeyType::HMAC_SHA512 => Ok(64), in get_key_size_in_bytes()
460 KeyLifetime::EPHEMERAL | KeyLifetime::HARDWARE | KeyLifetime::PORTABLE => Ok(()), in validate_lifetime()
479 | KeyType::HMAC_SHA512 => Ok(()), in check_type_derived_key()
523 crypto::aes::Variant::Aes128 => Ok(KeyMaterial::Aes( in generate_key_material()
530 crypto::aes::Variant::Aes256 => Ok(KeyMaterial::Aes( in generate_key_material()
535 Ok(aes.generate_key(&mut rng, variant, &[])?) in generate_key_material()
549 Ok(KeyMaterial::Hmac(crypto::hmac::Key::new(key_bytes).into())) in generate_key_material()
552 Ok(hmac.generate_key( in generate_key_material()