kislyuk / rehash

Resumable hashlib: a picklable interface to CPython's OpenSSL-based hashlib standard library
Apache License 2.0
37 stars 3 forks source link

Support OpenSSL 3 #6

Open kislyuk opened 2 years ago

kislyuk commented 2 years ago

Starting with OpenSSL 3, the message digest algorithm state is no longer stored in the EVP_MD structure but instead in an opaque algorithm context structure accessible via the "provider interface" (https://www.openssl.org/docs/manmaster/man7/provider-digest.html). It's unclear how to use the provider interface to serialize digest algorithm state.

ohado-di commented 3 weeks ago

hey, any plans to implement this support?

kislyuk commented 3 weeks ago

I would love to support OpenSSL 3 but so far I have not seen a way to access hasher state using the new data structure. If someone can show me how to do it, I'd gladly update the library.