Skip to content

Commit

Permalink
Add SPDX license (pq-code-package#30)
Browse files Browse the repository at this point in the history
Signed-off-by: Duc Tri Nguyen <[email protected]>
  • Loading branch information
cothan committed Apr 14, 2024
1 parent ee9075d commit ff36807
Show file tree
Hide file tree
Showing 28 changed files with 27 additions and 0 deletions.
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
#ifndef API_H
#define API_H

Expand Down
Empty file removed mlkem/bound_test.c
Empty file.
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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#include <stddef.h>
#include <stdint.h>
#include "verify.h"
Expand Down
1 change: 1 addition & 0 deletions mlkem/verify.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0
#ifndef VERIFY_H
#define VERIFY_H

Expand Down
1 change: 1 addition & 0 deletions randombytes/randombytes.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
Expand Down
1 change: 1 addition & 0 deletions randombytes/randombytes.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0
#ifndef RANDOMBYTES_H
#define RANDOMBYTES_H

Expand Down
1 change: 1 addition & 0 deletions test/test_kyber.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0
#include <stddef.h>
#include <stdio.h>
#include <string.h>
Expand Down

0 comments on commit ff36807

Please sign in to comment.