From ae33feb55694da9854597eacd968ec739b522aec Mon Sep 17 00:00:00 2001 From: Denis Denisov Date: Sat, 18 Feb 2017 19:03:55 +0200 Subject: [PATCH] SSE/SHA & AVX1 -> AVX2 (#124) * SIMD-instructions support: AVX1 -> AVX2 * SIMD/SSE instructions for SHA --- boring-nginx/Dockerfile | 2 ++ boring-nginx/README.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/boring-nginx/Dockerfile b/boring-nginx/Dockerfile index d5bc257..5ac5414 100644 --- a/boring-nginx/Dockerfile +++ b/boring-nginx/Dockerfile @@ -43,6 +43,8 @@ RUN echo "@commuedge https://nl.alpinelinux.org/alpine/edge/community" >> /etc/a && cd /tmp/boringssl \ && sed -n 's/\$avx = 0/\$avx = 2/p' crypto/*/asm/*.pl \ && sed -n 's/\$addx = 0/\$addx = 1/p' crypto/*/asm/*.pl \ + && sed -n 's/\$avx = 1/\$avx = 2/p' crypto/*/asm/*.pl \ + && sed -n 's/\$shaext=0/\$shaext=1/p' crypto/*/asm/*.pl \ && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. \ && make -j ${NB_CORES} && cd .. \ && mkdir -p .openssl/lib/ && cd .openssl && ln -s ../include && cd .. \ diff --git a/boring-nginx/README.md b/boring-nginx/README.md index 0582568..98bba37 100644 --- a/boring-nginx/README.md +++ b/boring-nginx/README.md @@ -7,7 +7,7 @@ This is nginx statically linked against BoringSSL, with embedded Brotli support. #### Features - Based on Alpine Linux. -- nginx built against **BoringSSL** with AVX2 instructions. +- nginx built against **BoringSSL** with SSE/SHA, and AVX2 SIMD-instructions. - Built using hardening gcc flags. - TTP/2 (+NPN) support. - Brotli compression support (and configured).