Lines Matching refs:KmKeyParameterValue
103 KeyParameterValue::KeyParameterValue as KmKeyParameterValue, KeyPurpose::KeyPurpose,
546 value: KmKeyParameterValue::$field_name(v)
559 value: KmKeyParameterValue::$field_name(_)
584 value: KmKeyParameterValue::$field_name(v)
597 value: KmKeyParameterValue::$field_name(KpDefault::default())
763 value: KmKeyParameterValue::$field_name(Default::default())}
1041 fn get_field_by_tag_type(tag: Tag) -> KmKeyParameterValue { in get_field_by_tag_type() argument
1044 Tag::ALGORITHM => return KmKeyParameterValue::Algorithm(Default::default()), in get_field_by_tag_type()
1045 Tag::BLOCK_MODE => return KmKeyParameterValue::BlockMode(Default::default()), in get_field_by_tag_type()
1046 Tag::PADDING => return KmKeyParameterValue::PaddingMode(Default::default()), in get_field_by_tag_type()
1047 Tag::DIGEST => return KmKeyParameterValue::Digest(Default::default()), in get_field_by_tag_type()
1048 Tag::EC_CURVE => return KmKeyParameterValue::EcCurve(Default::default()), in get_field_by_tag_type()
1049 Tag::ORIGIN => return KmKeyParameterValue::Origin(Default::default()), in get_field_by_tag_type()
1050 Tag::PURPOSE => return KmKeyParameterValue::KeyPurpose(Default::default()), in get_field_by_tag_type()
1052 return KmKeyParameterValue::HardwareAuthenticatorType(Default::default()) in get_field_by_tag_type()
1054 Tag::HARDWARE_TYPE => return KmKeyParameterValue::SecurityLevel(Default::default()), in get_field_by_tag_type()
1058 TagType::INVALID => return KmKeyParameterValue::Invalid(Default::default()), in get_field_by_tag_type()
1061 return KmKeyParameterValue::Integer(Default::default()) in get_field_by_tag_type()
1064 return KmKeyParameterValue::LongInteger(Default::default()) in get_field_by_tag_type()
1066 TagType::DATE => return KmKeyParameterValue::DateTime(Default::default()), in get_field_by_tag_type()
1067 TagType::BOOL => return KmKeyParameterValue::BoolValue(Default::default()), in get_field_by_tag_type()
1069 return KmKeyParameterValue::Blob(Default::default()) in get_field_by_tag_type()
1079 (&KmKeyParameterValue::Algorithm(_), KmKeyParameterValue::Algorithm(_)) in check_field_matches_tag_type()
1080 | (&KmKeyParameterValue::BlockMode(_), KmKeyParameterValue::BlockMode(_)) in check_field_matches_tag_type()
1081 | (&KmKeyParameterValue::PaddingMode(_), KmKeyParameterValue::PaddingMode(_)) in check_field_matches_tag_type()
1082 | (&KmKeyParameterValue::Digest(_), KmKeyParameterValue::Digest(_)) in check_field_matches_tag_type()
1083 | (&KmKeyParameterValue::EcCurve(_), KmKeyParameterValue::EcCurve(_)) in check_field_matches_tag_type()
1084 | (&KmKeyParameterValue::Origin(_), KmKeyParameterValue::Origin(_)) in check_field_matches_tag_type()
1085 | (&KmKeyParameterValue::KeyPurpose(_), KmKeyParameterValue::KeyPurpose(_)) in check_field_matches_tag_type()
1087 &KmKeyParameterValue::HardwareAuthenticatorType(_), in check_field_matches_tag_type()
1088 KmKeyParameterValue::HardwareAuthenticatorType(_), in check_field_matches_tag_type()
1090 | (&KmKeyParameterValue::SecurityLevel(_), KmKeyParameterValue::SecurityLevel(_)) in check_field_matches_tag_type()
1091 | (&KmKeyParameterValue::Invalid(_), KmKeyParameterValue::Invalid(_)) in check_field_matches_tag_type()
1092 | (&KmKeyParameterValue::Integer(_), KmKeyParameterValue::Integer(_)) in check_field_matches_tag_type()
1093 | (&KmKeyParameterValue::LongInteger(_), KmKeyParameterValue::LongInteger(_)) in check_field_matches_tag_type()
1094 | (&KmKeyParameterValue::DateTime(_), KmKeyParameterValue::DateTime(_)) in check_field_matches_tag_type()
1095 | (&KmKeyParameterValue::BoolValue(_), KmKeyParameterValue::BoolValue(_)) in check_field_matches_tag_type()
1096 | (&KmKeyParameterValue::Blob(_), KmKeyParameterValue::Blob(_)) => {} in check_field_matches_tag_type()
1416 KmKeyParameter { tag: Tag::INVALID, value: KmKeyParameterValue::Invalid(0) }, in test_convert_to_wire_invalid()
1424 KmKeyParameter { tag: Tag::CALLER_NONCE, value: KmKeyParameterValue::BoolValue(true) }, in test_convert_to_wire_bool()
1437 value: KmKeyParameterValue::KeyPurpose(KeyPurpose::ENCRYPT) in test_convert_to_wire_integer()
1449 value: KmKeyParameterValue::LongInteger(i64::MAX) in test_convert_to_wire_long_integer()
1463 value: KmKeyParameterValue::Blob(String::from("ConfirmationToken").into_bytes()) in test_convert_to_wire_blob()
1478 KmKeyParameter { tag: Tag::CALLER_NONCE, value: KmKeyParameterValue::BoolValue(true) }; in test_convert_from_wire_bool()
1485 value: KmKeyParameterValue::KeyPurpose(KeyPurpose::ENCRYPT), in test_convert_from_wire_integer()
1493 value: KmKeyParameterValue::LongInteger(i64::MAX), in test_convert_from_wire_long_integer()
1501 value: KmKeyParameterValue::Blob(String::from("ConfirmationToken").into_bytes()), in test_convert_from_wire_blob()