Merge changes I8d0d8eac,If9223d17

* changes:
  OpenSSL keys add hashCode, equals, and toString
  Throw exceptions on wrong key type in Signature