Restore support for old unversioned OCB-encrypted blobs.

This support was inadvertently removed in a refactor.  There aren't many
of these keys around, since they were only created by pre-release
verions of Nexus 9 software, but we'll support them anyway.

Change-Id: Ibcd5c6df087bd4148d21f83af68109733c34d4ca
3 files changed
tree: 9dd863d15d942fe27f6a0a235bcee133fc48eb31
  1. .clang-format
  2. .gitignore
  3. Android.mk
  4. Makefile
  5. ae.h
  6. aead_mode_operation.cpp
  7. aead_mode_operation.h
  8. aes_key.cpp
  9. aes_key.h
  10. aes_operation.cpp
  11. aes_operation.h
  12. android_keymaster.cpp
  13. android_keymaster_messages.cpp
  14. android_keymaster_messages_test.cpp
  15. android_keymaster_test.cpp
  16. android_keymaster_test_utils.cpp
  17. android_keymaster_test_utils.h
  18. android_keymaster_utils.cpp
  19. asymmetric_key.cpp
  20. asymmetric_key.h
  21. asymmetric_key_factory.cpp
  22. auth_encrypted_key_blob.cpp
  23. auth_encrypted_key_blob.h
  24. authorization_set.cpp
  25. authorization_set_test.cpp
  26. ec_key.cpp
  27. ec_key.h
  28. ec_key_factory.cpp
  29. ec_keymaster0_key.cpp
  30. ec_keymaster0_key.h
  31. ec_privkey_pk8.der
  32. ecdsa_operation.cpp
  33. ecdsa_operation.h
  34. gtest_main.cpp
  35. hkdf.cpp
  36. hkdf.h
  37. hkdf_test.cpp
  38. hmac.cpp
  39. hmac.h
  40. hmac_key.cpp
  41. hmac_key.h
  42. hmac_operation.cpp
  43. hmac_operation.h
  44. hmac_test.cpp
  45. include/
  46. integrity_assured_key_blob.cpp
  47. integrity_assured_key_blob.h
  48. key.cpp
  49. key.h
  50. key_blob_test.cpp
  51. keymaster0_engine.cpp
  52. keymaster0_engine.h
  53. keymaster_enforcement.cpp
  54. keymaster_enforcement.h
  55. keymaster_enforcement_test.cpp
  56. km0_sw_rsa_512.blob
  57. km1_sw_ecdsa_256.blob
  58. km1_sw_rsa_512.blob
  59. km1_sw_rsa_512_unversioned.blob
  60. logger.cpp
  61. ocb.c
  62. ocb_utils.cpp
  63. ocb_utils.h
  64. openssl_err.cpp
  65. openssl_err.h
  66. openssl_utils.cpp
  67. openssl_utils.h
  68. operation.cpp
  69. operation.h
  70. operation_table.cpp
  71. operation_table.h
  72. rsa_key.cpp
  73. rsa_key.h
  74. rsa_key_factory.cpp
  75. rsa_keymaster0_key.cpp
  76. rsa_keymaster0_key.h
  77. rsa_operation.cpp
  78. rsa_operation.h
  79. rsa_privkey_pk8.der
  80. serializable.cpp
  81. soft_keymaster_context.cpp
  82. soft_keymaster_device.cpp
  83. soft_keymaster_logger.cpp
  84. symmetric_key.cpp
  85. symmetric_key.h
  86. valgrind.supp