summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2019-01-30 19:51:16 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2019-01-30 19:51:16 +0000
commit33708cfb5f0efd07188da0920c6e142eb21c7ce0 (patch)
tree13979252925a09018da8ebd04cd5b84dedfbbe2f /usr.bin
parente050a87cb44e1296b50b94cca57b5ce70299a6eb (diff)
Add authors for public domain sntrup4591761 code;
confirmed by Daniel J. Bernstein
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/sntrup4591761.c10
-rw-r--r--usr.bin/ssh/sntrup4591761.sh15
2 files changed, 23 insertions, 2 deletions
diff --git a/usr.bin/ssh/sntrup4591761.c b/usr.bin/ssh/sntrup4591761.c
index 9631b423e29..615f1b2665e 100644
--- a/usr.bin/ssh/sntrup4591761.c
+++ b/usr.bin/ssh/sntrup4591761.c
@@ -1,3 +1,13 @@
+/* $OpenBSD: sntrup4591761.c,v 1.3 2019/01/30 19:51:15 markus Exp $ */
+
+/*
+ * Public Domain, Authors:
+ * - Daniel J. Bernstein
+ * - Chitchanok Chuengsatiansup
+ * - Tanja Lange
+ * - Christine van Vredendaal
+ */
+
#include <string.h>
#include "crypto_api.h"
diff --git a/usr.bin/ssh/sntrup4591761.sh b/usr.bin/ssh/sntrup4591761.sh
index 2a0a4200bd8..e684c3329c2 100644
--- a/usr.bin/ssh/sntrup4591761.sh
+++ b/usr.bin/ssh/sntrup4591761.sh
@@ -1,4 +1,8 @@
#!/bin/sh
+# $OpenBSD: sntrup4591761.sh,v 1.3 2019/01/30 19:51:15 markus Exp $
+# Placed in the Public Domain.
+#
+AUTHOR="libpqcrypto-20180314/crypto_kem/sntrup4591761/ref/implementors"
FILES="
libpqcrypto-20180314/crypto_kem/sntrup4591761/ref/int32_sort.h
libpqcrypto-20180314/crypto_kem/sntrup4591761/ref/int32_sort.c
@@ -27,8 +31,15 @@ FILES="
###
set -e
-DIR=/data/git/mfriedl
-cd $DIR
+cd $1
+echo -n '/* $'
+echo 'OpenBSD: $ */'
+echo
+echo '/*'
+echo ' * Public Domain, Authors:'
+sed -e '/Alphabetical order:/d' -e 's/^/ * - /' < $AUTHOR
+echo ' */'
+echo
echo '#include <string.h>'
echo '#include "crypto_api.h"'
echo