• Home
  • Raw
  • Download

Lines Matching refs:KeyParameterValue

103     KeyParameterValue::KeyParameterValue as KmKeyParameterValue, KeyPurpose::KeyPurpose,
781 pub enum KeyParameterValue {
977 impl From<&KmKeyParameter> for KeyParameterValue { implementation
986 value: KeyParameterValue,
992 pub fn new(value: KeyParameterValue, security_level: SecurityLevel) -> Self { in new() argument
1008 value: KeyParameterValue::new_from_sql(tag_val, data)?, in new_from_sql()
1019 pub fn key_parameter_value(&self) -> &KeyParameterValue { in key_parameter_value() argument
1107 check_field_matches_tag_type(&KeyParameterValue::make_field_matches_tag_type_test_vector()); in key_parameter_value_field_matches_tag_type()
1119 KeyParameterValue::Algorithm(Algorithm::RSA), in test_key_parameter()
1127 KeyParameterValue::Algorithm(Algorithm::RSA) in test_key_parameter()
1164 assert_eq!(*key_param.key_parameter_value(), KeyParameterValue::Algorithm(Algorithm::RSA)); in test_new_from_sql_enum_i32()
1177 assert_eq!(*key_param.key_parameter_value(), KeyParameterValue::KeySize(1024)); in test_new_from_sql_i32()
1198 KeyParameterValue::RSAPublicExponent(i64::MAX) in test_new_from_sql_i64()
1211 assert_eq!(*key_param.key_parameter_value(), KeyParameterValue::CallerNonce); in test_new_from_sql_bool()
1233 KeyParameterValue::ApplicationID(app_id_bytes) in test_new_from_sql_vec_u8()
1244 KeyParameterValue::Algorithm(Algorithm::RSA), in test_to_sql_enum_i32()
1259 let kp = KeyParameter::new(KeyParameterValue::KeySize(1024), SecurityLevel::STRONGBOX); in test_to_sql_i32()
1274 KeyParameterValue::RSAPublicExponent(i64::MAX), in test_to_sql_i64()
1290 KeyParameterValue::ApplicationID(String::from("MyAppID").into_bytes()), in test_to_sql_vec_u8()
1305 let kp = KeyParameter::new(KeyParameterValue::CallerNonce, SecurityLevel::STRONGBOX); in test_to_sql_bool()
1414 let kp = KeyParameter::new(KeyParameterValue::Invalid, SecurityLevel::STRONGBOX); in test_convert_to_wire_invalid()
1422 let kp = KeyParameter::new(KeyParameterValue::CallerNonce, SecurityLevel::STRONGBOX); in test_convert_to_wire_bool()
1431 KeyParameterValue::KeyPurpose(KeyPurpose::ENCRYPT), in test_convert_to_wire_integer()
1445 KeyParameter::new(KeyParameterValue::UserSecureID(i64::MAX), SecurityLevel::STRONGBOX); in test_convert_to_wire_long_integer()
1457 KeyParameterValue::ConfirmationToken(String::from("ConfirmationToken").into_bytes()), in test_convert_to_wire_blob()
1473 assert_eq!(KeyParameterValue::Invalid, aidl_kp.into()); in test_convert_from_wire_invalid()
1479 assert_eq!(KeyParameterValue::CallerNonce, aidl_kp.into()); in test_convert_from_wire_bool()
1487 assert_eq!(KeyParameterValue::KeyPurpose(KeyPurpose::ENCRYPT), aidl_kp.into()); in test_convert_from_wire_integer()
1495 assert_eq!(KeyParameterValue::UserSecureID(i64::MAX), aidl_kp.into()); in test_convert_from_wire_long_integer()
1504 KeyParameterValue::ConfirmationToken(String::from("ConfirmationToken").into_bytes()), in test_convert_from_wire_blob()