summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2019-05-09 13:35:30 +0900
committerCommit Bot <commit-bot@chromium.org>2020-03-25 02:13:31 +0000
commitc830ecc1f728b722fde24a5da14a89f9223f291c (patch)
treef60b011c069bec340f3eaef1f835a88ca4a70fe7
parentd1f7ca6f287eeeeba0d397eed87473415276ac6b (diff)
downloadchrome-ec-c830ecc1f728b722fde24a5da14a89f9223f291c.tar.gz
core/cortex-m0/curve25519: Move code to third_party folder
Also, add LICENSE file (some files are under CC0, some are public domain), and METADATA file. BRANCH=none BUG=chromium:884905 TEST=make buildall -j, which also include basic tests. Change-Id: Ib3a7eb9245a0634c4052064c3e36cbe2ddafbcb9 Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1599761 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
l---------core/cortex-m0/curve255191
-rw-r--r--third_party/unacl-curve25519/LICENSE (renamed from core/cortex-m0/curve25519/cc0_1.0)5
-rw-r--r--third_party/unacl-curve25519/METADATA25
-rw-r--r--third_party/unacl-curve25519/core/cortex-m0/curve25519/mpy121666.S (renamed from core/cortex-m0/curve25519/mpy121666.S)0
-rw-r--r--third_party/unacl-curve25519/core/cortex-m0/curve25519/mul.S (renamed from core/cortex-m0/curve25519/mul.S)0
-rw-r--r--third_party/unacl-curve25519/core/cortex-m0/curve25519/reduce25519.S (renamed from core/cortex-m0/curve25519/reduce25519.S)0
-rw-r--r--third_party/unacl-curve25519/core/cortex-m0/curve25519/scalarmult.c (renamed from core/cortex-m0/curve25519/scalarmult.c)0
-rw-r--r--third_party/unacl-curve25519/core/cortex-m0/curve25519/sqr.S (renamed from core/cortex-m0/curve25519/sqr.S)0
8 files changed, 31 insertions, 0 deletions
diff --git a/core/cortex-m0/curve25519 b/core/cortex-m0/curve25519
new file mode 120000
index 0000000000..ee9cb3b4a9
--- /dev/null
+++ b/core/cortex-m0/curve25519
@@ -0,0 +1 @@
+../../third_party/unacl-curve25519/core/cortex-m0/curve25519 \ No newline at end of file
diff --git a/core/cortex-m0/curve25519/cc0_1.0 b/third_party/unacl-curve25519/LICENSE
index 1e9da345c3..d45ad380d2 100644
--- a/core/cortex-m0/curve25519/cc0_1.0
+++ b/third_party/unacl-curve25519/LICENSE
@@ -1,3 +1,8 @@
+=== core/cortex-m0/curve25519/*.S
+
+public domain.
+
+=== core/cortex-m0/curve25519/scalarmult.c
Creative Commons CC0 1.0 Universal
diff --git a/third_party/unacl-curve25519/METADATA b/third_party/unacl-curve25519/METADATA
new file mode 100644
index 0000000000..feb93e5586
--- /dev/null
+++ b/third_party/unacl-curve25519/METADATA
@@ -0,0 +1,25 @@
+name: "uNaCl - Curve25519 for ARM Cortex-M0"
+description:
+ "μNaCl – The Networking and Cryptography library for microcontrollers"
+ "Standalone Curve25519 implementation for ARM Cortex-M0, optimized for"
+ "speed. About 3 times faster than compiled code from C."
+
+third_party {
+ url {
+ type: HOMEPAGE
+ value: "https://munacl.cryptojedi.org/curve25519-cortexm0.shtml"
+ }
+ url {
+ type: PACKAGE
+ value: "https://munacl.cryptojedi.org/data/curve25519-cortexm0-20150813.tar.bz2"
+ }
+ version: "20150813"
+ last_upgrade_date { year: 2017 month: 07 day: 20 }
+ license_type: UNENCUMBERED
+ local_modifications:
+ "1. LICENSE file has been created for compliance purposes. "
+ "CC0 1.0 included in original distribution, and added a note about most of "
+ "the code being public domain."
+ "2. Adapted the code for the EC codebase, see git log."
+}
+
diff --git a/core/cortex-m0/curve25519/mpy121666.S b/third_party/unacl-curve25519/core/cortex-m0/curve25519/mpy121666.S
index d2a467459b..d2a467459b 100644
--- a/core/cortex-m0/curve25519/mpy121666.S
+++ b/third_party/unacl-curve25519/core/cortex-m0/curve25519/mpy121666.S
diff --git a/core/cortex-m0/curve25519/mul.S b/third_party/unacl-curve25519/core/cortex-m0/curve25519/mul.S
index 366713a7a3..366713a7a3 100644
--- a/core/cortex-m0/curve25519/mul.S
+++ b/third_party/unacl-curve25519/core/cortex-m0/curve25519/mul.S
diff --git a/core/cortex-m0/curve25519/reduce25519.S b/third_party/unacl-curve25519/core/cortex-m0/curve25519/reduce25519.S
index 9a3c29a0f6..9a3c29a0f6 100644
--- a/core/cortex-m0/curve25519/reduce25519.S
+++ b/third_party/unacl-curve25519/core/cortex-m0/curve25519/reduce25519.S
diff --git a/core/cortex-m0/curve25519/scalarmult.c b/third_party/unacl-curve25519/core/cortex-m0/curve25519/scalarmult.c
index 07e2b144e7..07e2b144e7 100644
--- a/core/cortex-m0/curve25519/scalarmult.c
+++ b/third_party/unacl-curve25519/core/cortex-m0/curve25519/scalarmult.c
diff --git a/core/cortex-m0/curve25519/sqr.S b/third_party/unacl-curve25519/core/cortex-m0/curve25519/sqr.S
index b62121adb7..b62121adb7 100644
--- a/core/cortex-m0/curve25519/sqr.S
+++ b/third_party/unacl-curve25519/core/cortex-m0/curve25519/sqr.S