Start optionally using the SHA implementation from the existing crypto API #44
Loading…
Reference in a new issue
No description provided.
Delete branch "lda/Cytoplasm:opt-ssl-for-sha"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Those are probably faster and more secure than the default one. The older implementation still stays when no good TLS library can provide its SHA functions.
Keeping this as a WIP since I'm not 100% sure it compiles on LibreSSL, but can't test as of now. If anyone has the time to do so, please let me know.
Faster, yes, probably.
More secure, probably not. It's just an algorithm. Unless I didn't implement it properly, it should be just as secure as the TLS library's. Anyone can audit the code if they want. As far as I can tell, it is implemented properly, but I'm always open to being corrected.
That being said, I have no problem with this pull request at all. I'll happily merge it once we verify it can compile with LibreSSL. I unfortunately am not in the position to verify this for myself, as I'm on mostly Linux systems these days that have OpenSSL.
@ -28,6 +28,26 @@
#include <limits.h>
#if (TLS_IMPL == TLS_OPENSSL) || (TLS_IMPL == TLS_LIBRESSL)
If you just say
#if (TLS_IMPL == TLS_OPENSSL)
and get rid of the LibreSSL check, then this will only be applied with OpenSSL, which you verified to work. We can then merge this and add back LibreSSL support later after we verify it is working.WIP: Start optionally using the SHA implementation from the existing crypto APIto Start optionally using the SHA implementation from the existing crypto API