aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto/zinc/chacha20/chacha20-ppc.pl
diff options
context:
space:
mode:
authorShawn Landden <shawn@git.icu>2019-05-11 14:19:51 -0300
committerShawn Landden <shawn@git.icu>2019-05-13 16:25:28 -0500
commitcc6513fd7d0e049c0c0dae0c6ef62eb6ad11afe1 (patch)
tree8ea0fe17d01d9287d090a05305f1210cf64a555d /src/crypto/zinc/chacha20/chacha20-ppc.pl
parent[Zinc] Add PowerPC chacha20 implementation from openssl/cryptograms (diff)
downloadwireguard-monolithic-historical-sl/ppc.tar.xz
wireguard-monolithic-historical-sl/ppc.zip
[zinc] Add PowerPC accelerated poly1305 from openssl/cryptogramssl/ppc
Unfortunately I am not seeing a speed up with this patch, but it does decrease CPU usage. Only (currently) runs on the outbound path, as the in-bound path is in an interrupt, but that can be fixed in Linux. v2: - Do not include the FPU version, as +10% performance on POWER8 (admittedly better on really old CPUs, like old world macs) is not worth it, especially when there is a fast VSX version available. - Honor CONFIG_VSX. Signed-off-by: Shawn Landden <shawn@git.icu>
Diffstat (limited to 'src/crypto/zinc/chacha20/chacha20-ppc.pl')
-rw-r--r--src/crypto/zinc/chacha20/chacha20-ppc.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/crypto/zinc/chacha20/chacha20-ppc.pl b/src/crypto/zinc/chacha20/chacha20-ppc.pl
index 07468c8..fa8f6bc 100644
--- a/src/crypto/zinc/chacha20/chacha20-ppc.pl
+++ b/src/crypto/zinc/chacha20/chacha20-ppc.pl
@@ -6,6 +6,8 @@
# The original headers, including the original license headers, are
# included below for completeness.
#
+# Changes: search in more places for ppc-xlate.pl
+#
# Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the Apache License 2.0 (the "License"). You may not use
@@ -73,6 +75,7 @@ $LITTLE_ENDIAN = ($flavour=~/le$/) ? 1 : 0;
$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
( $xlate="${dir}ppc-xlate.pl" and -f $xlate ) or
+( $xlate="${dir}../perlasm/ppc-xlate.pl" and -f $xlate) or
( $xlate="${dir}../../perlasm/ppc-xlate.pl" and -f $xlate) or
die "can't locate ppc-xlate.pl";