Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SPDX license identifiers to each file #14

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions fips202/fips202.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions fips202/fips202.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: CC0-1.0
#ifndef FIPS202_H
#define FIPS202_H

Expand Down
1 change: 1 addition & 0 deletions fips202/keccakf1600.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions fips202/keccakf1600.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: CC0-1.0
#ifndef KECCAKF1600_H
#define KECCAKF1600_H

Expand Down
1 change: 1 addition & 0 deletions mlkem/api.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 or CC0-1.0
#ifndef API_H
#define API_H

Expand Down
1 change: 1 addition & 0 deletions mlkem/cbd.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 or CC0-1.0
#include <stdint.h>
#include "params.h"
#include "cbd.h"
Expand Down
1 change: 1 addition & 0 deletions mlkem/cbd.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 or CC0-1.0
#ifndef CBD_H
#define CBD_H

Expand Down
1 change: 1 addition & 0 deletions mlkem/indcpa.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 or CC0-1.0
#include <stddef.h>
#include <stdint.h>
#include <string.h>
Expand Down
1 change: 1 addition & 0 deletions mlkem/indcpa.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 or CC0-1.0
#ifndef INDCPA_H
#define INDCPA_H

Expand Down
1 change: 1 addition & 0 deletions mlkem/kem.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 or CC0-1.0
#include <stddef.h>
#include <stdint.h>
#include <string.h>
Expand Down
1 change: 1 addition & 0 deletions mlkem/kem.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 or CC0-1.0
#ifndef KEM_H
#define KEM_H

Expand Down
1 change: 1 addition & 0 deletions mlkem/ntt.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 or CC0-1.0
#include <stdint.h>
#include "params.h"
#include "ntt.h"
Expand Down
1 change: 1 addition & 0 deletions mlkem/ntt.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 or CC0-1.0
#ifndef NTT_H
#define NTT_H

Expand Down
1 change: 1 addition & 0 deletions mlkem/params.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 or CC0-1.0
#ifndef PARAMS_H
#define PARAMS_H

Expand Down
1 change: 1 addition & 0 deletions mlkem/poly.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 or CC0-1.0
#include <stdint.h>
#include "params.h"
#include "poly.h"
Expand Down
1 change: 1 addition & 0 deletions mlkem/poly.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 or CC0-1.0
#ifndef POLY_H
#define POLY_H

Expand Down
1 change: 1 addition & 0 deletions mlkem/polyvec.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 or CC0-1.0
#include <stdint.h>
#include "params.h"
#include "poly.h"
Expand Down
1 change: 1 addition & 0 deletions mlkem/polyvec.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 or CC0-1.0
#ifndef POLYVEC_H
#define POLYVEC_H

Expand Down
1 change: 1 addition & 0 deletions mlkem/reduce.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 or CC0-1.0
#include <stdint.h>
#include "params.h"
#include "reduce.h"
Expand Down
1 change: 1 addition & 0 deletions mlkem/reduce.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 or CC0-1.0
#ifndef REDUCE_H
#define REDUCE_H

Expand Down
1 change: 1 addition & 0 deletions mlkem/symmetric-shake.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 or CC0-1.0
#include <stddef.h>
#include <stdint.h>
#include <string.h>
Expand Down
1 change: 1 addition & 0 deletions mlkem/symmetric.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 or CC0-1.0
#ifndef SYMMETRIC_H
#define SYMMETRIC_H

Expand Down
1 change: 1 addition & 0 deletions mlkem/verify.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 or CC0-1.0
#include <stddef.h>
#include <stdint.h>
#include "verify.h"
Expand Down
2 changes: 2 additions & 0 deletions mlkem/verify.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@

// SPDX-License-Identifier: Apache-2.0 or CC0-1.0#ifndef VERIFY_H
#ifndef VERIFY_H
#define VERIFY_H

Expand Down