Implemented fall-back to software for out-of-range private key sizes.

Also:
 - Added logging to 'not supported' errors.
 - Updated p11_replay so software keys can be tested.
 - Updated RSA key size and output buffer size checks.

BUG=chromium-os:29974
TEST=Ran all unit tests.
     Manually imported sample certs attached to bug.
     Manually tested generation and use of large keys using p11_replay.

Change-Id: I1ec85e5e916b2c7ee499f01372b9e26783e7238f
4 files changed
tree: 4f31ba090b589da2d367c10ffc4824ce0123a9d3
  1. LICENSE
  2. Makefile
  3. OWNERS
  4. README
  5. attributes.cc
  6. attributes.h
  7. attributes.proto
  8. chaps.cc
  9. chaps.h
  10. chaps_adaptor.cc
  11. chaps_adaptor.h
  12. chaps_event_generator.cc
  13. chaps_factory.h
  14. chaps_factory_impl.cc
  15. chaps_factory_impl.h
  16. chaps_factory_mock.cc
  17. chaps_factory_mock.h
  18. chaps_interface.h
  19. chaps_interface.xml
  20. chaps_proxy.cc
  21. chaps_proxy.h
  22. chaps_proxy_mock.cc
  23. chaps_proxy_mock.h
  24. chaps_service.cc
  25. chaps_service.h
  26. chaps_service_redirect.cc
  27. chaps_service_redirect.h
  28. chaps_service_test.cc
  29. chaps_test.cc
  30. chaps_utility.cc
  31. chaps_utility.h
  32. chapsd.cc
  33. chapsd.conf
  34. chapsd_test.cc
  35. common.mk
  36. handle_generator.h
  37. handle_generator_mock.h
  38. login_event_client.cc
  39. login_event_client.h
  40. login_event_listener.h
  41. object.h
  42. object_impl.cc
  43. object_impl.h
  44. object_importer.h
  45. object_importer_mock.cc
  46. object_importer_mock.h
  47. object_mock.cc
  48. object_mock.h
  49. object_policy.h
  50. object_policy_cert.cc
  51. object_policy_cert.h
  52. object_policy_common.cc
  53. object_policy_common.h
  54. object_policy_data.cc
  55. object_policy_data.h
  56. object_policy_key.cc
  57. object_policy_key.h
  58. object_policy_mock.cc
  59. object_policy_mock.h
  60. object_policy_private_key.cc
  61. object_policy_private_key.h
  62. object_policy_public_key.cc
  63. object_policy_public_key.h
  64. object_policy_secret_key.cc
  65. object_policy_secret_key.h
  66. object_policy_test.cc
  67. object_pool.h
  68. object_pool_impl.cc
  69. object_pool_impl.h
  70. object_pool_mock.cc
  71. object_pool_mock.h
  72. object_pool_test.cc
  73. object_store.h
  74. object_store_fake.h
  75. object_store_impl.cc
  76. object_store_impl.h
  77. object_store_mock.cc
  78. object_store_mock.h
  79. object_store_test.cc
  80. object_test.cc
  81. opencryptoki_importer.cc
  82. opencryptoki_importer.h
  83. opencryptoki_importer_test.cc
  84. opencryptoki_sample_token.tgz
  85. org.chromium.Chaps.conf
  86. org.chromium.Chaps.service
  87. p11_replay.cc
  88. pkcs11/
  89. session.h
  90. session_impl.cc
  91. session_impl.h
  92. session_mock.cc
  93. session_mock.h
  94. session_test.cc
  95. slot_manager.h
  96. slot_manager_impl.cc
  97. slot_manager_impl.h
  98. slot_manager_mock.cc
  99. slot_manager_mock.h
  100. slot_manager_test.cc
  101. tpm_utility.h
  102. tpm_utility_impl.cc
  103. tpm_utility_impl.h
  104. tpm_utility_mock.cc
  105. tpm_utility_mock.h
  106. tpm_utility_test.cc