From 3ccef3d1a14951abd7f80f4f5831ad026423dde5 Mon Sep 17 00:00:00 2001 From: cothan Date: Wed, 9 Sep 2020 23:53:06 -0400 Subject: [PATCH] add readme, modify to make to make it compile in supercop --- .../crypto_kem/firesaber2/neon/README.txt | 66 +++++++++++++++++++ .../crypto_kem/firesaber2/neon/SABER_indcpa.c | 2 +- .../firesaber2/neon/rq_mul/neon_poly_rq_mul.c | 4 +- .../crypto_kem/lightsaber2/neon/README.txt | 66 +++++++++++++++++++ .../lightsaber2/neon/SABER_indcpa.c | 2 +- .../neon/rq_mul/neon_poly_rq_mul.c | 4 +- supercop/crypto_kem/saber2/neon/README.txt | 66 +++++++++++++++++++ .../crypto_kem/saber2/neon/SABER_indcpa.c | 2 +- .../saber2/neon/rq_mul/neon_poly_rq_mul.c | 4 +- 9 files changed, 207 insertions(+), 9 deletions(-) create mode 100644 supercop/crypto_kem/firesaber2/neon/README.txt create mode 100644 supercop/crypto_kem/lightsaber2/neon/README.txt create mode 100644 supercop/crypto_kem/saber2/neon/README.txt diff --git a/supercop/crypto_kem/firesaber2/neon/README.txt b/supercop/crypto_kem/firesaber2/neon/README.txt new file mode 100644 index 0000000..800f24d --- /dev/null +++ b/supercop/crypto_kem/firesaber2/neon/README.txt @@ -0,0 +1,66 @@ +This implementation is based on SABER latest commit at: https://github.com/KULeuven-COSIC/SABER + +Any pull requests, issues are welcome at: https://github.com/cothan/SABER + +Best regards, +----- +Duc Tri Nguyen (CERG GMU) + +. +├── api.h +├── apiorig.h +├── architectures +├── cbd.c +├── cbd.h +├── crypto_stream.h +├── fips202.c +├── fips202.h +├── implementors +├── kem.c +├── kem.h +├── pack_unpack.c +├── pack_unpack.h +├── poly.c +├── poly.h +├── README.txt +├── rq_mul +│   ├── neon_batch_multiplication.c +│   ├── neon_batch_multiplication.h +│   ├── neon_matrix_transpose.c +│   ├── neon_matrix_transpose.h +│   ├── neon_poly_rq_mul.c +│   └── neon_poly_rq_mul.h +├── SABER_indcpa.c +├── SABER_indcpa.h +├── SABER_params.h +├── verify.c +└── verify.h + +1 directory, 27 files +6d83cd4b8fb0821c5b9c3c9e5bd943e6 ./README.txt +4828e932aba79da3b9b59f2e5223da77 ./api.h +bcb961cca51f63814fbc1c7b7c1892e5 ./verify.c +7a794e9b2699b2f8548997c09143d130 ./fips202.h +596ed8e81143fa3f7b19f0227ec44c13 ./SABER_params.h +1bcb1fa9d14b9be69d0c7af0041fab04 ./pack_unpack.c +f1a554387a4a34d6c7742d92bb88bcbb ./SABER_indcpa.c +f462b0d1a5033705a5fd65559cd56567 ./implementors +eae70d6eeba93027ed4a1017611956a6 ./cbd.c +c4b12cd8d1f3c328fe10bd01c88cd9f0 ./architectures +86a1278bf772ee581cd5c299d3c9983d ./SABER_indcpa.h +1cb977efbfddf5c6475d3f6bfefa1410 ./cbd.h +32bc67ce2f6e9a0d316a6335e466bdc6 ./fips202.c +788de5c66a9ba8e1b1eda8e0153eed2d ./rq_mul/neon_poly_rq_mul.c +c2a7ecd4b5360fd29e51585cf3dbfcf5 ./rq_mul/neon_matrix_transpose.c +6895ee9d0163dd5979df6b2dae57e9cf ./rq_mul/neon_matrix_transpose.h +99de300d3ffba862590ffa0bf5d51625 ./rq_mul/neon_batch_multiplication.h +7c8ef5cf2ea180f12845fad60df40641 ./rq_mul/neon_poly_rq_mul.h +84579da93ee608e6e851aaf3b081eb89 ./rq_mul/neon_batch_multiplication.c +d9882eee52079852f2c46034e470e754 ./poly.c +8a26b15a57e10367c3fafca63c8a0bda ./poly.h +a4985af1c963d5c07fd9b10abd1dab41 ./kem.c +cec3111bdf6da7d016b2441b3b9e82b1 ./pack_unpack.h +80c1c93393fa780a28b24724bd487fe2 ./verify.h +83664ed93e70c14572c0db1c0bf8a32e ./apiorig.h +3f5868e49e234b1f5eeeb4edec2db560 ./crypto_stream.h +3c0eb574f59b132e6099f08a729dce1d ./kem.h diff --git a/supercop/crypto_kem/firesaber2/neon/SABER_indcpa.c b/supercop/crypto_kem/firesaber2/neon/SABER_indcpa.c index b0c2e66..0c151de 100644 --- a/supercop/crypto_kem/firesaber2/neon/SABER_indcpa.c +++ b/supercop/crypto_kem/firesaber2/neon/SABER_indcpa.c @@ -19,7 +19,7 @@ Jose Maria Bermudo Mera, Michiel Van Beirendonck, Andrea Basso. #include "cbd.h" #include "SABER_params.h" #include "fips202.h" -#include "rq_mul/neon_poly_rq_mul.h" +#include "rq_mul/neon_poly_rq_mul.c" #define h1 4 //2^(EQ-EP-1) diff --git a/supercop/crypto_kem/firesaber2/neon/rq_mul/neon_poly_rq_mul.c b/supercop/crypto_kem/firesaber2/neon/rq_mul/neon_poly_rq_mul.c index 9faa0b7..6619428 100644 --- a/supercop/crypto_kem/firesaber2/neon/rq_mul/neon_poly_rq_mul.c +++ b/supercop/crypto_kem/firesaber2/neon/rq_mul/neon_poly_rq_mul.c @@ -21,8 +21,8 @@ limitations under the License. #include "../SABER_params.h" #include "../poly.h" -#include "neon_batch_multiplication.h" -#include "neon_matrix_transpose.h" +#include "neon_batch_multiplication.c" +#include "neon_matrix_transpose.c" #define SB0 (SABER_N) // 256 #define SB1 (SB0 / 4) // 64 diff --git a/supercop/crypto_kem/lightsaber2/neon/README.txt b/supercop/crypto_kem/lightsaber2/neon/README.txt new file mode 100644 index 0000000..72f3d53 --- /dev/null +++ b/supercop/crypto_kem/lightsaber2/neon/README.txt @@ -0,0 +1,66 @@ +This implementation is based on SABER latest commit at: https://github.com/KULeuven-COSIC/SABER + +Any pull requests, issues are welcome at: https://github.com/cothan/SABER + +Best regards, +----- +Duc Tri Nguyen (CERG GMU) + +. +├── api.h +├── apiorig.h +├── architectures +├── cbd.c +├── cbd.h +├── crypto_stream.h +├── fips202.c +├── fips202.h +├── implementors +├── kem.c +├── kem.h +├── pack_unpack.c +├── pack_unpack.h +├── poly.c +├── poly.h +├── README.txt +├── rq_mul +│   ├── neon_batch_multiplication.c +│   ├── neon_batch_multiplication.h +│   ├── neon_matrix_transpose.c +│   ├── neon_matrix_transpose.h +│   ├── neon_poly_rq_mul.c +│   └── neon_poly_rq_mul.h +├── SABER_indcpa.c +├── SABER_indcpa.h +├── SABER_params.h +├── verify.c +└── verify.h + +1 directory, 27 files +c035aafd51ea490b638841a043b7acd3 ./README.txt +550e09228e56210c2835b5f390a81220 ./api.h +bcb961cca51f63814fbc1c7b7c1892e5 ./verify.c +7a794e9b2699b2f8548997c09143d130 ./fips202.h +596ed8e81143fa3f7b19f0227ec44c13 ./SABER_params.h +1bcb1fa9d14b9be69d0c7af0041fab04 ./pack_unpack.c +f1a554387a4a34d6c7742d92bb88bcbb ./SABER_indcpa.c +f462b0d1a5033705a5fd65559cd56567 ./implementors +eae70d6eeba93027ed4a1017611956a6 ./cbd.c +c4b12cd8d1f3c328fe10bd01c88cd9f0 ./architectures +86a1278bf772ee581cd5c299d3c9983d ./SABER_indcpa.h +1cb977efbfddf5c6475d3f6bfefa1410 ./cbd.h +32bc67ce2f6e9a0d316a6335e466bdc6 ./fips202.c +788de5c66a9ba8e1b1eda8e0153eed2d ./rq_mul/neon_poly_rq_mul.c +c2a7ecd4b5360fd29e51585cf3dbfcf5 ./rq_mul/neon_matrix_transpose.c +6895ee9d0163dd5979df6b2dae57e9cf ./rq_mul/neon_matrix_transpose.h +99de300d3ffba862590ffa0bf5d51625 ./rq_mul/neon_batch_multiplication.h +7c8ef5cf2ea180f12845fad60df40641 ./rq_mul/neon_poly_rq_mul.h +84579da93ee608e6e851aaf3b081eb89 ./rq_mul/neon_batch_multiplication.c +d9882eee52079852f2c46034e470e754 ./poly.c +8a26b15a57e10367c3fafca63c8a0bda ./poly.h +a4985af1c963d5c07fd9b10abd1dab41 ./kem.c +cec3111bdf6da7d016b2441b3b9e82b1 ./pack_unpack.h +80c1c93393fa780a28b24724bd487fe2 ./verify.h +70816f11b636da452709b9083732e5c0 ./apiorig.h +3f5868e49e234b1f5eeeb4edec2db560 ./crypto_stream.h +3c0eb574f59b132e6099f08a729dce1d ./kem.h diff --git a/supercop/crypto_kem/lightsaber2/neon/SABER_indcpa.c b/supercop/crypto_kem/lightsaber2/neon/SABER_indcpa.c index b0c2e66..0c151de 100644 --- a/supercop/crypto_kem/lightsaber2/neon/SABER_indcpa.c +++ b/supercop/crypto_kem/lightsaber2/neon/SABER_indcpa.c @@ -19,7 +19,7 @@ Jose Maria Bermudo Mera, Michiel Van Beirendonck, Andrea Basso. #include "cbd.h" #include "SABER_params.h" #include "fips202.h" -#include "rq_mul/neon_poly_rq_mul.h" +#include "rq_mul/neon_poly_rq_mul.c" #define h1 4 //2^(EQ-EP-1) diff --git a/supercop/crypto_kem/lightsaber2/neon/rq_mul/neon_poly_rq_mul.c b/supercop/crypto_kem/lightsaber2/neon/rq_mul/neon_poly_rq_mul.c index 9faa0b7..6619428 100644 --- a/supercop/crypto_kem/lightsaber2/neon/rq_mul/neon_poly_rq_mul.c +++ b/supercop/crypto_kem/lightsaber2/neon/rq_mul/neon_poly_rq_mul.c @@ -21,8 +21,8 @@ limitations under the License. #include "../SABER_params.h" #include "../poly.h" -#include "neon_batch_multiplication.h" -#include "neon_matrix_transpose.h" +#include "neon_batch_multiplication.c" +#include "neon_matrix_transpose.c" #define SB0 (SABER_N) // 256 #define SB1 (SB0 / 4) // 64 diff --git a/supercop/crypto_kem/saber2/neon/README.txt b/supercop/crypto_kem/saber2/neon/README.txt new file mode 100644 index 0000000..6687c26 --- /dev/null +++ b/supercop/crypto_kem/saber2/neon/README.txt @@ -0,0 +1,66 @@ +This implementation is based on SABER latest commit at: https://github.com/KULeuven-COSIC/SABER + +Any pull requests, issues are welcome at: https://github.com/cothan/SABER + +Best regards, +----- +Duc Tri Nguyen (CERG GMU) + +. +├── api.h +├── apiorig.h +├── architectures +├── cbd.c +├── cbd.h +├── crypto_stream.h +├── fips202.c +├── fips202.h +├── implementors +├── kem.c +├── kem.h +├── pack_unpack.c +├── pack_unpack.h +├── poly.c +├── poly.h +├── README.txt +├── rq_mul +│   ├── neon_batch_multiplication.c +│   ├── neon_batch_multiplication.h +│   ├── neon_matrix_transpose.c +│   ├── neon_matrix_transpose.h +│   ├── neon_poly_rq_mul.c +│   └── neon_poly_rq_mul.h +├── SABER_indcpa.c +├── SABER_indcpa.h +├── SABER_params.h +├── verify.c +└── verify.h + +1 directory, 27 files +6d83cd4b8fb0821c5b9c3c9e5bd943e6 ./README.txt +1c590d5068bcde0dc96382d8b83d42d2 ./api.h +bcb961cca51f63814fbc1c7b7c1892e5 ./verify.c +7a794e9b2699b2f8548997c09143d130 ./fips202.h +596ed8e81143fa3f7b19f0227ec44c13 ./SABER_params.h +1bcb1fa9d14b9be69d0c7af0041fab04 ./pack_unpack.c +f1a554387a4a34d6c7742d92bb88bcbb ./SABER_indcpa.c +f462b0d1a5033705a5fd65559cd56567 ./implementors +eae70d6eeba93027ed4a1017611956a6 ./cbd.c +c4b12cd8d1f3c328fe10bd01c88cd9f0 ./architectures +86a1278bf772ee581cd5c299d3c9983d ./SABER_indcpa.h +1cb977efbfddf5c6475d3f6bfefa1410 ./cbd.h +32bc67ce2f6e9a0d316a6335e466bdc6 ./fips202.c +788de5c66a9ba8e1b1eda8e0153eed2d ./rq_mul/neon_poly_rq_mul.c +c2a7ecd4b5360fd29e51585cf3dbfcf5 ./rq_mul/neon_matrix_transpose.c +6895ee9d0163dd5979df6b2dae57e9cf ./rq_mul/neon_matrix_transpose.h +99de300d3ffba862590ffa0bf5d51625 ./rq_mul/neon_batch_multiplication.h +7c8ef5cf2ea180f12845fad60df40641 ./rq_mul/neon_poly_rq_mul.h +84579da93ee608e6e851aaf3b081eb89 ./rq_mul/neon_batch_multiplication.c +d9882eee52079852f2c46034e470e754 ./poly.c +8a26b15a57e10367c3fafca63c8a0bda ./poly.h +a4985af1c963d5c07fd9b10abd1dab41 ./kem.c +cec3111bdf6da7d016b2441b3b9e82b1 ./pack_unpack.h +80c1c93393fa780a28b24724bd487fe2 ./verify.h +8c6f54c231ed179ae63b3d20c60890d6 ./apiorig.h +3f5868e49e234b1f5eeeb4edec2db560 ./crypto_stream.h +3c0eb574f59b132e6099f08a729dce1d ./kem.h diff --git a/supercop/crypto_kem/saber2/neon/SABER_indcpa.c b/supercop/crypto_kem/saber2/neon/SABER_indcpa.c index b0c2e66..0c151de 100644 --- a/supercop/crypto_kem/saber2/neon/SABER_indcpa.c +++ b/supercop/crypto_kem/saber2/neon/SABER_indcpa.c @@ -19,7 +19,7 @@ Jose Maria Bermudo Mera, Michiel Van Beirendonck, Andrea Basso. #include "cbd.h" #include "SABER_params.h" #include "fips202.h" -#include "rq_mul/neon_poly_rq_mul.h" +#include "rq_mul/neon_poly_rq_mul.c" #define h1 4 //2^(EQ-EP-1) diff --git a/supercop/crypto_kem/saber2/neon/rq_mul/neon_poly_rq_mul.c b/supercop/crypto_kem/saber2/neon/rq_mul/neon_poly_rq_mul.c index 9faa0b7..6619428 100644 --- a/supercop/crypto_kem/saber2/neon/rq_mul/neon_poly_rq_mul.c +++ b/supercop/crypto_kem/saber2/neon/rq_mul/neon_poly_rq_mul.c @@ -21,8 +21,8 @@ limitations under the License. #include "../SABER_params.h" #include "../poly.h" -#include "neon_batch_multiplication.h" -#include "neon_matrix_transpose.h" +#include "neon_batch_multiplication.c" +#include "neon_matrix_transpose.c" #define SB0 (SABER_N) // 256 #define SB1 (SB0 / 4) // 64