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

+1
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

+2-1
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

+1
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

+1
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

+1
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

+1
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

+1
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

+1
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

+1
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

+1
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)

common/test.c

+1
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 <randombytes.h>
34
#include <sendfn.h>

convert_benchmarks.py

+1
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
import sys
34
from mupq import mupq
45

interface.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: Apache-2.0 or CC0-1.0
12
import argparse
23

34
from mupq import mupq

mk/config.mk

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
# SPDX-License-Identifier: Apache-2.0 or CC0-1.0
12
CPPFLAGS += \
23
-DPQM4

mk/crypto.mk

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: Apache-2.0 or CC0-1.0
12
SYMCRYPTO_SRC = \
23
mupq/common/fips202.c \
34
mupq/common/sp800-185.c \

mk/cw308t-stm32f3.mk

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: Apache-2.0 or CC0-1.0
12
DEVICE=stm32f303rct7
23
OPENCM3_TARGET=lib/stm32/f3
34

mk/cw308t-stm32f415.mk

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: Apache-2.0 or CC0-1.0
12
DEVICE=stm32f415rgt6
23
OPENCM3_TARGET=lib/stm32/f4
34

mk/mps2-an386.mk

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: Apache-2.0 or CC0-1.0
12
EXCLUDED_SCHEMES = \
23
mupq/crypto_sign/tuov_v/ref%
34

mk/nucleo-l476rg.mk

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: Apache-2.0 or CC0-1.0
12
DEVICE=stm32l476rg
23
OPENCM3_TARGET=lib/stm32/l4
34

mk/nucleo-l4r5zi.mk

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: Apache-2.0 or CC0-1.0
12
DEVICE=stm32l4r5zi
23
OPENCM3_TARGET=lib/stm32/l4
34

mk/opencm3.mk

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: Apache-2.0 or CC0-1.0
12
LIBHAL_SRC := \
23
common/hal-opencm3.c \
34
common/randombytes.c

mk/stm32f4discovery.mk

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: Apache-2.0 or CC0-1.0
12
DEVICE=stm32f407vg
23
OPENCM3_TARGET=lib/stm32/f4
34

mk/tests.mk

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: Apache-2.0 or CC0-1.0
12
ifeq ($(AIO),1)
23
elf/boardtest.elf: common/test.c $(LINKDEPS) $(CONFIG)
34
$(compiletest)

st_nucleo_l4r5.cfg

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0 or CC0-1.0
2+
13
# This is for STM32L4R5 Nucleo Dev Boards.
24
source [find interface/stlink-dap.cfg]
35

test.py

+1
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

testvectors.py

+1
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

0 commit comments

Comments
 (0)