wbond / oscrypto

Compiler-free Python crypto library backed by the OS, supporting CPython and PyPy
MIT License
318 stars 71 forks source link

Implement none hash_algorithm for rsa_pkcs1v15_sign #2

Closed asyd closed 9 years ago

asyd commented 9 years ago

To implement the https://github.com/spark/firmware protocol, I need to perform a signature with PKCS15 padding, but without applying a hash.

Thanks you!

wbond commented 9 years ago

This is now available by setting the hash_algorithm parameter of asymmetric.rsa_pkcs1v15_sign() or asymmetric.rsa_pkcs1v15_verify() to "raw".