commit | 91bb5fbe55b854df891ff7720e30d42081dbcd58 | [log] [tgz] |
---|---|---|
author | Kenny Root <kroot@google.com> | Fri Feb 03 09:20:48 2012 -0800 |
committer | Kenny Root <kroot@google.com> | Fri Feb 03 13:29:40 2012 -0800 |
tree | 009d2dd7ce4c9c7aead810fd3bb5ca82b7b85b54 | |
parent | e50519aa549f6032b61e7d5b03f26510b10a8350 [diff] |
Throw exceptions on wrong key type in Signature Our engine can handle both RSA and DSA, but we need to throw an error if the wrong key type is supplied after we've initialized to emulate other providers. Also, apparently OpenSSL is really flexible, because calling EVP_SignInit had the same effect as EVP_VerifyInit. Change this to be correct even though the underlying implementation in OpenSSL doesn't care. Change-Id: If9223d17909fcf86437b9669c204fc544e6d12ff