Skip to content

Commit 5d0fe86

Browse files
committed
Adds Apache-2.0 license in addition to CC0
To enable re-use in https://github.com/pq-code-package/mlkem-c-embedded. This is applied only to the sources of pqm4 itself that are to a vast degree written by the pqm4 maintainers. The scheme implementations plus symmetric primitives have other licenses.
1 parent 4b2fc60 commit 5d0fe86

27 files changed

+29
-2
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: Apache-2.0 or CC0-1.0
12
.PHONY: all
23
all: tests tests-bin
34

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,5 +406,6 @@ Each subdirectory containing implementations contains a LICENSE or COPYING file
406406
under what license that specific implementation is released.
407407
The files in common contain licensing information at the top of the file (and
408408
are currently either public domain or MIT).
409-
All other code in this repository is released under the conditions of [CC0](https://creativecommons.org/publicdomain/zero/1.0/).
409+
410+
All other code in this repository is dual-licensed under [Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0) and under the conditions of [CC0](https://creativecommons.org/publicdomain/zero/1.0/).
410411

benchmarks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python3
2+
# SPDX-License-Identifier: Apache-2.0 or CC0-1.0
23
from mupq import mupq
34
from interface import parse_arguments, get_platform
45
import sys

build_everything.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python3
2+
# SPDX-License-Identifier: Apache-2.0 or CC0-1.0
23
"""
34
Builds all of the binaries without flashing them.
45
"""

common/aes.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: Apache-2.0 or CC0-1.0
12
#include <stdint.h>
23
#include <string.h>
34
#include "aes.h"

common/aes.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: Apache-2.0 or CC0-1.0
12
#ifndef AES_H
23
#define AES_H
34

common/hal-mps2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: Apache-2.0 or CC0-1.0
12
#include <hal.h>
23
#include <CMSDK_CM4.h>
34

common/hal-opencm3.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: Apache-2.0 or CC0-1.0
12
#include "hal.h"
23
#include <sys/cdefs.h>
34

common/keccaktest.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: Apache-2.0 or CC0-1.0
12
#include "randombytes.h"
23
#include <hal.h>
34
#include <fips202.h>

common/randombytes.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: Apache-2.0 or CC0-1.0
12
#include "randombytes.h"
23

34
#if defined(STM32F2) || defined(STM32F4) || defined(STM32L4R5ZI) && !defined(MPS2_AN386)

0 commit comments

Comments
 (0)