From adef5dcb1857f524e2a24dd0223f31db7cd7a8b9 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 15 Jul 2016 04:45:08 -0500 Subject: Add optional openssl accelerated versions of hash functions, loosely based on a patch from Elliott Hughes, who said: [PATCH] Add support for libcrypto for MD5/SHA. Orders of magnitude faster (for architectures where OpenSSL/BoringSSL has optimized assembler). Also adds sha224sum, sha256sum, sha384sum, and sha512sum for folks building with libcrypto. The fallback portable C implementations could easily be refactored to be API-compatible, but I don't know whether they'd stay here or move to lib/ so I've left that part alone for now. --- Config.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Config.in') diff --git a/Config.in b/Config.in index 3c560f80..76b2ef1d 100644 --- a/Config.in +++ b/Config.in @@ -62,6 +62,12 @@ config TOYBOX_SMACK endchoice +config TOYBOX_LIBCRYPTO + bool "Use libcrypto (OpenSSL/BoringSSL)" + default n + help + Use faster hash functions out of exteral -lcrypto library. + config TOYBOX_FLOAT bool "Floating point support" default y -- cgit v1.2.3