-
Notifications
You must be signed in to change notification settings - Fork 432
Casting message to bytes in PyCrypto verifier. #203
Conversation
@nathanielmanistaatgoogle @craigcitro As mentioned above, I removed the bare |
@@ -59,7 +59,7 @@ def test_sign_and_verify(self): | |||
self._check_sign_and_verify('privatekey.%s' % self.format) | |||
|
|||
def test_sign_and_verify_from_converted_pkcs12(self): | |||
"""Tests that following instructions to convert from PKCS12 to PEM works.""" |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
i don't know that there's a reason for the bare |
Also - Removing bare `except:` statements in both the PyCrypto and OpenSSL verifiers (in the `verify` method). - Catching the only exception possible in the OpenSSL verifier (it is `OpenSSL.crypto.Error`). - Converting the signature to bytes (if not already) in the OpenSSL verifier. - Adding a test with both a unicode and bytes signature for each verifier. Fixes googleapis#201.
@nathanielmanistaatgoogle I have updated the docstrings on the updated Sorry I let this thing fall away. Are we good to go here? |
LGTM; I think we're good to go here. |
Casting message to bytes in PyCrypto verifier.
Thanks! |
Also
except:
statements in both the PyCrypto andOpenSSL verifiers (in the
verify
method).(it is
OpenSSL.crypto.Error
).OpenSSL verifier.
each verifier.
Fixes #201.
/cc @nathanielmanistaatgoogle