• Home
  • Raw
  • Download

Lines Matching refs:kp

565             fn from(kp: KmKeyParameter) -> Self {
566 match kp {
978 fn from(kp: &KmKeyParameter) -> Self { in from()
979 kp.clone().into() in from()
1077 for kp in list_o_parameters.iter() { in check_field_matches_tag_type()
1078 match (&kp.value, get_field_by_tag_type(kp.tag)) { in check_field_matches_tag_type()
1099 kp.tag, actual, expected in check_field_matches_tag_type()
1243 let kp = KeyParameter::new( in test_to_sql_enum_i32() localVariable
1247 store_keyparameter(&db, 1, &kp)?; in test_to_sql_enum_i32()
1249 assert_eq!(kp.get_tag(), key_param.get_tag()); in test_to_sql_enum_i32()
1250 assert_eq!(kp.key_parameter_value(), key_param.key_parameter_value()); in test_to_sql_enum_i32()
1251 assert_eq!(kp.security_level(), key_param.security_level()); in test_to_sql_enum_i32()
1259 let kp = KeyParameter::new(KeyParameterValue::KeySize(1024), SecurityLevel::STRONGBOX); in test_to_sql_i32() localVariable
1260 store_keyparameter(&db, 1, &kp)?; in test_to_sql_i32()
1262 assert_eq!(kp.get_tag(), key_param.get_tag()); in test_to_sql_i32()
1263 assert_eq!(kp.key_parameter_value(), key_param.key_parameter_value()); in test_to_sql_i32()
1264 assert_eq!(kp.security_level(), key_param.security_level()); in test_to_sql_i32()
1273 let kp = KeyParameter::new( in test_to_sql_i64() localVariable
1277 store_keyparameter(&db, 1, &kp)?; in test_to_sql_i64()
1279 assert_eq!(kp.get_tag(), key_param.get_tag()); in test_to_sql_i64()
1280 assert_eq!(kp.key_parameter_value(), key_param.key_parameter_value()); in test_to_sql_i64()
1281 assert_eq!(kp.security_level(), key_param.security_level()); in test_to_sql_i64()
1289 let kp = KeyParameter::new( in test_to_sql_vec_u8() localVariable
1293 store_keyparameter(&db, 1, &kp)?; in test_to_sql_vec_u8()
1295 assert_eq!(kp.get_tag(), key_param.get_tag()); in test_to_sql_vec_u8()
1296 assert_eq!(kp.key_parameter_value(), key_param.key_parameter_value()); in test_to_sql_vec_u8()
1297 assert_eq!(kp.security_level(), key_param.security_level()); in test_to_sql_vec_u8()
1305 let kp = KeyParameter::new(KeyParameterValue::CallerNonce, SecurityLevel::STRONGBOX); in test_to_sql_bool() localVariable
1306 store_keyparameter(&db, 1, &kp)?; in test_to_sql_bool()
1308 assert_eq!(kp.get_tag(), key_param.get_tag()); in test_to_sql_bool()
1309 assert_eq!(kp.key_parameter_value(), key_param.key_parameter_value()); in test_to_sql_bool()
1310 assert_eq!(kp.security_level(), key_param.security_level()); in test_to_sql_bool()
1378 fn store_keyparameter(db: &Connection, key_id: i64, kp: &KeyParameter) -> Result<()> { in store_keyparameter()
1382 params![key_id, kp.get_tag().0, kp.key_parameter_value(), kp.security_level().0], in store_keyparameter()
1414 let kp = KeyParameter::new(KeyParameterValue::Invalid, SecurityLevel::STRONGBOX); in test_convert_to_wire_invalid() localVariable
1417 kp.value.into() in test_convert_to_wire_invalid()
1422 let kp = KeyParameter::new(KeyParameterValue::CallerNonce, SecurityLevel::STRONGBOX); in test_convert_to_wire_bool() localVariable
1425 kp.value.into() in test_convert_to_wire_bool()
1430 let kp = KeyParameter::new( in test_convert_to_wire_integer() localVariable
1439 kp.value.into() in test_convert_to_wire_integer()
1444 let kp = in test_convert_to_wire_long_integer() localVariable
1451 kp.value.into() in test_convert_to_wire_long_integer()
1456 let kp = KeyParameter::new( in test_convert_to_wire_blob() localVariable
1465 kp.value.into() in test_convert_to_wire_blob()