Cast enumerated value to correct type

Compiler generates warning that can be treated like error.
Comparison of integers of different signs: 'uint32_t' (aka 'unsigned int')
and 'hw_authenticator_type_t' [-Werror,-Wsign-compare]

Test: Build, sanity check gatekeeper work

Change-Id: Idd2d49fff51a5f054fa18c306b2a9b4f3a6ed7fa
Signed-off-by: Ruslan Piasetskyi <ruslan.piasetskyi@gmail.com>
1 file changed
tree: 403a39dea8a8dbc9396a38b3e26053dfb8410b51
  1. .clang-format
  2. .gitignore
  3. Android.mk
  4. List.h
  5. MODULE_LICENSE_APACHE2
  6. Makefile
  7. NOTICE
  8. ae.h
  9. aes_key.cpp
  10. aes_key.h
  11. aes_operation.cpp
  12. aes_operation.h
  13. android_keymaster.cpp
  14. android_keymaster_messages.cpp
  15. android_keymaster_messages_test.cpp
  16. android_keymaster_test.cpp
  17. android_keymaster_test_utils.cpp
  18. android_keymaster_test_utils.h
  19. android_keymaster_utils.cpp
  20. asymmetric_key.cpp
  21. asymmetric_key.h
  22. asymmetric_key_factory.cpp
  23. attestation_record.cpp
  24. attestation_record.h
  25. attestation_record_test.cpp
  26. auth_encrypted_key_blob.cpp
  27. auth_encrypted_key_blob.h
  28. authorization_set.cpp
  29. authorization_set_test.cpp
  30. ec_key.cpp
  31. ec_key.h
  32. ec_key_factory.cpp
  33. ec_keymaster0_key.cpp
  34. ec_keymaster0_key.h
  35. ec_keymaster1_key.cpp
  36. ec_keymaster1_key.h
  37. ec_privkey_pk8.der
  38. ecdsa_keymaster1_operation.cpp
  39. ecdsa_keymaster1_operation.h
  40. ecdsa_operation.cpp
  41. ecdsa_operation.h
  42. ecies_kem.cpp
  43. ecies_kem.h
  44. ecies_kem_test.cpp
  45. gtest_main.cpp
  46. hkdf.cpp
  47. hkdf.h
  48. hkdf_test.cpp
  49. hmac.cpp
  50. hmac.h
  51. hmac_key.cpp
  52. hmac_key.h
  53. hmac_operation.cpp
  54. hmac_operation.h
  55. hmac_test.cpp
  56. include/
  57. integrity_assured_key_blob.cpp
  58. integrity_assured_key_blob.h
  59. iso18033kdf.cpp
  60. iso18033kdf.h
  61. kdf.cpp
  62. kdf.h
  63. kdf1.h
  64. kdf1_test.cpp
  65. kdf2.h
  66. kdf2_test.cpp
  67. kdf_test.cpp
  68. kem.h
  69. key.cpp
  70. key.h
  71. key_blob_test.cpp
  72. key_exchange.h
  73. keymaster0_engine.cpp
  74. keymaster0_engine.h
  75. keymaster1_engine.cpp
  76. keymaster1_engine.h
  77. keymaster_configuration.cpp
  78. keymaster_configuration_test.cpp
  79. keymaster_enforcement.cpp
  80. keymaster_enforcement_test.cpp
  81. keymaster_tags.cpp
  82. km0_sw_rsa_512.blob
  83. km1_sw_ecdsa_256.blob
  84. km1_sw_rsa_512.blob
  85. km1_sw_rsa_512_unversioned.blob
  86. logger.cpp
  87. nist_curve_key_exchange.cpp
  88. nist_curve_key_exchange.h
  89. nist_curve_key_exchange_test.cpp
  90. ocb.c
  91. ocb_utils.cpp
  92. ocb_utils.h
  93. openssl_err.cpp
  94. openssl_err.h
  95. openssl_utils.cpp
  96. openssl_utils.h
  97. operation.cpp
  98. operation.h
  99. operation_table.cpp
  100. operation_table.h
  101. rsa_key.cpp
  102. rsa_key.h
  103. rsa_key_factory.cpp
  104. rsa_keymaster0_key.cpp
  105. rsa_keymaster0_key.h
  106. rsa_keymaster1_key.cpp
  107. rsa_keymaster1_key.h
  108. rsa_keymaster1_operation.cpp
  109. rsa_keymaster1_operation.h
  110. rsa_operation.cpp
  111. rsa_operation.h
  112. rsa_privkey_pk8.der
  113. serializable.cpp
  114. soft_keymaster_context.cpp
  115. soft_keymaster_device.cpp
  116. soft_keymaster_logger.cpp
  117. sw_rsa_attest_root.key.pem
  118. symmetric_key.cpp
  119. symmetric_key.h
  120. valgrind.supp