Explorar el Código

adds McEliece

tags/v0.0.1
Henry Case hace 3 años
padre
commit
c98780b4d5
Se han modificado 12 ficheros con 221 adiciones y 2 borrados
  1. +10
    -1
      CMakeLists.txt
  2. +11
    -1
      public/pqc/pqc.h
  3. +20
    -0
      src/kem/mceliece/mceliece348864/clean/CMakeLists.txt
  4. +20
    -0
      src/kem/mceliece/mceliece348864f/clean/CMakeLists.txt
  5. +20
    -0
      src/kem/mceliece/mceliece460896/clean/CMakeLists.txt
  6. +20
    -0
      src/kem/mceliece/mceliece460896f/clean/CMakeLists.txt
  7. +20
    -0
      src/kem/mceliece/mceliece6688128/clean/CMakeLists.txt
  8. +20
    -0
      src/kem/mceliece/mceliece6688128f/clean/CMakeLists.txt
  9. +20
    -0
      src/kem/mceliece/mceliece6960119/clean/CMakeLists.txt
  10. +20
    -0
      src/kem/mceliece/mceliece6960119f/clean/CMakeLists.txt
  11. +20
    -0
      src/kem/mceliece/mceliece8192128/clean/CMakeLists.txt
  12. +20
    -0
      src/kem/mceliece/mceliece8192128f/clean/CMakeLists.txt

+ 10
- 1
CMakeLists.txt Ver fichero

@@ -190,7 +190,16 @@ add_subdirectory(src/kem/hqc/hqc-rmrs-128/clean)
add_subdirectory(src/kem/hqc/hqc-rmrs-192/clean)
add_subdirectory(src/kem/hqc/hqc-rmrs-256/clean)
add_subdirectory(src/kem/sike)

add_subdirectory(src/kem/mceliece/mceliece348864/clean)
add_subdirectory(src/kem/mceliece/mceliece460896/clean)
add_subdirectory(src/kem/mceliece/mceliece6688128/clean)
add_subdirectory(src/kem/mceliece/mceliece6960119/clean)
add_subdirectory(src/kem/mceliece/mceliece8192128/clean)
add_subdirectory(src/kem/mceliece/mceliece348864f/clean)
add_subdirectory(src/kem/mceliece/mceliece460896f/clean)
add_subdirectory(src/kem/mceliece/mceliece6688128f/clean)
add_subdirectory(src/kem/mceliece/mceliece6960119f/clean)
add_subdirectory(src/kem/mceliece/mceliece8192128f/clean)
# Hardware optimized targets
if(${ARCH} STREQUAL "ARCH_x86_64")



+ 11
- 1
public/pqc/pqc.h Ver fichero

@@ -66,7 +66,17 @@ extern "C" {
_(HQCRMRS128) \
_(HQCRMRS192) \
_(HQCRMRS256) \
_(SIKE434)
_(SIKE434) \
_(MCELIECE348864) \
_(MCELIECE460896) \
_(MCELIECE6688128) \
_(MCELIECE6960119) \
_(MCELIECE8192128) \
_(MCELIECE348864F) \
_(MCELIECE460896F) \
_(MCELIECE6688128F) \
_(MCELIECE6960119F) \
_(MCELIECE8192128F)

// Defines IDs for each algorithm. The
// PQC_ALG_SIG/KEM_MAX indicates number


+ 20
- 0
src/kem/mceliece/mceliece348864/clean/CMakeLists.txt Ver fichero

@@ -0,0 +1,20 @@
set(
SRC_CLEAN_MCELIECE348864
aes256ctr.c
benes.c
bm.c
controlbits.c
decrypt.c
encrypt.c
gf.c
operations.c
pk_gen.c
root.c
sk_gen.c
synd.c
transpose.c
util.c
)

define_kem_alg(mceliece348864_clean
PQCLEAN_MCELIECE348864_OPT "${SRC_CLEAN_MCELIECE348864}" "${CMAKE_CURRENT_SOURCE_DIR}")

+ 20
- 0
src/kem/mceliece/mceliece348864f/clean/CMakeLists.txt Ver fichero

@@ -0,0 +1,20 @@
set(
SRC_CLEAN_MCELIECE348864F
aes256ctr.c
benes.c
bm.c
controlbits.c
decrypt.c
encrypt.c
gf.c
operations.c
pk_gen.c
root.c
sk_gen.c
synd.c
transpose.c
util.c
)

define_kem_alg(mceliece348864f_clean
PQCLEAN_MCELIECE348864F_OPT "${SRC_CLEAN_MCELIECE348864F}" "${CMAKE_CURRENT_SOURCE_DIR}")

+ 20
- 0
src/kem/mceliece/mceliece460896/clean/CMakeLists.txt Ver fichero

@@ -0,0 +1,20 @@
set(
SRC_CLEAN_MCELIECE460896
aes256ctr.c
benes.c
bm.c
controlbits.c
decrypt.c
encrypt.c
gf.c
operations.c
pk_gen.c
root.c
sk_gen.c
synd.c
transpose.c
util.c
)

define_kem_alg(mceliece460896_clean
PQCLEAN_MCELIECE460896_OPT "${SRC_CLEAN_MCELIECE460896}" "${CMAKE_CURRENT_SOURCE_DIR}")

+ 20
- 0
src/kem/mceliece/mceliece460896f/clean/CMakeLists.txt Ver fichero

@@ -0,0 +1,20 @@
set(
SRC_CLEAN_MCELIECE460896F
aes256ctr.c
benes.c
bm.c
controlbits.c
decrypt.c
encrypt.c
gf.c
operations.c
pk_gen.c
root.c
sk_gen.c
synd.c
transpose.c
util.c
)

define_kem_alg(mceliece460896f_clean
PQCLEAN_MCELIECE460896F_OPT "${SRC_CLEAN_MCELIECE460896F}" "${CMAKE_CURRENT_SOURCE_DIR}")

+ 20
- 0
src/kem/mceliece/mceliece6688128/clean/CMakeLists.txt Ver fichero

@@ -0,0 +1,20 @@
set(
SRC_CLEAN_MCELIECE6688128
aes256ctr.c
benes.c
bm.c
controlbits.c
decrypt.c
encrypt.c
gf.c
operations.c
pk_gen.c
root.c
sk_gen.c
synd.c
transpose.c
util.c
)

define_kem_alg(mceliece6688128_clean
PQCLEAN_MCELIECE6688128_OPT "${SRC_CLEAN_MCELIECE6688128}" "${CMAKE_CURRENT_SOURCE_DIR}")

+ 20
- 0
src/kem/mceliece/mceliece6688128f/clean/CMakeLists.txt Ver fichero

@@ -0,0 +1,20 @@
set(
SRC_CLEAN_MCELIECE6688128F
aes256ctr.c
benes.c
bm.c
controlbits.c
decrypt.c
encrypt.c
gf.c
operations.c
pk_gen.c
root.c
sk_gen.c
synd.c
transpose.c
util.c
)

define_kem_alg(mceliece6688128f_clean
PQCLEAN_MCELIECE6688128F_OPT "${SRC_CLEAN_MCELIECE6688128F}" "${CMAKE_CURRENT_SOURCE_DIR}")

+ 20
- 0
src/kem/mceliece/mceliece6960119/clean/CMakeLists.txt Ver fichero

@@ -0,0 +1,20 @@
set(
SRC_CLEAN_MCELIECE6960119
aes256ctr.c
benes.c
bm.c
controlbits.c
decrypt.c
encrypt.c
gf.c
operations.c
pk_gen.c
root.c
sk_gen.c
synd.c
transpose.c
util.c
)

define_kem_alg(mceliece6960119_clean
PQCLEAN_MCELIECE6960119_OPT "${SRC_CLEAN_MCELIECE6960119}" "${CMAKE_CURRENT_SOURCE_DIR}")

+ 20
- 0
src/kem/mceliece/mceliece6960119f/clean/CMakeLists.txt Ver fichero

@@ -0,0 +1,20 @@
set(
SRC_CLEAN_MCELIECE6960119F
aes256ctr.c
benes.c
bm.c
controlbits.c
decrypt.c
encrypt.c
gf.c
operations.c
pk_gen.c
root.c
sk_gen.c
synd.c
transpose.c
util.c
)

define_kem_alg(mceliece6960119f_clean
PQCLEAN_MCELIECE6960119F_OPT "${SRC_CLEAN_MCELIECE6960119F}" "${CMAKE_CURRENT_SOURCE_DIR}")

+ 20
- 0
src/kem/mceliece/mceliece8192128/clean/CMakeLists.txt Ver fichero

@@ -0,0 +1,20 @@
set(
SRC_CLEAN_MCELIECE8192128
aes256ctr.c
benes.c
bm.c
controlbits.c
decrypt.c
encrypt.c
gf.c
operations.c
pk_gen.c
root.c
sk_gen.c
synd.c
transpose.c
util.c
)

define_kem_alg(mceliece8192128_clean
PQCLEAN_MCELIECE8192128_OPT "${SRC_CLEAN_MCELIECE8192128}" "${CMAKE_CURRENT_SOURCE_DIR}")

+ 20
- 0
src/kem/mceliece/mceliece8192128f/clean/CMakeLists.txt Ver fichero

@@ -0,0 +1,20 @@
set(
SRC_CLEAN_MCELIECE8192128F
aes256ctr.c
benes.c
bm.c
controlbits.c
decrypt.c
encrypt.c
gf.c
operations.c
pk_gen.c
root.c
sk_gen.c
synd.c
transpose.c
util.c
)

define_kem_alg(mceliece8192128f_clean
PQCLEAN_MCELIECE8192128F_OPT "${SRC_CLEAN_MCELIECE8192128F}" "${CMAKE_CURRENT_SOURCE_DIR}")

Cargando…
Cancelar
Guardar