From b42439b886ed12c450ee2dbe0f8b4e5932275abe Mon Sep 17 00:00:00 2001 From: Adrien Nader Date: Thu, 12 Dec 2024 13:38:41 +0100 Subject: [PATCH] Add SPDX headers and copyright notices at the beginning of files. In downstream projects, files may be copied and moved around. This makes it difficult to track the copyrights and licenses without having them stored in each file. I started with .reuse/dep5 but I've also noticed some things: - for Files: *, there is no Copyright: entry which is required by the Debian machine-readable copyright format (and debian packaging is my ultimate goal) - for Files: *, License: is not the same as in the LICENSE file (no AND MIT clause) I've eyed making these changes in a way that would permit creating .reuse/dep5 again in an automated fashion. This isn't possible due to the differences I outline here and due to the tools available but that was a goal (and explains why I changed */Makefile too). While license was fine, I had an issue with copyrights which are not indicated in the project but are required by Debian. I've used "Copyright: TBD" in headers but I'd like to fix that obviously. Moreover, I've chosen to use the most recent copyright/license/* header for ref/{api.h, PQCgenKAT_sign.c,rng.c,rng.h} based on the files at https://csrc.nist.gov/Projects/pqc-dig-sig/standardization/example-files because "All rights reserved." is not a valid license. This had the effect of changing Copyright: too but I think it is more meaningful now. The actual code for these files has changed too but upon review, the changes are all very minor. --- haraka-aesni/Makefile | 3 +++ ref/Makefile | 3 +++ ref/PQCgenKAT_sign.c | 16 ++++++++++------ ref/address.c | 4 ++++ ref/address.h | 4 ++++ ref/api.h | 11 +++++++++++ ref/context.h | 4 ++++ ref/fips202.c | 4 ++++ ref/fips202.h | 4 ++++ ref/fors.c | 4 ++++ ref/fors.h | 4 ++++ ref/haraka.c | 2 ++ ref/haraka.h | 4 ++++ ref/haraka_offsets.h | 4 ++++ ref/hash.h | 4 ++++ ref/hash_haraka.c | 4 ++++ ref/hash_sha2.c | 4 ++++ ref/hash_shake.c | 4 ++++ ref/merkle.c | 4 ++++ ref/merkle.h | 4 ++++ ref/params.h | 4 ++++ ref/params/params-sphincs-haraka-128f.h | 4 ++++ ref/params/params-sphincs-haraka-128s.h | 4 ++++ ref/params/params-sphincs-haraka-192f.h | 4 ++++ ref/params/params-sphincs-haraka-192s.h | 4 ++++ ref/params/params-sphincs-haraka-256f.h | 4 ++++ ref/params/params-sphincs-haraka-256s.h | 4 ++++ ref/params/params-sphincs-sha2-128f.h | 4 ++++ ref/params/params-sphincs-sha2-128s.h | 4 ++++ ref/params/params-sphincs-sha2-192f.h | 4 ++++ ref/params/params-sphincs-sha2-192s.h | 4 ++++ ref/params/params-sphincs-sha2-256f.h | 4 ++++ ref/params/params-sphincs-sha2-256s.h | 4 ++++ ref/params/params-sphincs-shake-128f.h | 4 ++++ ref/params/params-sphincs-shake-128s.h | 4 ++++ ref/params/params-sphincs-shake-192f.h | 4 ++++ ref/params/params-sphincs-shake-192s.h | 4 ++++ ref/params/params-sphincs-shake-256f.h | 4 ++++ ref/params/params-sphincs-shake-256s.h | 4 ++++ ref/randombytes.c | 4 ++++ ref/randombytes.h | 4 ++++ ref/rng.c | 16 ++++++++++------ ref/rng.h | 16 ++++++++++------ ref/sha2.c | 4 ++++ ref/sha2.h | 4 ++++ ref/sha2_offsets.h | 4 ++++ ref/shake_offsets.h | 4 ++++ ref/sign.c | 4 ++++ ref/test/benchmark.c | 4 ++++ ref/test/cycles.c | 4 ++++ ref/test/cycles.h | 4 ++++ ref/test/fors.c | 4 ++++ ref/test/haraka.c | 4 ++++ ref/test/spx.c | 4 ++++ ref/thash.h | 4 ++++ ref/thash_haraka_robust.c | 4 ++++ ref/thash_haraka_simple.c | 4 ++++ ref/thash_sha2_robust.c | 4 ++++ ref/thash_sha2_simple.c | 4 ++++ ref/thash_shake_robust.c | 4 ++++ ref/thash_shake_simple.c | 4 ++++ ref/utils.c | 4 ++++ ref/utils.h | 4 ++++ ref/utilsx1.c | 4 ++++ ref/utilsx1.h | 4 ++++ ref/wots.c | 4 ++++ ref/wots.h | 4 ++++ ref/wotsx1.c | 4 ++++ ref/wotsx1.h | 4 ++++ sha2-avx2/Makefile | 3 +++ sha2-avx2/context.h | 4 ++++ sha2-avx2/fors.c | 4 ++++ sha2-avx2/hash_sha2x8.c | 4 ++++ sha2-avx2/hashx8.h | 4 ++++ sha2-avx2/merkle.c | 4 ++++ sha2-avx2/sha256avx.c | 4 ++++ sha2-avx2/sha256avx.h | 4 ++++ sha2-avx2/sha256x8.c | 4 ++++ sha2-avx2/sha256x8.h | 4 ++++ sha2-avx2/sha512x4.c | 4 ++++ sha2-avx2/sha512x4.h | 4 ++++ sha2-avx2/test/benchmark.c | 4 ++++ sha2-avx2/test/thashx8.c | 4 ++++ sha2-avx2/thash_sha2_robustx8.c | 4 ++++ sha2-avx2/thash_sha2_simplex8.c | 4 ++++ sha2-avx2/thashx8.h | 4 ++++ sha2-avx2/utilsx8.c | 4 ++++ sha2-avx2/utilsx8.h | 4 ++++ sha2-avx2/wots.c | 4 ++++ sha2-avx2/wotsx8.h | 4 ++++ shake-a64/Makefile | 3 +++ shake-a64/context.h | 4 ++++ shake-a64/f1600x2.h | 4 ++++ shake-a64/f1600x2.s | 4 ++++ shake-a64/f1600x2_const.c | 4 ++++ shake-a64/fips202x2.c | 4 ++++ shake-a64/fips202x2.h | 4 ++++ shake-a64/fors.c | 4 ++++ shake-a64/hash_shakex2.c | 4 ++++ shake-a64/hashx2.h | 4 ++++ shake-a64/merkle.c | 4 ++++ shake-a64/test/benchmark.c | 4 ++++ shake-a64/test/thashx2.c | 4 ++++ shake-a64/thash.h | 4 ++++ shake-a64/thash_shake_robustx2.c | 4 ++++ shake-a64/thash_shake_simplex2.c | 4 ++++ shake-a64/thashx2.h | 4 ++++ shake-a64/utilsx2.c | 4 ++++ shake-a64/utilsx2.h | 4 ++++ shake-a64/wots.c | 4 ++++ shake-a64/wotsx2.h | 4 ++++ shake-avx2/Makefile | 3 +++ shake-avx2/context.h | 4 ++++ shake-avx2/fips202x4.c | 4 ++++ shake-avx2/fips202x4.h | 4 ++++ shake-avx2/fors.c | 4 ++++ shake-avx2/hash_shakex4.c | 4 ++++ shake-avx2/hashx4.h | 4 ++++ .../keccak4x/KeccakP-1600-times4-SIMD256.c | 4 ++++ shake-avx2/keccak4x/KeccakP-1600-times4-SnP.h | 4 ++++ .../keccak4x/KeccakP-1600-unrolling.macros | 4 ++++ shake-avx2/keccak4x/SIMD256-config.h | 4 ++++ shake-avx2/keccak4x/align.h | 4 ++++ shake-avx2/keccak4x/brg_endian.h | 1 + shake-avx2/merkle.c | 4 ++++ shake-avx2/test/benchmark.c | 4 ++++ shake-avx2/test/thashx4.c | 4 ++++ shake-avx2/thash_shake_robustx4.c | 4 ++++ shake-avx2/thash_shake_simplex4.c | 4 ++++ shake-avx2/thashx4.h | 4 ++++ shake-avx2/utilsx4.c | 4 ++++ shake-avx2/utilsx4.h | 4 ++++ shake-avx2/wots.c | 4 ++++ shake-avx2/wotsx4.h | 4 ++++ 134 files changed, 551 insertions(+), 18 deletions(-) diff --git a/haraka-aesni/Makefile b/haraka-aesni/Makefile index a5c5816d..04659775 100644 --- a/haraka-aesni/Makefile +++ b/haraka-aesni/Makefile @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT +# Copyright: TBD + PARAMS = sphincs-haraka-128f THASH = robust diff --git a/ref/Makefile b/ref/Makefile index a3aabad2..17d1a6c8 100644 --- a/ref/Makefile +++ b/ref/Makefile @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT +# Copyright: TBD + PARAMS = sphincs-haraka-128f THASH = robust diff --git a/ref/PQCgenKAT_sign.c b/ref/PQCgenKAT_sign.c index 16f41c19..8d9c1915 100644 --- a/ref/PQCgenKAT_sign.c +++ b/ref/PQCgenKAT_sign.c @@ -1,10 +1,14 @@ +/* + * SPDX-License-Identifier: NIST-Software + * Copyright: National Institute of Standards and Technology; The software developed by NIST employees is not subject to copyright protection within the United States. + * +NIST-developed software is provided by NIST as a public service. You may use, copy, and distribute copies of the software in any medium, provided that you keep intact this entire notice. You may improve, modify, and create derivative works of the software or any portion of the software, and you may copy and distribute such modifications or works. Modified works should carry a notice stating that you changed the software and should note the date and nature of any such change. Please explicitly acknowledge the National Institute of Standards and Technology as the source of the software. + +NIST-developed software is expressly provided "AS IS." NIST MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED, IN FACT, OR ARISING BY OPERATION OF LAW, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND DATA ACCURACY. NIST NEITHER REPRESENTS NOR WARRANTS THAT THE OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR-FREE, OR THAT ANY DEFECTS WILL BE CORRECTED. NIST DOES NOT WARRANT OR MAKE ANY REPRESENTATIONS REGARDING THE USE OF THE SOFTWARE OR THE RESULTS THEREOF, INCLUDING BUT NOT LIMITED TO THE CORRECTNESS, ACCURACY, RELIABILITY, OR USEFULNESS OF THE SOFTWARE. + +You are solely responsible for determining the appropriateness of using and distributing the software and you assume all risks associated with its use, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and the unavailability or interruption of operation. This software is not intended to be used in any situation where a failure could cause risk of injury or damage to property. The software developed by NIST employees is not subject to copyright protection within the United States. +*/ -// -// PQCgenKAT_sign.c -// -// Created by Bassham, Lawrence E (Fed) on 8/29/17. -// Copyright © 2017 Bassham, Lawrence E (Fed). All rights reserved. -// #include #include #include diff --git a/ref/address.c b/ref/address.c index b136af80..926fc069 100644 --- a/ref/address.c +++ b/ref/address.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/ref/address.h b/ref/address.h index 49f8d66e..1fc0d67a 100644 --- a/ref/address.h +++ b/ref/address.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_ADDRESS_H #define SPX_ADDRESS_H diff --git a/ref/api.h b/ref/api.h index d57a148f..4f949b86 100644 --- a/ref/api.h +++ b/ref/api.h @@ -1,3 +1,14 @@ +/* + * SPDX-License-Identifier: NIST-Software + * Copyright: National Institute of Standards and Technology; The software developed by NIST employees is not subject to copyright protection within the United States. + * +NIST-developed software is provided by NIST as a public service. You may use, copy, and distribute copies of the software in any medium, provided that you keep intact this entire notice. You may improve, modify, and create derivative works of the software or any portion of the software, and you may copy and distribute such modifications or works. Modified works should carry a notice stating that you changed the software and should note the date and nature of any such change. Please explicitly acknowledge the National Institute of Standards and Technology as the source of the software. + +NIST-developed software is expressly provided "AS IS." NIST MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED, IN FACT, OR ARISING BY OPERATION OF LAW, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND DATA ACCURACY. NIST NEITHER REPRESENTS NOR WARRANTS THAT THE OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR-FREE, OR THAT ANY DEFECTS WILL BE CORRECTED. NIST DOES NOT WARRANT OR MAKE ANY REPRESENTATIONS REGARDING THE USE OF THE SOFTWARE OR THE RESULTS THEREOF, INCLUDING BUT NOT LIMITED TO THE CORRECTNESS, ACCURACY, RELIABILITY, OR USEFULNESS OF THE SOFTWARE. + +You are solely responsible for determining the appropriateness of using and distributing the software and you assume all risks associated with its use, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and the unavailability or interruption of operation. This software is not intended to be used in any situation where a failure could cause risk of injury or damage to property. The software developed by NIST employees is not subject to copyright protection within the United States. +*/ + #ifndef SPX_API_H #define SPX_API_H diff --git a/ref/context.h b/ref/context.h index aded5643..cd738582 100644 --- a/ref/context.h +++ b/ref/context.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_CONTEXT_H #define SPX_CONTEXT_H diff --git a/ref/fips202.c b/ref/fips202.c index 8262d911..b9b03bec 100644 --- a/ref/fips202.c +++ b/ref/fips202.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + /* Based on the public domain implementation in * crypto_hash/keccakc512/simple/ from http://bench.cr.yp.to/supercop.html * by Ronny Van Keer diff --git a/ref/fips202.h b/ref/fips202.h index e11cb7f3..07007ee7 100644 --- a/ref/fips202.h +++ b/ref/fips202.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_FIPS202_H #define SPX_FIPS202_H diff --git a/ref/fors.c b/ref/fors.c index e6aa4b43..08e7d09c 100644 --- a/ref/fors.c +++ b/ref/fors.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include #include diff --git a/ref/fors.h b/ref/fors.h index 8d98017a..db3e185f 100644 --- a/ref/fors.h +++ b/ref/fors.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_FORS_H #define SPX_FORS_H diff --git a/ref/haraka.c b/ref/haraka.c index b9046f2c..39f7f794 100644 --- a/ref/haraka.c +++ b/ref/haraka.c @@ -1,4 +1,6 @@ /* + * SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * * Constant time implementation of the Haraka hash function. * * The bit-sliced implementation of the AES round functions are diff --git a/ref/haraka.h b/ref/haraka.h index 7cd311c2..32028680 100644 --- a/ref/haraka.h +++ b/ref/haraka.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_HARAKA_H #define SPX_HARAKA_H diff --git a/ref/haraka_offsets.h b/ref/haraka_offsets.h index 6afa5f84..46352bbf 100644 --- a/ref/haraka_offsets.h +++ b/ref/haraka_offsets.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #if !defined( HARAKA_OFFSETS_H_ ) #define HARAKA_OFFSETS_H_ diff --git a/ref/hash.h b/ref/hash.h index b141f099..342b868e 100644 --- a/ref/hash.h +++ b/ref/hash.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_HASH_H #define SPX_HASH_H diff --git a/ref/hash_haraka.c b/ref/hash_haraka.c index 0c73525a..23f49f4b 100644 --- a/ref/hash_haraka.c +++ b/ref/hash_haraka.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/ref/hash_sha2.c b/ref/hash_sha2.c index 67098e6e..c6134eae 100644 --- a/ref/hash_sha2.c +++ b/ref/hash_sha2.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/ref/hash_shake.c b/ref/hash_shake.c index f0372bfb..ad99fa68 100644 --- a/ref/hash_shake.c +++ b/ref/hash_shake.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/ref/merkle.c b/ref/merkle.c index 414f4686..4686c0ea 100644 --- a/ref/merkle.c +++ b/ref/merkle.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/ref/merkle.h b/ref/merkle.h index 9ac2759a..51eee9c1 100644 --- a/ref/merkle.h +++ b/ref/merkle.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #if !defined( MERKLE_H_ ) #define MERKLE_H_ diff --git a/ref/params.h b/ref/params.h index 1d7f9c90..12907f47 100644 --- a/ref/params.h +++ b/ref/params.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #define str(s) #s #define xstr(s) str(s) diff --git a/ref/params/params-sphincs-haraka-128f.h b/ref/params/params-sphincs-haraka-128f.h index a9bb1cf5..0aa73ef0 100644 --- a/ref/params/params-sphincs-haraka-128f.h +++ b/ref/params/params-sphincs-haraka-128f.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #ifndef SPX_PARAMS_H #define SPX_PARAMS_H diff --git a/ref/params/params-sphincs-haraka-128s.h b/ref/params/params-sphincs-haraka-128s.h index 73372eed..fb67d7ea 100644 --- a/ref/params/params-sphincs-haraka-128s.h +++ b/ref/params/params-sphincs-haraka-128s.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #ifndef SPX_PARAMS_H #define SPX_PARAMS_H diff --git a/ref/params/params-sphincs-haraka-192f.h b/ref/params/params-sphincs-haraka-192f.h index 9eb356a0..a1fd5e81 100644 --- a/ref/params/params-sphincs-haraka-192f.h +++ b/ref/params/params-sphincs-haraka-192f.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #ifndef SPX_PARAMS_H #define SPX_PARAMS_H diff --git a/ref/params/params-sphincs-haraka-192s.h b/ref/params/params-sphincs-haraka-192s.h index 00b6b70a..18bd05ec 100644 --- a/ref/params/params-sphincs-haraka-192s.h +++ b/ref/params/params-sphincs-haraka-192s.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #ifndef SPX_PARAMS_H #define SPX_PARAMS_H diff --git a/ref/params/params-sphincs-haraka-256f.h b/ref/params/params-sphincs-haraka-256f.h index 7491b66e..26396e58 100644 --- a/ref/params/params-sphincs-haraka-256f.h +++ b/ref/params/params-sphincs-haraka-256f.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #ifndef SPX_PARAMS_H #define SPX_PARAMS_H diff --git a/ref/params/params-sphincs-haraka-256s.h b/ref/params/params-sphincs-haraka-256s.h index 6ef3a5c6..89db1205 100644 --- a/ref/params/params-sphincs-haraka-256s.h +++ b/ref/params/params-sphincs-haraka-256s.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #ifndef SPX_PARAMS_H #define SPX_PARAMS_H diff --git a/ref/params/params-sphincs-sha2-128f.h b/ref/params/params-sphincs-sha2-128f.h index 3f7a60fd..03d0fb63 100644 --- a/ref/params/params-sphincs-sha2-128f.h +++ b/ref/params/params-sphincs-sha2-128f.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #ifndef SPX_PARAMS_H #define SPX_PARAMS_H diff --git a/ref/params/params-sphincs-sha2-128s.h b/ref/params/params-sphincs-sha2-128s.h index 8ef86088..9e93d76c 100644 --- a/ref/params/params-sphincs-sha2-128s.h +++ b/ref/params/params-sphincs-sha2-128s.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #ifndef SPX_PARAMS_H #define SPX_PARAMS_H diff --git a/ref/params/params-sphincs-sha2-192f.h b/ref/params/params-sphincs-sha2-192f.h index d4d98a22..03f26760 100644 --- a/ref/params/params-sphincs-sha2-192f.h +++ b/ref/params/params-sphincs-sha2-192f.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #ifndef SPX_PARAMS_H #define SPX_PARAMS_H diff --git a/ref/params/params-sphincs-sha2-192s.h b/ref/params/params-sphincs-sha2-192s.h index 0070e59f..b9b4c7a5 100644 --- a/ref/params/params-sphincs-sha2-192s.h +++ b/ref/params/params-sphincs-sha2-192s.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #ifndef SPX_PARAMS_H #define SPX_PARAMS_H diff --git a/ref/params/params-sphincs-sha2-256f.h b/ref/params/params-sphincs-sha2-256f.h index 53c5befd..ccc46263 100644 --- a/ref/params/params-sphincs-sha2-256f.h +++ b/ref/params/params-sphincs-sha2-256f.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #ifndef SPX_PARAMS_H #define SPX_PARAMS_H diff --git a/ref/params/params-sphincs-sha2-256s.h b/ref/params/params-sphincs-sha2-256s.h index 10c36638..95f0c5a2 100644 --- a/ref/params/params-sphincs-sha2-256s.h +++ b/ref/params/params-sphincs-sha2-256s.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #ifndef SPX_PARAMS_H #define SPX_PARAMS_H diff --git a/ref/params/params-sphincs-shake-128f.h b/ref/params/params-sphincs-shake-128f.h index 8f77692a..82d181e3 100644 --- a/ref/params/params-sphincs-shake-128f.h +++ b/ref/params/params-sphincs-shake-128f.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #ifndef SPX_PARAMS_H #define SPX_PARAMS_H diff --git a/ref/params/params-sphincs-shake-128s.h b/ref/params/params-sphincs-shake-128s.h index a4d1e139..bb33aac8 100644 --- a/ref/params/params-sphincs-shake-128s.h +++ b/ref/params/params-sphincs-shake-128s.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #ifndef SPX_PARAMS_H #define SPX_PARAMS_H diff --git a/ref/params/params-sphincs-shake-192f.h b/ref/params/params-sphincs-shake-192f.h index b1e73d15..624f15a5 100644 --- a/ref/params/params-sphincs-shake-192f.h +++ b/ref/params/params-sphincs-shake-192f.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #ifndef SPX_PARAMS_H #define SPX_PARAMS_H diff --git a/ref/params/params-sphincs-shake-192s.h b/ref/params/params-sphincs-shake-192s.h index 0882e1c3..a3ffbb6d 100644 --- a/ref/params/params-sphincs-shake-192s.h +++ b/ref/params/params-sphincs-shake-192s.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #ifndef SPX_PARAMS_H #define SPX_PARAMS_H diff --git a/ref/params/params-sphincs-shake-256f.h b/ref/params/params-sphincs-shake-256f.h index e301c28d..f8cb3df8 100644 --- a/ref/params/params-sphincs-shake-256f.h +++ b/ref/params/params-sphincs-shake-256f.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #ifndef SPX_PARAMS_H #define SPX_PARAMS_H diff --git a/ref/params/params-sphincs-shake-256s.h b/ref/params/params-sphincs-shake-256s.h index 0a968944..0af1655d 100644 --- a/ref/params/params-sphincs-shake-256s.h +++ b/ref/params/params-sphincs-shake-256s.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #ifndef SPX_PARAMS_H #define SPX_PARAMS_H diff --git a/ref/randombytes.c b/ref/randombytes.c index cfbca176..1471e12d 100644 --- a/ref/randombytes.c +++ b/ref/randombytes.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + /* This code was taken from the SPHINCS reference implementation and is public domain. */ diff --git a/ref/randombytes.h b/ref/randombytes.h index 671c1b15..c5dfda9d 100644 --- a/ref/randombytes.h +++ b/ref/randombytes.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_RANDOMBYTES_H #define SPX_RANDOMBYTES_H diff --git a/ref/rng.c b/ref/rng.c index 36f5b272..6375e87a 100644 --- a/ref/rng.c +++ b/ref/rng.c @@ -1,9 +1,13 @@ -// -// rng.c -// -// Created by Bassham, Lawrence E (Fed) on 8/29/17. -// Copyright © 2017 Bassham, Lawrence E (Fed). All rights reserved. -// +/* + * SPDX-License-Identifier: NIST-Software + * Copyright: National Institute of Standards and Technology; The software developed by NIST employees is not subject to copyright protection within the United States. + * +NIST-developed software is provided by NIST as a public service. You may use, copy, and distribute copies of the software in any medium, provided that you keep intact this entire notice. You may improve, modify, and create derivative works of the software or any portion of the software, and you may copy and distribute such modifications or works. Modified works should carry a notice stating that you changed the software and should note the date and nature of any such change. Please explicitly acknowledge the National Institute of Standards and Technology as the source of the software. + +NIST-developed software is expressly provided "AS IS." NIST MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED, IN FACT, OR ARISING BY OPERATION OF LAW, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND DATA ACCURACY. NIST NEITHER REPRESENTS NOR WARRANTS THAT THE OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR-FREE, OR THAT ANY DEFECTS WILL BE CORRECTED. NIST DOES NOT WARRANT OR MAKE ANY REPRESENTATIONS REGARDING THE USE OF THE SOFTWARE OR THE RESULTS THEREOF, INCLUDING BUT NOT LIMITED TO THE CORRECTNESS, ACCURACY, RELIABILITY, OR USEFULNESS OF THE SOFTWARE. + +You are solely responsible for determining the appropriateness of using and distributing the software and you assume all risks associated with its use, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and the unavailability or interruption of operation. This software is not intended to be used in any situation where a failure could cause risk of injury or damage to property. The software developed by NIST employees is not subject to copyright protection within the United States. +*/ #include #include "rng.h" diff --git a/ref/rng.h b/ref/rng.h index c4f1c607..46f939e7 100644 --- a/ref/rng.h +++ b/ref/rng.h @@ -1,9 +1,13 @@ -// -// rng.h -// -// Created by Bassham, Lawrence E (Fed) on 8/29/17. -// Copyright © 2017 Bassham, Lawrence E (Fed). All rights reserved. -// +/* + * SPDX-License-Identifier: NIST-Software + * Copyright: National Institute of Standards and Technology; The software developed by NIST employees is not subject to copyright protection within the United States. + * +NIST-developed software is provided by NIST as a public service. You may use, copy, and distribute copies of the software in any medium, provided that you keep intact this entire notice. You may improve, modify, and create derivative works of the software or any portion of the software, and you may copy and distribute such modifications or works. Modified works should carry a notice stating that you changed the software and should note the date and nature of any such change. Please explicitly acknowledge the National Institute of Standards and Technology as the source of the software. + +NIST-developed software is expressly provided "AS IS." NIST MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED, IN FACT, OR ARISING BY OPERATION OF LAW, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND DATA ACCURACY. NIST NEITHER REPRESENTS NOR WARRANTS THAT THE OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR-FREE, OR THAT ANY DEFECTS WILL BE CORRECTED. NIST DOES NOT WARRANT OR MAKE ANY REPRESENTATIONS REGARDING THE USE OF THE SOFTWARE OR THE RESULTS THEREOF, INCLUDING BUT NOT LIMITED TO THE CORRECTNESS, ACCURACY, RELIABILITY, OR USEFULNESS OF THE SOFTWARE. + +You are solely responsible for determining the appropriateness of using and distributing the software and you assume all risks associated with its use, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and the unavailability or interruption of operation. This software is not intended to be used in any situation where a failure could cause risk of injury or damage to property. The software developed by NIST employees is not subject to copyright protection within the United States. +*/ #ifndef rng_h #define rng_h diff --git a/ref/sha2.c b/ref/sha2.c index ef730470..da912800 100644 --- a/ref/sha2.c +++ b/ref/sha2.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + /* Based on the public domain implementation in * crypto_hash/sha512/ref/ from http://bench.cr.yp.to/supercop.html * by D. J. Bernstein */ diff --git a/ref/sha2.h b/ref/sha2.h index 732ab4bf..564a296a 100644 --- a/ref/sha2.h +++ b/ref/sha2.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_SHA2_H #define SPX_SHA2_H diff --git a/ref/sha2_offsets.h b/ref/sha2_offsets.h index 49f7e851..ea87aa7f 100644 --- a/ref/sha2_offsets.h +++ b/ref/sha2_offsets.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SHA2_OFFSETS_H_ #define SHA2_OFFSETS_H_ diff --git a/ref/shake_offsets.h b/ref/shake_offsets.h index 0407bdf9..9a6b6cf5 100644 --- a/ref/shake_offsets.h +++ b/ref/shake_offsets.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #if !defined( SHAKE_OFFSETS_H_ ) #define SHAKE_OFFSETS_H_ diff --git a/ref/sign.c b/ref/sign.c index a8e0c3c3..8a0b4494 100644 --- a/ref/sign.c +++ b/ref/sign.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include #include diff --git a/ref/test/benchmark.c b/ref/test/benchmark.c index b062545f..a7116dea 100644 --- a/ref/test/benchmark.c +++ b/ref/test/benchmark.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #define _POSIX_C_SOURCE 199309L #include diff --git a/ref/test/cycles.c b/ref/test/cycles.c index 0fa46b57..a7425479 100644 --- a/ref/test/cycles.c +++ b/ref/test/cycles.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #include "cycles.h" #if defined(__aarch64__) && defined(__APPLE__) diff --git a/ref/test/cycles.h b/ref/test/cycles.h index 913a9a55..47721bf5 100644 --- a/ref/test/cycles.h +++ b/ref/test/cycles.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #ifndef SPX_CYCLES_H #define SPX_CYCLES_H diff --git a/ref/test/fors.c b/ref/test/fors.c index 73c828d7..422fe03b 100644 --- a/ref/test/fors.c +++ b/ref/test/fors.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #include #include diff --git a/ref/test/haraka.c b/ref/test/haraka.c index 927d0de8..870f2c6e 100644 --- a/ref/test/haraka.c +++ b/ref/test/haraka.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #include #include #include diff --git a/ref/test/spx.c b/ref/test/spx.c index 2b214b9d..82e77da0 100644 --- a/ref/test/spx.c +++ b/ref/test/spx.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #include #include #include diff --git a/ref/thash.h b/ref/thash.h index 8687ccfb..b8a7a6e1 100644 --- a/ref/thash.h +++ b/ref/thash.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_THASH_H #define SPX_THASH_H diff --git a/ref/thash_haraka_robust.c b/ref/thash_haraka_robust.c index 005e14a2..20747f5b 100644 --- a/ref/thash_haraka_robust.c +++ b/ref/thash_haraka_robust.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/ref/thash_haraka_simple.c b/ref/thash_haraka_simple.c index 10402972..3e1415c0 100644 --- a/ref/thash_haraka_simple.c +++ b/ref/thash_haraka_simple.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/ref/thash_sha2_robust.c b/ref/thash_sha2_robust.c index 67ca3dae..cc78ae9a 100644 --- a/ref/thash_sha2_robust.c +++ b/ref/thash_sha2_robust.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/ref/thash_sha2_simple.c b/ref/thash_sha2_simple.c index da588964..2abb8195 100644 --- a/ref/thash_sha2_simple.c +++ b/ref/thash_sha2_simple.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/ref/thash_shake_robust.c b/ref/thash_shake_robust.c index 3589fdef..ce74c78d 100644 --- a/ref/thash_shake_robust.c +++ b/ref/thash_shake_robust.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/ref/thash_shake_simple.c b/ref/thash_shake_simple.c index 7ce5c55f..0760e250 100644 --- a/ref/thash_shake_simple.c +++ b/ref/thash_shake_simple.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/ref/utils.c b/ref/utils.c index 63d52eef..1e8565bb 100644 --- a/ref/utils.c +++ b/ref/utils.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include "utils.h" diff --git a/ref/utils.h b/ref/utils.h index b13502ce..861f1a2a 100644 --- a/ref/utils.h +++ b/ref/utils.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_UTILS_H #define SPX_UTILS_H diff --git a/ref/utilsx1.c b/ref/utilsx1.c index f6a6700a..88935ae6 100644 --- a/ref/utilsx1.c +++ b/ref/utilsx1.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include "utils.h" diff --git a/ref/utilsx1.h b/ref/utilsx1.h index a7fcf15e..bee9c0d8 100644 --- a/ref/utilsx1.h +++ b/ref/utilsx1.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_UTILSX4_H #define SPX_UTILSX4_H diff --git a/ref/wots.c b/ref/wots.c index df83278c..79555aef 100644 --- a/ref/wots.c +++ b/ref/wots.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/ref/wots.h b/ref/wots.h index 7e770562..30ec9fad 100644 --- a/ref/wots.h +++ b/ref/wots.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_WOTS_H #define SPX_WOTS_H diff --git a/ref/wotsx1.c b/ref/wotsx1.c index dfb37806..0e0e3d9b 100644 --- a/ref/wotsx1.c +++ b/ref/wotsx1.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/ref/wotsx1.h b/ref/wotsx1.h index 1257f816..b5a7a15f 100644 --- a/ref/wotsx1.h +++ b/ref/wotsx1.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #if !defined( WOTSX1_H_ ) #define WOTSX1_H_ diff --git a/sha2-avx2/Makefile b/sha2-avx2/Makefile index f708543c..bfe4174c 100644 --- a/sha2-avx2/Makefile +++ b/sha2-avx2/Makefile @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT +# Copyright: TBD + PARAMS = sphincs-sha2-128f THASH = robust diff --git a/sha2-avx2/context.h b/sha2-avx2/context.h index 05ffbe85..ed02d505 100644 --- a/sha2-avx2/context.h +++ b/sha2-avx2/context.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_CONTEXT_H #define SPX_CONTEXT_H diff --git a/sha2-avx2/fors.c b/sha2-avx2/fors.c index 67ad3228..e7f71a09 100644 --- a/sha2-avx2/fors.c +++ b/sha2-avx2/fors.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include #include diff --git a/sha2-avx2/hash_sha2x8.c b/sha2-avx2/hash_sha2x8.c index 3f59b9ab..30a7b7ca 100644 --- a/sha2-avx2/hash_sha2x8.c +++ b/sha2-avx2/hash_sha2x8.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/sha2-avx2/hashx8.h b/sha2-avx2/hashx8.h index dc924b40..639845b2 100644 --- a/sha2-avx2/hashx8.h +++ b/sha2-avx2/hashx8.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_HASHX8_H #define SPX_HASHX8_H diff --git a/sha2-avx2/merkle.c b/sha2-avx2/merkle.c index 0b3f6666..48e3f158 100644 --- a/sha2-avx2/merkle.c +++ b/sha2-avx2/merkle.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/sha2-avx2/sha256avx.c b/sha2-avx2/sha256avx.c index 7fc10916..3d585ba4 100644 --- a/sha2-avx2/sha256avx.c +++ b/sha2-avx2/sha256avx.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include #include diff --git a/sha2-avx2/sha256avx.h b/sha2-avx2/sha256avx.h index e887063c..d690b012 100644 --- a/sha2-avx2/sha256avx.h +++ b/sha2-avx2/sha256avx.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SHA256AVX_H #define SHA256AVX_H #include "immintrin.h" diff --git a/sha2-avx2/sha256x8.c b/sha2-avx2/sha256x8.c index 6f4f965e..2c8a5cfa 100644 --- a/sha2-avx2/sha256x8.c +++ b/sha2-avx2/sha256x8.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include "sha256x8.h" diff --git a/sha2-avx2/sha256x8.h b/sha2-avx2/sha256x8.h index 0060de5d..46c1ced8 100644 --- a/sha2-avx2/sha256x8.h +++ b/sha2-avx2/sha256x8.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_SHA256X8_H #define SPX_SHA256X8_H diff --git a/sha2-avx2/sha512x4.c b/sha2-avx2/sha512x4.c index 3eaa0f6e..c53bd9e4 100644 --- a/sha2-avx2/sha512x4.c +++ b/sha2-avx2/sha512x4.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include #include diff --git a/sha2-avx2/sha512x4.h b/sha2-avx2/sha512x4.h index 013459f4..412bbb66 100644 --- a/sha2-avx2/sha512x4.h +++ b/sha2-avx2/sha512x4.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SHA512AVX_H #define SHA512AVX_H #include diff --git a/sha2-avx2/test/benchmark.c b/sha2-avx2/test/benchmark.c index a65bd621..9d9f9f48 100644 --- a/sha2-avx2/test/benchmark.c +++ b/sha2-avx2/test/benchmark.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #define _POSIX_C_SOURCE 199309L #include diff --git a/sha2-avx2/test/thashx8.c b/sha2-avx2/test/thashx8.c index 37d27c33..093fc809 100644 --- a/sha2-avx2/test/thashx8.c +++ b/sha2-avx2/test/thashx8.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #include #include diff --git a/sha2-avx2/thash_sha2_robustx8.c b/sha2-avx2/thash_sha2_robustx8.c index 8700d90c..261857a3 100644 --- a/sha2-avx2/thash_sha2_robustx8.c +++ b/sha2-avx2/thash_sha2_robustx8.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/sha2-avx2/thash_sha2_simplex8.c b/sha2-avx2/thash_sha2_simplex8.c index 2b40d028..2e3d0928 100644 --- a/sha2-avx2/thash_sha2_simplex8.c +++ b/sha2-avx2/thash_sha2_simplex8.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/sha2-avx2/thashx8.h b/sha2-avx2/thashx8.h index d6bf6181..40ef50cf 100644 --- a/sha2-avx2/thashx8.h +++ b/sha2-avx2/thashx8.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_THASHX8_H #define SPX_THASHX8_H diff --git a/sha2-avx2/utilsx8.c b/sha2-avx2/utilsx8.c index af21cf5f..a0232efd 100644 --- a/sha2-avx2/utilsx8.c +++ b/sha2-avx2/utilsx8.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include "utils.h" diff --git a/sha2-avx2/utilsx8.h b/sha2-avx2/utilsx8.h index ca42146c..227e8959 100644 --- a/sha2-avx2/utilsx8.h +++ b/sha2-avx2/utilsx8.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_UTILSX8_H #define SPX_UTILSX8_H diff --git a/sha2-avx2/wots.c b/sha2-avx2/wots.c index 779a8684..93d79227 100644 --- a/sha2-avx2/wots.c +++ b/sha2-avx2/wots.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/sha2-avx2/wotsx8.h b/sha2-avx2/wotsx8.h index 10f72ad6..a8b75745 100644 --- a/sha2-avx2/wotsx8.h +++ b/sha2-avx2/wotsx8.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #if !defined( WOTSX8_H_ ) #define WOTSX8_H_ diff --git a/shake-a64/Makefile b/shake-a64/Makefile index d3b566ae..c6772149 100644 --- a/shake-a64/Makefile +++ b/shake-a64/Makefile @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT +# Copyright: TBD + PARAMS = sphincs-shake-128f THASH = robust diff --git a/shake-a64/context.h b/shake-a64/context.h index 993c9ce4..a9444339 100644 --- a/shake-a64/context.h +++ b/shake-a64/context.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_CONTEXT_H #define SPX_CONTEXT_H diff --git a/shake-a64/f1600x2.h b/shake-a64/f1600x2.h index 70c5a8eb..47299486 100644 --- a/shake-a64/f1600x2.h +++ b/shake-a64/f1600x2.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_F1600X2_H #define SPX_F1600X2_H diff --git a/shake-a64/f1600x2.s b/shake-a64/f1600x2.s index 640ed791..9aad1672 100644 --- a/shake-a64/f1600x2.s +++ b/shake-a64/f1600x2.s @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + # From https://github.com/bwesterb/armed-keccak .macro round diff --git a/shake-a64/f1600x2_const.c b/shake-a64/f1600x2_const.c index 68801766..262c8222 100644 --- a/shake-a64/f1600x2_const.c +++ b/shake-a64/f1600x2_const.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include "f1600x2.h" uint64_t f1600_RC[24] = { diff --git a/shake-a64/fips202x2.c b/shake-a64/fips202x2.c index 87c0df8c..127f6bcf 100644 --- a/shake-a64/fips202x2.c +++ b/shake-a64/fips202x2.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/shake-a64/fips202x2.h b/shake-a64/fips202x2.h index 7ba58b35..59c83ee0 100644 --- a/shake-a64/fips202x2.h +++ b/shake-a64/fips202x2.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_FIPS202X2_H #define SPX_FIPS202X2_H diff --git a/shake-a64/fors.c b/shake-a64/fors.c index a19fc7e5..f2731011 100644 --- a/shake-a64/fors.c +++ b/shake-a64/fors.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include #include diff --git a/shake-a64/hash_shakex2.c b/shake-a64/hash_shakex2.c index d6f36c2d..76726bfc 100644 --- a/shake-a64/hash_shakex2.c +++ b/shake-a64/hash_shakex2.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/shake-a64/hashx2.h b/shake-a64/hashx2.h index 25ce94dd..6e044582 100644 --- a/shake-a64/hashx2.h +++ b/shake-a64/hashx2.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_HASHX2_H #define SPX_HASHX2_H diff --git a/shake-a64/merkle.c b/shake-a64/merkle.c index b2791d11..c3bf40e7 100644 --- a/shake-a64/merkle.c +++ b/shake-a64/merkle.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/shake-a64/test/benchmark.c b/shake-a64/test/benchmark.c index a1affb04..8600d873 100644 --- a/shake-a64/test/benchmark.c +++ b/shake-a64/test/benchmark.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #define _POSIX_C_SOURCE 199309L #include diff --git a/shake-a64/test/thashx2.c b/shake-a64/test/thashx2.c index 0b55b131..54c6cfe4 100644 --- a/shake-a64/test/thashx2.c +++ b/shake-a64/test/thashx2.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #include #include diff --git a/shake-a64/thash.h b/shake-a64/thash.h index ec9222c8..4441163b 100644 --- a/shake-a64/thash.h +++ b/shake-a64/thash.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_THASHX2_AS_ONE #define SPX_THASHX2_AS_ONE diff --git a/shake-a64/thash_shake_robustx2.c b/shake-a64/thash_shake_robustx2.c index 77e09ff9..ba1c6ef7 100644 --- a/shake-a64/thash_shake_robustx2.c +++ b/shake-a64/thash_shake_robustx2.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/shake-a64/thash_shake_simplex2.c b/shake-a64/thash_shake_simplex2.c index 0bd7130c..935f56cb 100644 --- a/shake-a64/thash_shake_simplex2.c +++ b/shake-a64/thash_shake_simplex2.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/shake-a64/thashx2.h b/shake-a64/thashx2.h index bde4f598..1fd777f8 100644 --- a/shake-a64/thashx2.h +++ b/shake-a64/thashx2.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_THASHX2_H #define SPX_THASHX2_H diff --git a/shake-a64/utilsx2.c b/shake-a64/utilsx2.c index 7b75fb43..b6cb41a8 100644 --- a/shake-a64/utilsx2.c +++ b/shake-a64/utilsx2.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include "utils.h" diff --git a/shake-a64/utilsx2.h b/shake-a64/utilsx2.h index 3fcfb9df..8684426f 100644 --- a/shake-a64/utilsx2.h +++ b/shake-a64/utilsx2.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_UTILSX2_H #define SPX_UTILSX2_H diff --git a/shake-a64/wots.c b/shake-a64/wots.c index ef0235b6..d52b5232 100644 --- a/shake-a64/wots.c +++ b/shake-a64/wots.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/shake-a64/wotsx2.h b/shake-a64/wotsx2.h index 62377376..7be26750 100644 --- a/shake-a64/wotsx2.h +++ b/shake-a64/wotsx2.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #if !defined( WOTSX2_H_ ) #define WOTSX2_H_ diff --git a/shake-avx2/Makefile b/shake-avx2/Makefile index fa8421cc..a7fc66a3 100644 --- a/shake-avx2/Makefile +++ b/shake-avx2/Makefile @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT +# Copyright: TBD + PARAMS = sphincs-shake-128f THASH = robust diff --git a/shake-avx2/context.h b/shake-avx2/context.h index 993c9ce4..a9444339 100644 --- a/shake-avx2/context.h +++ b/shake-avx2/context.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_CONTEXT_H #define SPX_CONTEXT_H diff --git a/shake-avx2/fips202x4.c b/shake-avx2/fips202x4.c index b875467e..c4dd07cf 100644 --- a/shake-avx2/fips202x4.c +++ b/shake-avx2/fips202x4.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include #include diff --git a/shake-avx2/fips202x4.h b/shake-avx2/fips202x4.h index bc03f181..0db3c0a7 100644 --- a/shake-avx2/fips202x4.h +++ b/shake-avx2/fips202x4.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_FIPS202X4_H #define SPX_FIPS202X4_H diff --git a/shake-avx2/fors.c b/shake-avx2/fors.c index 8b634f4c..820cc76f 100644 --- a/shake-avx2/fors.c +++ b/shake-avx2/fors.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include #include diff --git a/shake-avx2/hash_shakex4.c b/shake-avx2/hash_shakex4.c index 93ee3cc3..13f992ab 100644 --- a/shake-avx2/hash_shakex4.c +++ b/shake-avx2/hash_shakex4.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/shake-avx2/hashx4.h b/shake-avx2/hashx4.h index 1c196183..bbf4f99a 100644 --- a/shake-avx2/hashx4.h +++ b/shake-avx2/hashx4.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_HASHX4_H #define SPX_HASHX4_H diff --git a/shake-avx2/keccak4x/KeccakP-1600-times4-SIMD256.c b/shake-avx2/keccak4x/KeccakP-1600-times4-SIMD256.c index 7a0428fb..36760386 100644 --- a/shake-avx2/keccak4x/KeccakP-1600-times4-SIMD256.c +++ b/shake-avx2/keccak4x/KeccakP-1600-times4-SIMD256.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + /* Implementation by the Keccak, Keyak and Ketje Teams, namely, Guido Bertoni, Joan Daemen, Michaël Peeters, Gilles Van Assche and Ronny Van Keer, hereby diff --git a/shake-avx2/keccak4x/KeccakP-1600-times4-SnP.h b/shake-avx2/keccak4x/KeccakP-1600-times4-SnP.h index 60338488..981225c8 100644 --- a/shake-avx2/keccak4x/KeccakP-1600-times4-SnP.h +++ b/shake-avx2/keccak4x/KeccakP-1600-times4-SnP.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + /* Implementation by the Keccak, Keyak and Ketje Teams, namely, Guido Bertoni, Joan Daemen, Michaël Peeters, Gilles Van Assche and Ronny Van Keer, hereby diff --git a/shake-avx2/keccak4x/KeccakP-1600-unrolling.macros b/shake-avx2/keccak4x/KeccakP-1600-unrolling.macros index 3180bb06..59400411 100644 --- a/shake-avx2/keccak4x/KeccakP-1600-unrolling.macros +++ b/shake-avx2/keccak4x/KeccakP-1600-unrolling.macros @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + /* Implementation by the Keccak, Keyak and Ketje Teams, namely, Guido Bertoni, Joan Daemen, Michaël Peeters, Gilles Van Assche and Ronny Van Keer, hereby diff --git a/shake-avx2/keccak4x/SIMD256-config.h b/shake-avx2/keccak4x/SIMD256-config.h index 1c65fe29..4e4a8da2 100644 --- a/shake-avx2/keccak4x/SIMD256-config.h +++ b/shake-avx2/keccak4x/SIMD256-config.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #define KeccakP1600times4_implementation_config "AVX2, all rounds unrolled" #define KeccakP1600times4_fullUnrolling #define KeccakP1600times4_useAVX2 diff --git a/shake-avx2/keccak4x/align.h b/shake-avx2/keccak4x/align.h index e29771ed..1b479fba 100644 --- a/shake-avx2/keccak4x/align.h +++ b/shake-avx2/keccak4x/align.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + /* Implementation by the Keccak, Keyak and Ketje Teams, namely, Guido Bertoni, Joan Daemen, Michaël Peeters, Gilles Van Assche and Ronny Van Keer, hereby diff --git a/shake-avx2/keccak4x/brg_endian.h b/shake-avx2/keccak4x/brg_endian.h index 7226eb3b..dbd8903e 100644 --- a/shake-avx2/keccak4x/brg_endian.h +++ b/shake-avx2/keccak4x/brg_endian.h @@ -1,4 +1,5 @@ /* + * SPDX-License-Identifier: Brian-Gladman-3-Clause --------------------------------------------------------------------------- Copyright (c) 1998-2008, Brian Gladman, Worcester, UK. All rights reserved. diff --git a/shake-avx2/merkle.c b/shake-avx2/merkle.c index e3929d87..69989bd0 100644 --- a/shake-avx2/merkle.c +++ b/shake-avx2/merkle.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/shake-avx2/test/benchmark.c b/shake-avx2/test/benchmark.c index a5767a45..b14fd7d3 100644 --- a/shake-avx2/test/benchmark.c +++ b/shake-avx2/test/benchmark.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #define _POSIX_C_SOURCE 199309L #include diff --git a/shake-avx2/test/thashx4.c b/shake-avx2/test/thashx4.c index 54e96f94..1fcbb3e0 100644 --- a/shake-avx2/test/thashx4.c +++ b/shake-avx2/test/thashx4.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR LicenseRef-SPHINCS-PLUS-Public-Domain + * Copyright: TBD + * */ + #include #include diff --git a/shake-avx2/thash_shake_robustx4.c b/shake-avx2/thash_shake_robustx4.c index ba136a66..e7de118b 100644 --- a/shake-avx2/thash_shake_robustx4.c +++ b/shake-avx2/thash_shake_robustx4.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/shake-avx2/thash_shake_simplex4.c b/shake-avx2/thash_shake_simplex4.c index 3763ed11..2686d823 100644 --- a/shake-avx2/thash_shake_simplex4.c +++ b/shake-avx2/thash_shake_simplex4.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/shake-avx2/thashx4.h b/shake-avx2/thashx4.h index 045237e9..a7edb8dc 100644 --- a/shake-avx2/thashx4.h +++ b/shake-avx2/thashx4.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_THASHX4_H #define SPX_THASHX4_H diff --git a/shake-avx2/utilsx4.c b/shake-avx2/utilsx4.c index 4d69825e..a6e77549 100644 --- a/shake-avx2/utilsx4.c +++ b/shake-avx2/utilsx4.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include "utils.h" diff --git a/shake-avx2/utilsx4.h b/shake-avx2/utilsx4.h index 92e0a4a3..ea5fca69 100644 --- a/shake-avx2/utilsx4.h +++ b/shake-avx2/utilsx4.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #ifndef SPX_UTILSX4_H #define SPX_UTILSX4_H diff --git a/shake-avx2/wots.c b/shake-avx2/wots.c index 0788b803..a7ed4173 100644 --- a/shake-avx2/wots.c +++ b/shake-avx2/wots.c @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #include #include diff --git a/shake-avx2/wotsx4.h b/shake-avx2/wotsx4.h index 2a311c54..b14e0125 100644 --- a/shake-avx2/wotsx4.h +++ b/shake-avx2/wotsx4.h @@ -1,3 +1,7 @@ +/* SPDX-License-Identifier: (LicenseRef-SPHINCS-PLUS-Public-Domain OR CC0-1.0 OR 0BSD OR MIT-0) AND MIT + * Copyright: TBD + * */ + #if !defined( WOTSX4_H_ ) #define WOTSX4_H_