From b9d44453bbcd804bdf4526a7b70752ed16cbda31 Mon Sep 17 00:00:00 2001 From: "Matthias J. Kannwischer" Date: Wed, 20 Mar 2024 14:42:17 +0800 Subject: [PATCH] add SPDX License identifiers Signed-off-by: Matthias J. Kannwischer --- fips202/fips202.c | 1 + fips202/fips202.h | 1 + fips202/keccakf1600.c | 1 + fips202/keccakf1600.h | 1 + mlkem/api.h | 1 + mlkem/cbd.c | 1 + mlkem/cbd.h | 1 + mlkem/indcpa.c | 1 + mlkem/indcpa.h | 1 + mlkem/kem.c | 1 + mlkem/kem.h | 1 + mlkem/ntt.c | 1 + mlkem/ntt.h | 1 + mlkem/params.h | 1 + mlkem/poly.c | 1 + mlkem/poly.h | 1 + mlkem/polyvec.c | 1 + mlkem/polyvec.h | 1 + mlkem/randombytes.c | 1 + mlkem/randombytes.h | 1 + mlkem/reduce.c | 1 + mlkem/reduce.h | 1 + mlkem/symmetric-shake.c | 1 + mlkem/symmetric.h | 1 + mlkem/verify.c | 1 + mlkem/verify.h | 3 ++- test/test.c | 1 + 27 files changed, 28 insertions(+), 1 deletion(-) diff --git a/fips202/fips202.c b/fips202/fips202.c index c7a44f0..b78df55 100644 --- a/fips202/fips202.c +++ b/fips202/fips202.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: CC0-1.0 /* Based on the CC0 implementation in https://github.com/mupq/mupq and * the public domain implementation in * crypto_hash/keccakc512/simple/ from http://bench.cr.yp.to/supercop.html diff --git a/fips202/fips202.h b/fips202/fips202.h index 6b11cfe..923c923 100644 --- a/fips202/fips202.h +++ b/fips202/fips202.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: CC0-1.0 #ifndef FIPS202_H #define FIPS202_H diff --git a/fips202/keccakf1600.c b/fips202/keccakf1600.c index 917f748..f12640e 100644 --- a/fips202/keccakf1600.c +++ b/fips202/keccakf1600.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: CC0-1.0 /* Based on the CC0 implementation in https://github.com/mupq/mupq and * the public domain implementation in * crypto_hash/keccakc512/simple/ from http://bench.cr.yp.to/supercop.html diff --git a/fips202/keccakf1600.h b/fips202/keccakf1600.h index f3018ec..4843a35 100644 --- a/fips202/keccakf1600.h +++ b/fips202/keccakf1600.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: CC0-1.0 #ifndef KECCAKF1600_H #define KECCAKF1600_H diff --git a/mlkem/api.h b/mlkem/api.h index 70d40f3..ac0ab7b 100644 --- a/mlkem/api.h +++ b/mlkem/api.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 or CC0-1.0 #ifndef API_H #define API_H diff --git a/mlkem/cbd.c b/mlkem/cbd.c index 0adb78d..a101ed2 100644 --- a/mlkem/cbd.c +++ b/mlkem/cbd.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 or CC0-1.0 #include #include "params.h" #include "cbd.h" diff --git a/mlkem/cbd.h b/mlkem/cbd.h index 7b677d7..ceb6459 100644 --- a/mlkem/cbd.h +++ b/mlkem/cbd.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 or CC0-1.0 #ifndef CBD_H #define CBD_H diff --git a/mlkem/indcpa.c b/mlkem/indcpa.c index ed19ff6..bd7fc26 100644 --- a/mlkem/indcpa.c +++ b/mlkem/indcpa.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 or CC0-1.0 #include #include #include diff --git a/mlkem/indcpa.h b/mlkem/indcpa.h index 6dd5088..fd57d84 100644 --- a/mlkem/indcpa.h +++ b/mlkem/indcpa.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 or CC0-1.0 #ifndef INDCPA_H #define INDCPA_H diff --git a/mlkem/kem.c b/mlkem/kem.c index 284625b..b9934e8 100644 --- a/mlkem/kem.c +++ b/mlkem/kem.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 or CC0-1.0 #include #include #include diff --git a/mlkem/kem.h b/mlkem/kem.h index 234f119..5171151 100644 --- a/mlkem/kem.h +++ b/mlkem/kem.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 or CC0-1.0 #ifndef KEM_H #define KEM_H diff --git a/mlkem/ntt.c b/mlkem/ntt.c index 9114ce3..1c364fb 100644 --- a/mlkem/ntt.c +++ b/mlkem/ntt.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 or CC0-1.0 #include #include "params.h" #include "ntt.h" diff --git a/mlkem/ntt.h b/mlkem/ntt.h index 227ea74..cb5bb5c 100644 --- a/mlkem/ntt.h +++ b/mlkem/ntt.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 or CC0-1.0 #ifndef NTT_H #define NTT_H diff --git a/mlkem/params.h b/mlkem/params.h index 5c01973..3378573 100644 --- a/mlkem/params.h +++ b/mlkem/params.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 or CC0-1.0 #ifndef PARAMS_H #define PARAMS_H diff --git a/mlkem/poly.c b/mlkem/poly.c index 980980a..1a597cd 100644 --- a/mlkem/poly.c +++ b/mlkem/poly.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 or CC0-1.0 #include #include "params.h" #include "poly.h" diff --git a/mlkem/poly.h b/mlkem/poly.h index 6d4da78..4f77061 100644 --- a/mlkem/poly.h +++ b/mlkem/poly.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 or CC0-1.0 #ifndef POLY_H #define POLY_H diff --git a/mlkem/polyvec.c b/mlkem/polyvec.c index 9e237c5..5d92fa9 100644 --- a/mlkem/polyvec.c +++ b/mlkem/polyvec.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 or CC0-1.0 #include #include "params.h" #include "poly.h" diff --git a/mlkem/polyvec.h b/mlkem/polyvec.h index c769f2f..fbf7292 100644 --- a/mlkem/polyvec.h +++ b/mlkem/polyvec.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 or CC0-1.0 #ifndef POLYVEC_H #define POLYVEC_H diff --git a/mlkem/randombytes.c b/mlkem/randombytes.c index fc14d8e..696ff19 100644 --- a/mlkem/randombytes.c +++ b/mlkem/randombytes.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 or CC0-1.0 #include #include #include diff --git a/mlkem/randombytes.h b/mlkem/randombytes.h index 619b7f9..4e74283 100644 --- a/mlkem/randombytes.h +++ b/mlkem/randombytes.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 or CC0-1.0 #ifndef RANDOMBYTES_H #define RANDOMBYTES_H diff --git a/mlkem/reduce.c b/mlkem/reduce.c index fe8bf4d..2499885 100644 --- a/mlkem/reduce.c +++ b/mlkem/reduce.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 or CC0-1.0 #include #include "params.h" #include "reduce.h" diff --git a/mlkem/reduce.h b/mlkem/reduce.h index c1bc1e4..901823b 100644 --- a/mlkem/reduce.h +++ b/mlkem/reduce.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 or CC0-1.0 #ifndef REDUCE_H #define REDUCE_H diff --git a/mlkem/symmetric-shake.c b/mlkem/symmetric-shake.c index d2fda91..004de07 100644 --- a/mlkem/symmetric-shake.c +++ b/mlkem/symmetric-shake.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 or CC0-1.0 #include #include #include diff --git a/mlkem/symmetric.h b/mlkem/symmetric.h index c5fdf33..1aab0c5 100644 --- a/mlkem/symmetric.h +++ b/mlkem/symmetric.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 or CC0-1.0 #ifndef SYMMETRIC_H #define SYMMETRIC_H diff --git a/mlkem/verify.c b/mlkem/verify.c index 01f1932..abb7a7c 100644 --- a/mlkem/verify.c +++ b/mlkem/verify.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 or CC0-1.0 #include #include #include "verify.h" diff --git a/mlkem/verify.h b/mlkem/verify.h index f95ac1b..78bdeb9 100644 --- a/mlkem/verify.h +++ b/mlkem/verify.h @@ -1,4 +1,5 @@ -#ifndef VERIFY_H + +// SPDX-License-Identifier: Apache-2.0 or CC0-1.0#ifndef VERIFY_H #define VERIFY_H #include diff --git a/test/test.c b/test/test.c index 7875dc8..818716a 100644 --- a/test/test.c +++ b/test/test.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 #include #include #include