• Home
  • Raw
  • Download

Lines Matching refs:key_param

661                     #[key_param(tag = $tag_name:ident, field = $field_name:ident)]
783 #[key_param(tag = INVALID, field = Invalid)]
786 #[key_param(tag = PURPOSE, field = KeyPurpose)]
789 #[key_param(tag = ALGORITHM, field = Algorithm)]
792 #[key_param(tag = KEY_SIZE, field = Integer)]
795 #[key_param(tag = BLOCK_MODE, field = BlockMode)]
798 #[key_param(tag = DIGEST, field = Digest)]
801 #[key_param(tag = PADDING, field = PaddingMode)]
804 #[key_param(tag = CALLER_NONCE, field = BoolValue)]
807 #[key_param(tag = MIN_MAC_LENGTH, field = Integer)]
810 #[key_param(tag = EC_CURVE, field = EcCurve)]
813 #[key_param(tag = RSA_PUBLIC_EXPONENT, field = LongInteger)]
817 #[key_param(tag = INCLUDE_UNIQUE_ID, field = BoolValue)]
823 #[key_param(tag = BOOTLOADER_ONLY, field = BoolValue)]
826 #[key_param(tag = ROLLBACK_RESISTANCE, field = BoolValue)]
829 #[key_param(tag = EARLY_BOOT_ONLY, field = BoolValue)]
832 #[key_param(tag = ACTIVE_DATETIME, field = DateTime)]
835 #[key_param(tag = ORIGINATION_EXPIRE_DATETIME, field = DateTime)]
838 #[key_param(tag = USAGE_EXPIRE_DATETIME, field = DateTime)]
841 #[key_param(tag = MIN_SECONDS_BETWEEN_OPS, field = Integer)]
844 #[key_param(tag = MAX_USES_PER_BOOT, field = Integer)]
847 #[key_param(tag = USAGE_COUNT_LIMIT, field = Integer)]
850 #[key_param(tag = USER_ID, field = Integer)]
853 #[key_param(tag = USER_SECURE_ID, field = LongInteger)]
856 #[key_param(tag = NO_AUTH_REQUIRED, field = BoolValue)]
859 #[key_param(tag = USER_AUTH_TYPE, field = HardwareAuthenticatorType)]
862 #[key_param(tag = AUTH_TIMEOUT, field = Integer)]
865 #[key_param(tag = ALLOW_WHILE_ON_BODY, field = BoolValue)]
868 #[key_param(tag = TRUSTED_USER_PRESENCE_REQUIRED, field = BoolValue)]
872 #[key_param(tag = TRUSTED_CONFIRMATION_REQUIRED, field = BoolValue)]
875 #[key_param(tag = UNLOCKED_DEVICE_REQUIRED, field = BoolValue)]
879 #[key_param(tag = APPLICATION_ID, field = Blob)]
883 #[key_param(tag = APPLICATION_DATA, field = Blob)]
886 #[key_param(tag = CREATION_DATETIME, field = DateTime)]
889 #[key_param(tag = ORIGIN, field = Origin)]
892 #[key_param(tag = ROOT_OF_TRUST, field = Blob)]
895 #[key_param(tag = OS_VERSION, field = Integer)]
898 #[key_param(tag = OS_PATCHLEVEL, field = Integer)]
901 #[key_param(tag = UNIQUE_ID, field = Blob)]
904 #[key_param(tag = ATTESTATION_CHALLENGE, field = Blob)]
907 #[key_param(tag = ATTESTATION_APPLICATION_ID, field = Blob)]
910 #[key_param(tag = ATTESTATION_ID_BRAND, field = Blob)]
913 #[key_param(tag = ATTESTATION_ID_DEVICE, field = Blob)]
916 #[key_param(tag = ATTESTATION_ID_PRODUCT, field = Blob)]
919 #[key_param(tag = ATTESTATION_ID_SERIAL, field = Blob)]
922 #[key_param(tag = ATTESTATION_ID_IMEI, field = Blob)]
925 #[key_param(tag = ATTESTATION_ID_MEID, field = Blob)]
928 #[key_param(tag = ATTESTATION_ID_MANUFACTURER, field = Blob)]
931 #[key_param(tag = ATTESTATION_ID_MODEL, field = Blob)]
934 #[key_param(tag = VENDOR_PATCHLEVEL, field = Integer)]
937 #[key_param(tag = BOOT_PATCHLEVEL, field = Integer)]
940 #[key_param(tag = ASSOCIATED_DATA, field = Blob)]
944 #[key_param(tag = NONCE, field = Blob)]
947 #[key_param(tag = MAC_LENGTH, field = Integer)]
951 #[key_param(tag = RESET_SINCE_ID_ROTATION, field = BoolValue)]
955 #[key_param(tag = CONFIRMATION_TOKEN, field = Blob)]
959 #[key_param(tag = CERTIFICATE_SERIAL, field = Blob)]
963 #[key_param(tag = CERTIFICATE_SUBJECT, field = Blob)]
966 #[key_param(tag = CERTIFICATE_NOT_BEFORE, field = DateTime)]
969 #[key_param(tag = CERTIFICATE_NOT_AFTER, field = DateTime)]
972 #[key_param(tag = MAX_BOOT_LEVEL, field = Integer)]
1162 let key_param = query_from_keyparameter(&db)?; in test_new_from_sql_enum_i32() localVariable
1163 assert_eq!(Tag::ALGORITHM, key_param.get_tag()); in test_new_from_sql_enum_i32()
1164 assert_eq!(*key_param.key_parameter_value(), KeyParameterValue::Algorithm(Algorithm::RSA)); in test_new_from_sql_enum_i32()
1165 assert_eq!(*key_param.security_level(), SecurityLevel::STRONGBOX); in test_new_from_sql_enum_i32()
1175 let key_param = query_from_keyparameter(&db)?; in test_new_from_sql_i32() localVariable
1176 assert_eq!(Tag::KEY_SIZE, key_param.get_tag()); in test_new_from_sql_i32()
1177 assert_eq!(*key_param.key_parameter_value(), KeyParameterValue::KeySize(1024)); in test_new_from_sql_i32()
1194 let key_param = query_from_keyparameter(&db)?; in test_new_from_sql_i64() localVariable
1195 assert_eq!(Tag::RSA_PUBLIC_EXPONENT, key_param.get_tag()); in test_new_from_sql_i64()
1197 *key_param.key_parameter_value(), in test_new_from_sql_i64()
1209 let key_param = query_from_keyparameter(&db)?; in test_new_from_sql_bool() localVariable
1210 assert_eq!(Tag::CALLER_NONCE, key_param.get_tag()); in test_new_from_sql_bool()
1211 assert_eq!(*key_param.key_parameter_value(), KeyParameterValue::CallerNonce); in test_new_from_sql_bool()
1229 let key_param = query_from_keyparameter(&db)?; in test_new_from_sql_vec_u8() localVariable
1230 assert_eq!(Tag::APPLICATION_ID, key_param.get_tag()); in test_new_from_sql_vec_u8()
1232 *key_param.key_parameter_value(), in test_new_from_sql_vec_u8()
1248 let key_param = query_from_keyparameter(&db)?; in test_to_sql_enum_i32() localVariable
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()
1261 let key_param = query_from_keyparameter(&db)?; in test_to_sql_i32() localVariable
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()
1278 let key_param = query_from_keyparameter(&db)?; in test_to_sql_i64() localVariable
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()
1294 let key_param = query_from_keyparameter(&db)?; in test_to_sql_vec_u8() localVariable
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()
1307 let key_param = query_from_keyparameter(&db)?; in test_to_sql_bool() localVariable
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()
1319 let key_param = query_from_keyparameter(&db)?; in test_invalid_tag() localVariable
1320 assert_eq!(Tag::INVALID, key_param.get_tag()); in test_invalid_tag()
1328 let key_param = query_from_keyparameter(&db)?; in test_non_existing_enum_variant() localVariable
1329 assert_eq!(Tag::INVALID, key_param.get_tag()); in test_non_existing_enum_variant()