summaryrefslogtreecommitdiff
path: root/libbb/Config.src
diff options
context:
space:
mode:
authorDenys Vlasenko2022-02-03 14:15:20 +0100
committerDenys Vlasenko2022-02-03 14:58:02 +0100
commit6472ac942898437e040171cec991de1c0b962f72 (patch)
treedb3bad21943c0f946f3485d71ac336c57a7ea846 /libbb/Config.src
parent205042c07a3bf6c8e685c434713f2a9e46630cd0 (diff)
downloadbusybox-6472ac942898437e040171cec991de1c0b962f72.zip
busybox-6472ac942898437e040171cec991de1c0b962f72.tar.gz
libbb/sha256: optional x86 hardware accelerated hashing
64 bit: function old new delta sha256_process_block64_shaNI - 730 +730 .rodata 108314 108586 +272 sha256_begin 31 83 +52 ------------------------------------------------------------------------------ (add/remove: 5/1 grow/shrink: 2/0 up/down: 1055/-1) Total: 1054 bytes 32 bit: function old new delta sha256_process_block64_shaNI - 747 +747 .rodata 104318 104590 +272 sha256_begin 29 84 +55 ------------------------------------------------------------------------------ (add/remove: 5/1 grow/shrink: 2/0 up/down: 1075/-1) Total: 1074 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/Config.src')
-rw-r--r--libbb/Config.src6
1 files changed, 6 insertions, 0 deletions
diff --git a/libbb/Config.src b/libbb/Config.src
index 708d3b0..0ecd5bd 100644
--- a/libbb/Config.src
+++ b/libbb/Config.src
@@ -70,6 +70,12 @@ config SHA1_HWACCEL
On x86, this adds ~590 bytes of code. Throughput
is about twice as fast as fully-unrolled generic code.
+config SHA256_HWACCEL
+ bool "SHA256: Use hardware accelerated instructions if possible"
+ default y
+ help
+ On x86, this adds ~1k bytes of code.
+
config SHA3_SMALL
int "SHA3: Trade bytes for speed (0:fast, 1:slow)"
default 1 # all "fast or small" options default to small