• Home
  • Raw
  • Download

Lines Matching refs:KmKeyParameterValue

103     KeyParameterValue::KeyParameterValue as KmKeyParameterValue, KeyPurpose::KeyPurpose,
570 value: KmKeyParameterValue::$field_name(v)
583 value: KmKeyParameterValue::$field_name(_)
608 value: KmKeyParameterValue::$field_name(v)
621 value: KmKeyParameterValue::$field_name(KpDefault::default())
787 value: KmKeyParameterValue::$field_name(Default::default())}
1099 fn get_field_by_tag_type(tag: Tag) -> KmKeyParameterValue { in get_field_by_tag_type() argument
1102 Tag::ALGORITHM => return KmKeyParameterValue::Algorithm(Default::default()), in get_field_by_tag_type()
1103 Tag::BLOCK_MODE => return KmKeyParameterValue::BlockMode(Default::default()), in get_field_by_tag_type()
1104 Tag::PADDING => return KmKeyParameterValue::PaddingMode(Default::default()), in get_field_by_tag_type()
1105 Tag::DIGEST => return KmKeyParameterValue::Digest(Default::default()), in get_field_by_tag_type()
1106 Tag::RSA_OAEP_MGF_DIGEST => return KmKeyParameterValue::Digest(Default::default()), in get_field_by_tag_type()
1107 Tag::EC_CURVE => return KmKeyParameterValue::EcCurve(Default::default()), in get_field_by_tag_type()
1108 Tag::ORIGIN => return KmKeyParameterValue::Origin(Default::default()), in get_field_by_tag_type()
1109 Tag::PURPOSE => return KmKeyParameterValue::KeyPurpose(Default::default()), in get_field_by_tag_type()
1111 return KmKeyParameterValue::HardwareAuthenticatorType(Default::default()) in get_field_by_tag_type()
1113 Tag::HARDWARE_TYPE => return KmKeyParameterValue::SecurityLevel(Default::default()), in get_field_by_tag_type()
1117 TagType::INVALID => return KmKeyParameterValue::Invalid(Default::default()), in get_field_by_tag_type()
1120 return KmKeyParameterValue::Integer(Default::default()) in get_field_by_tag_type()
1123 return KmKeyParameterValue::LongInteger(Default::default()) in get_field_by_tag_type()
1125 TagType::DATE => return KmKeyParameterValue::DateTime(Default::default()), in get_field_by_tag_type()
1126 TagType::BOOL => return KmKeyParameterValue::BoolValue(Default::default()), in get_field_by_tag_type()
1128 return KmKeyParameterValue::Blob(Default::default()) in get_field_by_tag_type()
1138 (&KmKeyParameterValue::Algorithm(_), KmKeyParameterValue::Algorithm(_)) in check_field_matches_tag_type()
1139 | (&KmKeyParameterValue::BlockMode(_), KmKeyParameterValue::BlockMode(_)) in check_field_matches_tag_type()
1140 | (&KmKeyParameterValue::PaddingMode(_), KmKeyParameterValue::PaddingMode(_)) in check_field_matches_tag_type()
1141 | (&KmKeyParameterValue::Digest(_), KmKeyParameterValue::Digest(_)) in check_field_matches_tag_type()
1142 | (&KmKeyParameterValue::EcCurve(_), KmKeyParameterValue::EcCurve(_)) in check_field_matches_tag_type()
1143 | (&KmKeyParameterValue::Origin(_), KmKeyParameterValue::Origin(_)) in check_field_matches_tag_type()
1144 | (&KmKeyParameterValue::KeyPurpose(_), KmKeyParameterValue::KeyPurpose(_)) in check_field_matches_tag_type()
1146 &KmKeyParameterValue::HardwareAuthenticatorType(_), in check_field_matches_tag_type()
1147 KmKeyParameterValue::HardwareAuthenticatorType(_), in check_field_matches_tag_type()
1149 | (&KmKeyParameterValue::SecurityLevel(_), KmKeyParameterValue::SecurityLevel(_)) in check_field_matches_tag_type()
1150 | (&KmKeyParameterValue::Invalid(_), KmKeyParameterValue::Invalid(_)) in check_field_matches_tag_type()
1151 | (&KmKeyParameterValue::Integer(_), KmKeyParameterValue::Integer(_)) in check_field_matches_tag_type()
1152 | (&KmKeyParameterValue::LongInteger(_), KmKeyParameterValue::LongInteger(_)) in check_field_matches_tag_type()
1153 | (&KmKeyParameterValue::DateTime(_), KmKeyParameterValue::DateTime(_)) in check_field_matches_tag_type()
1154 | (&KmKeyParameterValue::BoolValue(_), KmKeyParameterValue::BoolValue(_)) in check_field_matches_tag_type()
1155 | (&KmKeyParameterValue::Blob(_), KmKeyParameterValue::Blob(_)) => {} in check_field_matches_tag_type()
1487 KmKeyParameter { tag: Tag::INVALID, value: KmKeyParameterValue::Invalid(0) }, in test_convert_to_wire_invalid()
1495 KmKeyParameter { tag: Tag::CALLER_NONCE, value: KmKeyParameterValue::BoolValue(true) }, in test_convert_to_wire_bool()
1508 value: KmKeyParameterValue::KeyPurpose(KeyPurpose::ENCRYPT) in test_convert_to_wire_integer()
1520 value: KmKeyParameterValue::LongInteger(i64::MAX) in test_convert_to_wire_long_integer()
1534 value: KmKeyParameterValue::Blob(String::from("ConfirmationToken").into_bytes()) in test_convert_to_wire_blob()
1549 KmKeyParameter { tag: Tag::CALLER_NONCE, value: KmKeyParameterValue::BoolValue(true) }; in test_convert_from_wire_bool()
1556 value: KmKeyParameterValue::KeyPurpose(KeyPurpose::ENCRYPT), in test_convert_from_wire_integer()
1564 value: KmKeyParameterValue::LongInteger(i64::MAX), in test_convert_from_wire_long_integer()
1572 value: KmKeyParameterValue::Blob(String::from("ConfirmationToken").into_bytes()), in test_convert_from_wire_blob()