summaryrefslogtreecommitdiff
path: root/x86_64
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2018-02-08 17:10:13 +0100
committerNiels Möller <nisse@lysator.liu.se>2018-02-08 18:14:03 +0100
commite11319dd814ac01ead6fdf3bf911fd7daf3b6b03 (patch)
tree137655514a75534a656040287d5588d8e4fb582e /x86_64
parent0413811acfa56f4b547070dee3bf4c0c3e8fdf00 (diff)
downloadnettle-e11319dd814ac01ead6fdf3bf911fd7daf3b6b03.tar.gz
Support sha_ni sha1_compress in x86_64 fat builds.
Diffstat (limited to 'x86_64')
-rw-r--r--x86_64/fat/sha1-compress-2.asm34
-rw-r--r--x86_64/fat/sha1-compress.asm34
2 files changed, 68 insertions, 0 deletions
diff --git a/x86_64/fat/sha1-compress-2.asm b/x86_64/fat/sha1-compress-2.asm
new file mode 100644
index 00000000..8bbc430f
--- /dev/null
+++ b/x86_64/fat/sha1-compress-2.asm
@@ -0,0 +1,34 @@
+C x86_64/fat/sha1-compress-2.asm
+
+ifelse(<
+ Copyright (C) 2018 Niels Möller
+
+ This file is part of GNU Nettle.
+
+ GNU Nettle is free software: you can redistribute it and/or
+ modify it under the terms of either:
+
+ * the GNU Lesser General Public License as published by the Free
+ Software Foundation; either version 3 of the License, or (at your
+ option) any later version.
+
+ or
+
+ * the GNU General Public License as published by the Free
+ Software Foundation; either version 2 of the License, or (at your
+ option) any later version.
+
+ or both in parallel, as here.
+
+ GNU Nettle is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received copies of the GNU General Public License and
+ the GNU Lesser General Public License along with this program. If
+ not, see http://www.gnu.org/licenses/.
+>)
+
+define(<fat_transform>, <$1_sha_ni>)
+include_src(<x86_64/sha_ni/sha1-compress.asm>)
diff --git a/x86_64/fat/sha1-compress.asm b/x86_64/fat/sha1-compress.asm
new file mode 100644
index 00000000..04b522ae
--- /dev/null
+++ b/x86_64/fat/sha1-compress.asm
@@ -0,0 +1,34 @@
+C x86_64/fat/sha1-compress.asm
+
+ifelse(<
+ Copyright (C) 2018 Niels Möller
+
+ This file is part of GNU Nettle.
+
+ GNU Nettle is free software: you can redistribute it and/or
+ modify it under the terms of either:
+
+ * the GNU Lesser General Public License as published by the Free
+ Software Foundation; either version 3 of the License, or (at your
+ option) any later version.
+
+ or
+
+ * the GNU General Public License as published by the Free
+ Software Foundation; either version 2 of the License, or (at your
+ option) any later version.
+
+ or both in parallel, as here.
+
+ GNU Nettle is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received copies of the GNU General Public License and
+ the GNU Lesser General Public License along with this program. If
+ not, see http://www.gnu.org/licenses/.
+>)
+
+define(<fat_transform>, <$1_x86_64>)
+include_src(<x86_64/sha1-compress.asm>)