summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkus@openbsd.org <markus@openbsd.org>2019-01-30 19:51:15 +0000
committerDarren Tucker <dtucker@dtucker.net>2019-02-01 18:55:11 +1100
commit5f004620fdc1b2108139300ee12f4014530fb559 (patch)
tree33060209d272ae1955d74f7919e15ff5f6109458
parent2c21b75a7be6ebdcbceaebb43157c48dbb36f3d8 (diff)
upstream: Add authors for public domain sntrup4591761 code;
confirmed by Daniel J. Bernstein OpenBSD-Commit-ID: b4621f22b8b8ef13e063c852af5e54dbbfa413c1
-rw-r--r--sntrup4591761.c10
-rw-r--r--sntrup4591761.sh15
2 files changed, 23 insertions, 2 deletions
diff --git a/sntrup4591761.c b/sntrup4591761.c
index 9631b423e..615f1b266 100644
--- a/sntrup4591761.c
+++ b/sntrup4591761.c
@@ -1,3 +1,13 @@
1/* $OpenBSD: sntrup4591761.c,v 1.3 2019/01/30 19:51:15 markus Exp $ */
2
3/*
4 * Public Domain, Authors:
5 * - Daniel J. Bernstein
6 * - Chitchanok Chuengsatiansup
7 * - Tanja Lange
8 * - Christine van Vredendaal
9 */
10
1#include <string.h> 11#include <string.h>
2#include "crypto_api.h" 12#include "crypto_api.h"
3 13
diff --git a/sntrup4591761.sh b/sntrup4591761.sh
index 2a0a4200b..e684c3329 100644
--- a/sntrup4591761.sh
+++ b/sntrup4591761.sh
@@ -1,4 +1,8 @@
1#!/bin/sh 1#!/bin/sh
2# $OpenBSD: sntrup4591761.sh,v 1.3 2019/01/30 19:51:15 markus Exp $
3# Placed in the Public Domain.
4#
5AUTHOR="libpqcrypto-20180314/crypto_kem/sntrup4591761/ref/implementors"
2FILES=" 6FILES="
3 libpqcrypto-20180314/crypto_kem/sntrup4591761/ref/int32_sort.h 7 libpqcrypto-20180314/crypto_kem/sntrup4591761/ref/int32_sort.h
4 libpqcrypto-20180314/crypto_kem/sntrup4591761/ref/int32_sort.c 8 libpqcrypto-20180314/crypto_kem/sntrup4591761/ref/int32_sort.c
@@ -27,8 +31,15 @@ FILES="
27### 31###
28 32
29set -e 33set -e
30DIR=/data/git/mfriedl 34cd $1
31cd $DIR 35echo -n '/* $'
36echo 'OpenBSD: $ */'
37echo
38echo '/*'
39echo ' * Public Domain, Authors:'
40sed -e '/Alphabetical order:/d' -e 's/^/ * - /' < $AUTHOR
41echo ' */'
42echo
32echo '#include <string.h>' 43echo '#include <string.h>'
33echo '#include "crypto_api.h"' 44echo '#include "crypto_api.h"'
34echo 45echo