summaryrefslogtreecommitdiff
path: root/sntrup761.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2020-12-31 12:47:22 +1100
committerDamien Miller <djm@mindrot.org>2020-12-31 12:47:22 +1100
commit148b8a661c3f93e4b6d049ee902de3d521261fbc (patch)
treedec059f1713f203bd2454f74a0ea72720d43246a /sntrup761.c
parent3d999be7b987c848feda718cfcfcdc005ddf670d (diff)
downloadopenssh-git-148b8a661c3f93e4b6d049ee902de3d521261fbc.tar.gz
fix: missing pieces of previous commit
Diffstat (limited to 'sntrup761.c')
-rw-r--r--sntrup761.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/sntrup761.c b/sntrup761.c
index 21b59bd4..db5aaaca 100644
--- a/sntrup761.c
+++ b/sntrup761.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sntrup761.c,v 1.1 2020/12/29 00:59:15 djm Exp $ */
+/* $OpenBSD: sntrup761.c,v 1.2 2020/12/30 14:13:28 tobhe Exp $ */
/*
* Public Domain, Authors:
@@ -12,21 +12,10 @@
#include <string.h>
#include "crypto_api.h"
+#include "int32_minmax.inc"
#define CRYPTO_NAMESPACE(s) s
-/* from supercop-20201130/crypto_sort/int32/portable4/int32_minmax.inc */
-#define int32_MINMAX(a,b) \
-do { \
- int32 ab = b ^ a; \
- int32 c = b - a; \
- c ^= ab & (c ^ b); \
- c >>= 31; \
- c &= ab; \
- a ^= c; \
- b ^= c; \
-} while(0)
-
/* from supercop-20201130/crypto_sort/int32/portable4/sort.c */
#define int32 crypto_int32