Browse Source

Merge pull request #332 from jschanck/hqc

HQC: updated packaging script. should resolve #327
master
Thom Wiggers 4 years ago
committed by GitHub
parent
commit
1941405d91
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
100 changed files with 29 additions and 199 deletions
  1. +2
    -2
      crypto_kem/hqc-128/META.yml
  2. +0
    -2
      crypto_kem/hqc-128/avx2/alpha_table.h
  3. +0
    -2
      crypto_kem/hqc-128/avx2/bch.h
  4. +1
    -1
      crypto_kem/hqc-128/avx2/code.c
  5. +0
    -2
      crypto_kem/hqc-128/avx2/code.h
  6. +1
    -1
      crypto_kem/hqc-128/avx2/fft.c
  7. +0
    -2
      crypto_kem/hqc-128/avx2/fft.h
  8. +1
    -3
      crypto_kem/hqc-128/avx2/gen_matrix.h
  9. +0
    -2
      crypto_kem/hqc-128/avx2/gf.h
  10. +0
    -2
      crypto_kem/hqc-128/avx2/gf2x.h
  11. +0
    -2
      crypto_kem/hqc-128/avx2/hqc.h
  12. +0
    -2
      crypto_kem/hqc-128/avx2/parameters.h
  13. +0
    -2
      crypto_kem/hqc-128/avx2/parsing.h
  14. +0
    -2
      crypto_kem/hqc-128/avx2/repetition.h
  15. +0
    -2
      crypto_kem/hqc-128/avx2/vector.h
  16. +0
    -2
      crypto_kem/hqc-128/clean/bch.h
  17. +0
    -2
      crypto_kem/hqc-128/clean/code.h
  18. +2
    -2
      crypto_kem/hqc-128/clean/fft.c
  19. +0
    -2
      crypto_kem/hqc-128/clean/fft.h
  20. +1
    -3
      crypto_kem/hqc-128/clean/gf.h
  21. +0
    -2
      crypto_kem/hqc-128/clean/gf2x.h
  22. +0
    -2
      crypto_kem/hqc-128/clean/hqc.h
  23. +0
    -2
      crypto_kem/hqc-128/clean/parameters.h
  24. +0
    -2
      crypto_kem/hqc-128/clean/parsing.h
  25. +0
    -2
      crypto_kem/hqc-128/clean/repetition.h
  26. +0
    -2
      crypto_kem/hqc-128/clean/vector.h
  27. +2
    -2
      crypto_kem/hqc-192/META.yml
  28. +0
    -2
      crypto_kem/hqc-192/avx2/alpha_table.h
  29. +0
    -2
      crypto_kem/hqc-192/avx2/bch.h
  30. +1
    -1
      crypto_kem/hqc-192/avx2/code.c
  31. +0
    -2
      crypto_kem/hqc-192/avx2/code.h
  32. +1
    -1
      crypto_kem/hqc-192/avx2/fft.c
  33. +0
    -2
      crypto_kem/hqc-192/avx2/fft.h
  34. +1
    -3
      crypto_kem/hqc-192/avx2/gen_matrix.h
  35. +0
    -2
      crypto_kem/hqc-192/avx2/gf.h
  36. +0
    -2
      crypto_kem/hqc-192/avx2/gf2x.h
  37. +0
    -2
      crypto_kem/hqc-192/avx2/hqc.h
  38. +0
    -2
      crypto_kem/hqc-192/avx2/parameters.h
  39. +0
    -2
      crypto_kem/hqc-192/avx2/parsing.h
  40. +0
    -2
      crypto_kem/hqc-192/avx2/repetition.h
  41. +0
    -2
      crypto_kem/hqc-192/avx2/vector.h
  42. +0
    -2
      crypto_kem/hqc-192/clean/bch.h
  43. +0
    -2
      crypto_kem/hqc-192/clean/code.h
  44. +2
    -2
      crypto_kem/hqc-192/clean/fft.c
  45. +0
    -2
      crypto_kem/hqc-192/clean/fft.h
  46. +1
    -3
      crypto_kem/hqc-192/clean/gf.h
  47. +0
    -2
      crypto_kem/hqc-192/clean/gf2x.h
  48. +0
    -2
      crypto_kem/hqc-192/clean/hqc.h
  49. +0
    -2
      crypto_kem/hqc-192/clean/parameters.h
  50. +0
    -2
      crypto_kem/hqc-192/clean/parsing.h
  51. +0
    -2
      crypto_kem/hqc-192/clean/repetition.h
  52. +0
    -2
      crypto_kem/hqc-192/clean/vector.h
  53. +2
    -2
      crypto_kem/hqc-256/META.yml
  54. +0
    -2
      crypto_kem/hqc-256/avx2/alpha_table.h
  55. +0
    -2
      crypto_kem/hqc-256/avx2/bch.h
  56. +1
    -1
      crypto_kem/hqc-256/avx2/code.c
  57. +0
    -2
      crypto_kem/hqc-256/avx2/code.h
  58. +1
    -1
      crypto_kem/hqc-256/avx2/fft.c
  59. +0
    -2
      crypto_kem/hqc-256/avx2/fft.h
  60. +1
    -3
      crypto_kem/hqc-256/avx2/gen_matrix.h
  61. +0
    -2
      crypto_kem/hqc-256/avx2/gf.h
  62. +0
    -2
      crypto_kem/hqc-256/avx2/gf2x.h
  63. +0
    -2
      crypto_kem/hqc-256/avx2/hqc.h
  64. +0
    -2
      crypto_kem/hqc-256/avx2/parameters.h
  65. +0
    -2
      crypto_kem/hqc-256/avx2/parsing.h
  66. +0
    -2
      crypto_kem/hqc-256/avx2/repetition.h
  67. +0
    -2
      crypto_kem/hqc-256/avx2/vector.h
  68. +0
    -2
      crypto_kem/hqc-256/clean/bch.h
  69. +0
    -2
      crypto_kem/hqc-256/clean/code.h
  70. +2
    -2
      crypto_kem/hqc-256/clean/fft.c
  71. +0
    -2
      crypto_kem/hqc-256/clean/fft.h
  72. +1
    -3
      crypto_kem/hqc-256/clean/gf.h
  73. +0
    -2
      crypto_kem/hqc-256/clean/gf2x.h
  74. +0
    -2
      crypto_kem/hqc-256/clean/hqc.h
  75. +0
    -2
      crypto_kem/hqc-256/clean/parameters.h
  76. +0
    -2
      crypto_kem/hqc-256/clean/parsing.h
  77. +0
    -2
      crypto_kem/hqc-256/clean/repetition.h
  78. +0
    -2
      crypto_kem/hqc-256/clean/vector.h
  79. +2
    -2
      crypto_kem/hqc-rmrs-128/META.yml
  80. +0
    -2
      crypto_kem/hqc-rmrs-128/avx2/code.h
  81. +1
    -1
      crypto_kem/hqc-rmrs-128/avx2/fft.c
  82. +0
    -3
      crypto_kem/hqc-rmrs-128/avx2/fft.h
  83. +0
    -2
      crypto_kem/hqc-rmrs-128/avx2/gf.h
  84. +0
    -2
      crypto_kem/hqc-rmrs-128/avx2/gf2x.h
  85. +0
    -2
      crypto_kem/hqc-rmrs-128/avx2/hqc.h
  86. +0
    -2
      crypto_kem/hqc-rmrs-128/avx2/parameters.h
  87. +0
    -2
      crypto_kem/hqc-rmrs-128/avx2/parsing.h
  88. +1
    -1
      crypto_kem/hqc-rmrs-128/avx2/reed_muller.c
  89. +0
    -2
      crypto_kem/hqc-rmrs-128/avx2/reed_muller.h
  90. +0
    -2
      crypto_kem/hqc-rmrs-128/avx2/reed_solomon.h
  91. +0
    -2
      crypto_kem/hqc-rmrs-128/avx2/vector.h
  92. +0
    -2
      crypto_kem/hqc-rmrs-128/clean/code.h
  93. +1
    -1
      crypto_kem/hqc-rmrs-128/clean/fft.c
  94. +0
    -3
      crypto_kem/hqc-rmrs-128/clean/fft.h
  95. +0
    -2
      crypto_kem/hqc-rmrs-128/clean/gf.h
  96. +0
    -2
      crypto_kem/hqc-rmrs-128/clean/gf2x.h
  97. +0
    -2
      crypto_kem/hqc-rmrs-128/clean/hqc.h
  98. +0
    -2
      crypto_kem/hqc-rmrs-128/clean/parameters.h
  99. +0
    -2
      crypto_kem/hqc-rmrs-128/clean/parsing.h
  100. +0
    -2
      crypto_kem/hqc-rmrs-128/clean/reed_muller.h

+ 2
- 2
crypto_kem/hqc-128/META.yml View File

@@ -22,9 +22,9 @@ principal-submitters:
- Loïc Bidoux
implementations:
- name: clean
version: 2020-05-29
version: hqc-submission_2020-05-29 via https://github.com/jschanck/package-pqclean/tree/22134db4/hqc
- name: avx2
version: 2020-05-29
version: hqc-submission_2020-05-29 via https://github.com/jschanck/package-pqclean/tree/22134db4/hqc
supported_platforms:
- architecture: x86_64
operating_systems:


+ 0
- 2
crypto_kem/hqc-128/avx2/alpha_table.h View File

@@ -6,8 +6,6 @@
* @file alpha_table.h
* Header file that contain precomputed power of alpha the root of the generator poly og GF(2^PARAM_M)
*/

#include "parameters.h"
#include "parameters.h"




+ 0
- 2
crypto_kem/hqc-128/avx2/bch.h View File

@@ -6,8 +6,6 @@
* @file bch.h
* Header file of bch.c
*/

#include "parameters.h"
#include "parameters.h"
#include <stddef.h>
#include <stdint.h>


+ 1
- 1
crypto_kem/hqc-128/avx2/code.c View File

@@ -43,7 +43,7 @@ void PQCLEAN_HQC128_AVX2_code_encode(uint64_t *em, const uint64_t *m) {

__m256i *colonne, y, aux0;
__m256i msg = _mm256_lddqu_si256((const __m256i *) m);
colonne = ((__m256i *) PQCLEAN_HQC128_AVX2_gen_matrix);
colonne = ((__m256i *) gen_matrix);

pos_r = 0;
for (i = 0; i < PARAM_N1 - PARAM_K; i++) {


+ 0
- 2
crypto_kem/hqc-128/avx2/code.h View File

@@ -6,8 +6,6 @@
* @file code.h
* Header file of code.c
*/

#include "parameters.h"
#include "parameters.h"
#include <stddef.h>
#include <stdint.h>


+ 1
- 1
crypto_kem/hqc-128/avx2/fft.c View File

@@ -159,7 +159,7 @@ static void radix_big(uint16_t *f0, uint16_t *f1, const uint16_t *f, uint32_t m_
/**
* @brief Evaluates f at all subset sums of a given set
*
* This function is a subroutine of the function fft.
* This function is a subroutine of the function PQCLEAN_HQC128_AVX2_fft.
*
* @param[out] w Array
* @param[in] f Array


+ 0
- 2
crypto_kem/hqc-128/avx2/fft.h View File

@@ -7,8 +7,6 @@
* Header file of fft.c
*/

#include <stddef.h>

#include <stddef.h>
#include <stdint.h>



+ 1
- 3
crypto_kem/hqc-128/avx2/gen_matrix.h
File diff suppressed because it is too large
View File


+ 0
- 2
crypto_kem/hqc-128/avx2/gf.h View File

@@ -7,8 +7,6 @@
* Header file of gf.c
*/

#include <stddef.h>

#include <stddef.h>
#include <stdint.h>



+ 0
- 2
crypto_kem/hqc-128/avx2/gf2x.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQC128_AVX2_vect_mul(uint64_t *o, const uint64_t *a1, const uint64_t *a2);




+ 0
- 2
crypto_kem/hqc-128/avx2/hqc.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQC128_AVX2_hqc_pke_keygen(unsigned char *pk, unsigned char *sk);

void PQCLEAN_HQC128_AVX2_hqc_pke_encrypt(uint64_t *u, uint64_t *v, uint64_t *m, unsigned char *theta, const unsigned char *pk);


+ 0
- 2
crypto_kem/hqc-128/avx2/parameters.h View File

@@ -4,8 +4,6 @@
* @file parameters.h
* @brief Parameters of the HQC_KEM IND-CCA2 scheme
*/

#include "api.h"
#include "api.h"
#include "vector.h"



+ 0
- 2
crypto_kem/hqc-128/avx2/parsing.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQC128_AVX2_store8(unsigned char *out, uint64_t in);

uint64_t PQCLEAN_HQC128_AVX2_load8(const unsigned char *in);


+ 0
- 2
crypto_kem/hqc-128/avx2/repetition.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQC128_AVX2_repetition_code_decode(uint64_t *m, const uint64_t *em);




+ 0
- 2
crypto_kem/hqc-128/avx2/vector.h View File

@@ -6,8 +6,6 @@
* @file vector.h
* @brief Header file for vector.c
*/

#include "nistseedexpander.h"
#include "nistseedexpander.h"
#include "randombytes.h"
#include <stdint.h>


+ 0
- 2
crypto_kem/hqc-128/clean/bch.h View File

@@ -6,8 +6,6 @@
* @file bch.h
* Header file of bch.c
*/

#include "parameters.h"
#include "parameters.h"
#include <stddef.h>
#include <stdint.h>


+ 0
- 2
crypto_kem/hqc-128/clean/code.h View File

@@ -6,8 +6,6 @@
* @file code.h
* Header file of code.c
*/

#include "parameters.h"
#include "parameters.h"
#include <stddef.h>
#include <stdint.h>


+ 2
- 2
crypto_kem/hqc-128/clean/fft.c View File

@@ -162,7 +162,7 @@ static void radix_t_big(uint16_t *f, const uint16_t *f0, const uint16_t *f1, uin
/**
* @brief Recursively computes syndromes of family w
*
* This function is a subroutine of the function fft_t
* This function is a subroutine of the function PQCLEAN_HQC128_CLEAN_fft_t
*
* @param[out] f Array receiving the syndromes
* @param[in] w Array storing the family
@@ -426,7 +426,7 @@ static void radix_big(uint16_t *f0, uint16_t *f1, const uint16_t *f, uint32_t m_
/**
* @brief Evaluates f at all subset sums of a given set
*
* This function is a subroutine of the function fft.
* This function is a subroutine of the function PQCLEAN_HQC128_CLEAN_fft.
*
* @param[out] w Array
* @param[in] f Array


+ 0
- 2
crypto_kem/hqc-128/clean/fft.h View File

@@ -7,8 +7,6 @@
* Header file of fft.c
*/

#include <stddef.h>

#include <stddef.h>
#include <stdint.h>



+ 1
- 3
crypto_kem/hqc-128/clean/gf.h
File diff suppressed because it is too large
View File


+ 0
- 2
crypto_kem/hqc-128/clean/gf2x.h View File

@@ -6,8 +6,6 @@
* @file gf2x.h
* @brief Header file for gf2x.c
*/

#include "nistseedexpander.h"
#include "nistseedexpander.h"
#include "randombytes.h"
#include <stdint.h>


+ 0
- 2
crypto_kem/hqc-128/clean/hqc.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQC128_CLEAN_hqc_pke_keygen(unsigned char *pk, unsigned char *sk);

void PQCLEAN_HQC128_CLEAN_hqc_pke_encrypt(uint64_t *u, uint64_t *v, uint64_t *m, unsigned char *theta, const unsigned char *pk);


+ 0
- 2
crypto_kem/hqc-128/clean/parameters.h View File

@@ -4,8 +4,6 @@
* @file parameters.h
* @brief Parameters of the HQC_KEM IND-CCA2 scheme
*/

#include "api.h"
#include "api.h"
#include "vector.h"



+ 0
- 2
crypto_kem/hqc-128/clean/parsing.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQC128_CLEAN_store8(unsigned char *out, uint64_t in);

uint64_t PQCLEAN_HQC128_CLEAN_load8(const unsigned char *in);


+ 0
- 2
crypto_kem/hqc-128/clean/repetition.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQC128_CLEAN_repetition_code_encode(uint64_t *em, const uint64_t *m);

void PQCLEAN_HQC128_CLEAN_repetition_code_decode(uint64_t *m, const uint64_t *em);


+ 0
- 2
crypto_kem/hqc-128/clean/vector.h View File

@@ -6,8 +6,6 @@
* @file vector.h
* @brief Header file for vector.c
*/

#include "nistseedexpander.h"
#include "nistseedexpander.h"
#include "randombytes.h"
#include <stdint.h>


+ 2
- 2
crypto_kem/hqc-192/META.yml View File

@@ -22,9 +22,9 @@ principal-submitters:
- Loïc Bidoux
implementations:
- name: clean
version: 2020-05-29
version: hqc-submission_2020-05-29 via https://github.com/jschanck/package-pqclean/tree/22134db4/hqc
- name: avx2
version: 2020-05-29
version: hqc-submission_2020-05-29 via https://github.com/jschanck/package-pqclean/tree/22134db4/hqc
supported_platforms:
- architecture: x86_64
operating_systems:


+ 0
- 2
crypto_kem/hqc-192/avx2/alpha_table.h View File

@@ -6,8 +6,6 @@
* @file alpha_table.h
* Header file that contain precomputed power of alpha the root of the generator poly og GF(2^PARAM_M)
*/

#include "parameters.h"
#include "parameters.h"




+ 0
- 2
crypto_kem/hqc-192/avx2/bch.h View File

@@ -6,8 +6,6 @@
* @file bch.h
* Header file of bch.c
*/

#include "parameters.h"
#include "parameters.h"
#include <stddef.h>
#include <stdint.h>


+ 1
- 1
crypto_kem/hqc-192/avx2/code.c View File

@@ -43,7 +43,7 @@ void PQCLEAN_HQC192_AVX2_code_encode(uint64_t *em, const uint64_t *m) {

__m256i *colonne, y, aux0;
__m256i msg = _mm256_lddqu_si256((const __m256i *) m);
colonne = ((__m256i *) PQCLEAN_HQC192_AVX2_gen_matrix);
colonne = ((__m256i *) gen_matrix);

pos_r = 0;
for (i = 0; i < PARAM_N1 - PARAM_K; i++) {


+ 0
- 2
crypto_kem/hqc-192/avx2/code.h View File

@@ -6,8 +6,6 @@
* @file code.h
* Header file of code.c
*/

#include "parameters.h"
#include "parameters.h"
#include <stddef.h>
#include <stdint.h>


+ 1
- 1
crypto_kem/hqc-192/avx2/fft.c View File

@@ -159,7 +159,7 @@ static void radix_big(uint16_t *f0, uint16_t *f1, const uint16_t *f, uint32_t m_
/**
* @brief Evaluates f at all subset sums of a given set
*
* This function is a subroutine of the function fft.
* This function is a subroutine of the function PQCLEAN_HQC192_AVX2_fft.
*
* @param[out] w Array
* @param[in] f Array


+ 0
- 2
crypto_kem/hqc-192/avx2/fft.h View File

@@ -7,8 +7,6 @@
* Header file of fft.c
*/

#include <stddef.h>

#include <stddef.h>
#include <stdint.h>



+ 1
- 3
crypto_kem/hqc-192/avx2/gen_matrix.h
File diff suppressed because it is too large
View File


+ 0
- 2
crypto_kem/hqc-192/avx2/gf.h View File

@@ -7,8 +7,6 @@
* Header file of gf.c
*/

#include <stddef.h>

#include <stddef.h>
#include <stdint.h>



+ 0
- 2
crypto_kem/hqc-192/avx2/gf2x.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQC192_AVX2_vect_mul(uint64_t *o, const uint64_t *a1, const uint64_t *a2);




+ 0
- 2
crypto_kem/hqc-192/avx2/hqc.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQC192_AVX2_hqc_pke_keygen(unsigned char *pk, unsigned char *sk);

void PQCLEAN_HQC192_AVX2_hqc_pke_encrypt(uint64_t *u, uint64_t *v, uint64_t *m, unsigned char *theta, const unsigned char *pk);


+ 0
- 2
crypto_kem/hqc-192/avx2/parameters.h View File

@@ -4,8 +4,6 @@
* @file parameters.h
* @brief Parameters of the HQC_KEM IND-CCA2 scheme
*/

#include "api.h"
#include "api.h"
#include "vector.h"



+ 0
- 2
crypto_kem/hqc-192/avx2/parsing.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQC192_AVX2_store8(unsigned char *out, uint64_t in);

uint64_t PQCLEAN_HQC192_AVX2_load8(const unsigned char *in);


+ 0
- 2
crypto_kem/hqc-192/avx2/repetition.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQC192_AVX2_repetition_code_decode(uint64_t *m, const uint64_t *em);




+ 0
- 2
crypto_kem/hqc-192/avx2/vector.h View File

@@ -6,8 +6,6 @@
* @file vector.h
* @brief Header file for vector.c
*/

#include "nistseedexpander.h"
#include "nistseedexpander.h"
#include "randombytes.h"
#include <stdint.h>


+ 0
- 2
crypto_kem/hqc-192/clean/bch.h View File

@@ -6,8 +6,6 @@
* @file bch.h
* Header file of bch.c
*/

#include "parameters.h"
#include "parameters.h"
#include <stddef.h>
#include <stdint.h>


+ 0
- 2
crypto_kem/hqc-192/clean/code.h View File

@@ -6,8 +6,6 @@
* @file code.h
* Header file of code.c
*/

#include "parameters.h"
#include "parameters.h"
#include <stddef.h>
#include <stdint.h>


+ 2
- 2
crypto_kem/hqc-192/clean/fft.c View File

@@ -162,7 +162,7 @@ static void radix_t_big(uint16_t *f, const uint16_t *f0, const uint16_t *f1, uin
/**
* @brief Recursively computes syndromes of family w
*
* This function is a subroutine of the function fft_t
* This function is a subroutine of the function PQCLEAN_HQC192_CLEAN_fft_t
*
* @param[out] f Array receiving the syndromes
* @param[in] w Array storing the family
@@ -426,7 +426,7 @@ static void radix_big(uint16_t *f0, uint16_t *f1, const uint16_t *f, uint32_t m_
/**
* @brief Evaluates f at all subset sums of a given set
*
* This function is a subroutine of the function fft.
* This function is a subroutine of the function PQCLEAN_HQC192_CLEAN_fft.
*
* @param[out] w Array
* @param[in] f Array


+ 0
- 2
crypto_kem/hqc-192/clean/fft.h View File

@@ -7,8 +7,6 @@
* Header file of fft.c
*/

#include <stddef.h>

#include <stddef.h>
#include <stdint.h>



+ 1
- 3
crypto_kem/hqc-192/clean/gf.h
File diff suppressed because it is too large
View File


+ 0
- 2
crypto_kem/hqc-192/clean/gf2x.h View File

@@ -6,8 +6,6 @@
* @file gf2x.h
* @brief Header file for gf2x.c
*/

#include "nistseedexpander.h"
#include "nistseedexpander.h"
#include "randombytes.h"
#include <stdint.h>


+ 0
- 2
crypto_kem/hqc-192/clean/hqc.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQC192_CLEAN_hqc_pke_keygen(unsigned char *pk, unsigned char *sk);

void PQCLEAN_HQC192_CLEAN_hqc_pke_encrypt(uint64_t *u, uint64_t *v, uint64_t *m, unsigned char *theta, const unsigned char *pk);


+ 0
- 2
crypto_kem/hqc-192/clean/parameters.h View File

@@ -4,8 +4,6 @@
* @file parameters.h
* @brief Parameters of the HQC_KEM IND-CCA2 scheme
*/

#include "api.h"
#include "api.h"
#include "vector.h"



+ 0
- 2
crypto_kem/hqc-192/clean/parsing.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQC192_CLEAN_store8(unsigned char *out, uint64_t in);

uint64_t PQCLEAN_HQC192_CLEAN_load8(const unsigned char *in);


+ 0
- 2
crypto_kem/hqc-192/clean/repetition.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQC192_CLEAN_repetition_code_encode(uint64_t *em, const uint64_t *m);

void PQCLEAN_HQC192_CLEAN_repetition_code_decode(uint64_t *m, const uint64_t *em);


+ 0
- 2
crypto_kem/hqc-192/clean/vector.h View File

@@ -6,8 +6,6 @@
* @file vector.h
* @brief Header file for vector.c
*/

#include "nistseedexpander.h"
#include "nistseedexpander.h"
#include "randombytes.h"
#include <stdint.h>


+ 2
- 2
crypto_kem/hqc-256/META.yml View File

@@ -22,9 +22,9 @@ principal-submitters:
- Loïc Bidoux
implementations:
- name: clean
version: 2020-05-29
version: hqc-submission_2020-05-29 via https://github.com/jschanck/package-pqclean/tree/22134db4/hqc
- name: avx2
version: 2020-05-29
version: hqc-submission_2020-05-29 via https://github.com/jschanck/package-pqclean/tree/22134db4/hqc
supported_platforms:
- architecture: x86_64
operating_systems:


+ 0
- 2
crypto_kem/hqc-256/avx2/alpha_table.h View File

@@ -6,8 +6,6 @@
* @file alpha_table.h
* Header file that contain precomputed power of alpha the root of the generator poly og GF(2^PARAM_M)
*/

#include "parameters.h"
#include "parameters.h"




+ 0
- 2
crypto_kem/hqc-256/avx2/bch.h View File

@@ -6,8 +6,6 @@
* @file bch.h
* Header file of bch.c
*/

#include "parameters.h"
#include "parameters.h"
#include <stddef.h>
#include <stdint.h>


+ 1
- 1
crypto_kem/hqc-256/avx2/code.c View File

@@ -44,7 +44,7 @@ void PQCLEAN_HQC256_AVX2_code_encode(uint64_t *em, const uint64_t *m) {

__m256i *colonne, y, aux0;
__m256i msg = _mm256_lddqu_si256((const __m256i *) m);
colonne = ((__m256i *) PQCLEAN_HQC256_AVX2_gen_matrix);
colonne = ((__m256i *) gen_matrix);

pos_r = 0;
for (i = 0; i < PARAM_N1 - PARAM_K; i++) {


+ 0
- 2
crypto_kem/hqc-256/avx2/code.h View File

@@ -6,8 +6,6 @@
* @file code.h
* Header file of code.c
*/

#include "parameters.h"
#include "parameters.h"
#include <stddef.h>
#include <stdint.h>


+ 1
- 1
crypto_kem/hqc-256/avx2/fft.c View File

@@ -159,7 +159,7 @@ static void radix_big(uint16_t *f0, uint16_t *f1, const uint16_t *f, uint32_t m_
/**
* @brief Evaluates f at all subset sums of a given set
*
* This function is a subroutine of the function fft.
* This function is a subroutine of the function PQCLEAN_HQC256_AVX2_fft.
*
* @param[out] w Array
* @param[in] f Array


+ 0
- 2
crypto_kem/hqc-256/avx2/fft.h View File

@@ -7,8 +7,6 @@
* Header file of fft.c
*/

#include <stddef.h>

#include <stddef.h>
#include <stdint.h>



+ 1
- 3
crypto_kem/hqc-256/avx2/gen_matrix.h
File diff suppressed because it is too large
View File


+ 0
- 2
crypto_kem/hqc-256/avx2/gf.h View File

@@ -7,8 +7,6 @@
* Header file of gf.c
*/

#include <stddef.h>

#include <stddef.h>
#include <stdint.h>



+ 0
- 2
crypto_kem/hqc-256/avx2/gf2x.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQC256_AVX2_vect_mul(uint64_t *o, const uint64_t *a1, const uint64_t *a2);




+ 0
- 2
crypto_kem/hqc-256/avx2/hqc.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQC256_AVX2_hqc_pke_keygen(unsigned char *pk, unsigned char *sk);

void PQCLEAN_HQC256_AVX2_hqc_pke_encrypt(uint64_t *u, uint64_t *v, uint64_t *m, unsigned char *theta, const unsigned char *pk);


+ 0
- 2
crypto_kem/hqc-256/avx2/parameters.h View File

@@ -4,8 +4,6 @@
* @file parameters.h
* @brief Parameters of the HQC_KEM IND-CCA2 scheme
*/

#include "api.h"
#include "api.h"
#include "vector.h"



+ 0
- 2
crypto_kem/hqc-256/avx2/parsing.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQC256_AVX2_store8(unsigned char *out, uint64_t in);

uint64_t PQCLEAN_HQC256_AVX2_load8(const unsigned char *in);


+ 0
- 2
crypto_kem/hqc-256/avx2/repetition.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQC256_AVX2_repetition_code_decode(uint64_t *m, const uint64_t *em);




+ 0
- 2
crypto_kem/hqc-256/avx2/vector.h View File

@@ -6,8 +6,6 @@
* @file vector.h
* @brief Header file for vector.c
*/

#include "nistseedexpander.h"
#include "nistseedexpander.h"
#include "randombytes.h"
#include <stdint.h>


+ 0
- 2
crypto_kem/hqc-256/clean/bch.h View File

@@ -6,8 +6,6 @@
* @file bch.h
* Header file of bch.c
*/

#include "parameters.h"
#include "parameters.h"
#include <stddef.h>
#include <stdint.h>


+ 0
- 2
crypto_kem/hqc-256/clean/code.h View File

@@ -6,8 +6,6 @@
* @file code.h
* Header file of code.c
*/

#include "parameters.h"
#include "parameters.h"
#include <stddef.h>
#include <stdint.h>


+ 2
- 2
crypto_kem/hqc-256/clean/fft.c View File

@@ -162,7 +162,7 @@ static void radix_t_big(uint16_t *f, const uint16_t *f0, const uint16_t *f1, uin
/**
* @brief Recursively computes syndromes of family w
*
* This function is a subroutine of the function fft_t
* This function is a subroutine of the function PQCLEAN_HQC256_CLEAN_fft_t
*
* @param[out] f Array receiving the syndromes
* @param[in] w Array storing the family
@@ -426,7 +426,7 @@ static void radix_big(uint16_t *f0, uint16_t *f1, const uint16_t *f, uint32_t m_
/**
* @brief Evaluates f at all subset sums of a given set
*
* This function is a subroutine of the function fft.
* This function is a subroutine of the function PQCLEAN_HQC256_CLEAN_fft.
*
* @param[out] w Array
* @param[in] f Array


+ 0
- 2
crypto_kem/hqc-256/clean/fft.h View File

@@ -7,8 +7,6 @@
* Header file of fft.c
*/

#include <stddef.h>

#include <stddef.h>
#include <stdint.h>



+ 1
- 3
crypto_kem/hqc-256/clean/gf.h
File diff suppressed because it is too large
View File


+ 0
- 2
crypto_kem/hqc-256/clean/gf2x.h View File

@@ -6,8 +6,6 @@
* @file gf2x.h
* @brief Header file for gf2x.c
*/

#include "nistseedexpander.h"
#include "nistseedexpander.h"
#include "randombytes.h"
#include <stdint.h>


+ 0
- 2
crypto_kem/hqc-256/clean/hqc.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQC256_CLEAN_hqc_pke_keygen(unsigned char *pk, unsigned char *sk);

void PQCLEAN_HQC256_CLEAN_hqc_pke_encrypt(uint64_t *u, uint64_t *v, uint64_t *m, unsigned char *theta, const unsigned char *pk);


+ 0
- 2
crypto_kem/hqc-256/clean/parameters.h View File

@@ -4,8 +4,6 @@
* @file parameters.h
* @brief Parameters of the HQC_KEM IND-CCA2 scheme
*/

#include "api.h"
#include "api.h"
#include "vector.h"



+ 0
- 2
crypto_kem/hqc-256/clean/parsing.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQC256_CLEAN_store8(unsigned char *out, uint64_t in);

uint64_t PQCLEAN_HQC256_CLEAN_load8(const unsigned char *in);


+ 0
- 2
crypto_kem/hqc-256/clean/repetition.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQC256_CLEAN_repetition_code_encode(uint64_t *em, const uint64_t *m);

void PQCLEAN_HQC256_CLEAN_repetition_code_decode(uint64_t *m, const uint64_t *em);


+ 0
- 2
crypto_kem/hqc-256/clean/vector.h View File

@@ -6,8 +6,6 @@
* @file vector.h
* @brief Header file for vector.c
*/

#include "nistseedexpander.h"
#include "nistseedexpander.h"
#include "randombytes.h"
#include <stdint.h>


+ 2
- 2
crypto_kem/hqc-rmrs-128/META.yml View File

@@ -22,9 +22,9 @@ principal-submitters:
- Loïc Bidoux
implementations:
- name: clean
version: 2020-05-29
version: hqc-submission_2020-05-29 via https://github.com/jschanck/package-pqclean/tree/22134db4/hqc
- name: avx2
version: 2020-05-29
version: hqc-submission_2020-05-29 via https://github.com/jschanck/package-pqclean/tree/22134db4/hqc
supported_platforms:
- architecture: x86_64
operating_systems:


+ 0
- 2
crypto_kem/hqc-rmrs-128/avx2/code.h View File

@@ -6,8 +6,6 @@
* @file code.h
* Header file of code.c
*/

#include "parameters.h"
#include "parameters.h"
#include <stddef.h>
#include <stdint.h>


+ 1
- 1
crypto_kem/hqc-rmrs-128/avx2/fft.c View File

@@ -158,7 +158,7 @@ static void radix_big(uint16_t *f0, uint16_t *f1, const uint16_t *f, uint32_t m_
/**
* @brief Evaluates f at all subset sums of a given set
*
* This function is a subroutine of the function fft.
* This function is a subroutine of the function PQCLEAN_HQCRMRS128_AVX2_fft.
*
* @param[out] w Array
* @param[in] f Array


+ 0
- 3
crypto_kem/hqc-rmrs-128/avx2/fft.h View File

@@ -7,9 +7,6 @@
* Header file of fft.c
*/


#include <stddef.h>

#include <stddef.h>
#include <stdint.h>



+ 0
- 2
crypto_kem/hqc-rmrs-128/avx2/gf.h View File

@@ -7,8 +7,6 @@
* Header file of gf.c
*/

#include <stddef.h>

#include <stddef.h>
#include <stdint.h>



+ 0
- 2
crypto_kem/hqc-rmrs-128/avx2/gf2x.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQCRMRS128_AVX2_vect_mul(uint64_t *o, const uint64_t *a1, const uint64_t *a2);




+ 0
- 2
crypto_kem/hqc-rmrs-128/avx2/hqc.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQCRMRS128_AVX2_hqc_pke_keygen(unsigned char *pk, unsigned char *sk);

void PQCLEAN_HQCRMRS128_AVX2_hqc_pke_encrypt(uint64_t *u, uint64_t *v, uint8_t *m, unsigned char *theta, const unsigned char *pk);


+ 0
- 2
crypto_kem/hqc-rmrs-128/avx2/parameters.h View File

@@ -6,8 +6,6 @@
* @file parameters.h
* @brief Parameters of the HQC_KEM IND-CCA2 scheme
*/

#include "api.h"
#include "api.h"




+ 0
- 2
crypto_kem/hqc-rmrs-128/avx2/parsing.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQCRMRS128_AVX2_store8(unsigned char *out, uint64_t in);

uint64_t PQCLEAN_HQCRMRS128_AVX2_load8(const unsigned char *in);


+ 1
- 1
crypto_kem/hqc-rmrs-128/avx2/reed_muller.c View File

@@ -327,7 +327,7 @@ inline uint32_t find_peaks(__m256i *transform) {
tmp = _mm256_setzero_si256();
for (size_t i = 0; i < 8; i++) {
mask = ~(uint32_t) ((-(int64_t)(i ^ message / 16)) >> 63);
__m256i vect_mask = _mm256_set1_epi32(mask);
vect_mask = _mm256_set1_epi32(mask);
tmp = _mm256_or_si256(tmp, _mm256_and_si256(vect_mask, transform[i]));
}
result = 0;


+ 0
- 2
crypto_kem/hqc-rmrs-128/avx2/reed_muller.h View File

@@ -6,8 +6,6 @@
* @file reed_muller.h
* Header file of reed_muller.c
*/

#include "parameters.h"
#include "parameters.h"
#include <stddef.h>
#include <stdint.h>


+ 0
- 2
crypto_kem/hqc-rmrs-128/avx2/reed_solomon.h View File

@@ -6,8 +6,6 @@
* @file reed_solomon.h
* Header file of reed_solomon.c
*/

#include "parameters.h"
#include "parameters.h"
#include <stddef.h>
#include <stdint.h>


+ 0
- 2
crypto_kem/hqc-rmrs-128/avx2/vector.h View File

@@ -6,8 +6,6 @@
* @file vector.h
* @brief Header file for vector.c
*/

#include "nistseedexpander.h"
#include "nistseedexpander.h"
#include "randombytes.h"
#include <stdint.h>


+ 0
- 2
crypto_kem/hqc-rmrs-128/clean/code.h View File

@@ -6,8 +6,6 @@
* @file code.h
* Header file of code.c
*/

#include "parameters.h"
#include "parameters.h"
#include <stddef.h>
#include <stdint.h>


+ 1
- 1
crypto_kem/hqc-rmrs-128/clean/fft.c View File

@@ -158,7 +158,7 @@ static void radix_big(uint16_t *f0, uint16_t *f1, const uint16_t *f, uint32_t m_
/**
* @brief Evaluates f at all subset sums of a given set
*
* This function is a subroutine of the function fft.
* This function is a subroutine of the function PQCLEAN_HQCRMRS128_CLEAN_fft.
*
* @param[out] w Array
* @param[in] f Array


+ 0
- 3
crypto_kem/hqc-rmrs-128/clean/fft.h View File

@@ -7,9 +7,6 @@
* Header file of fft.c
*/


#include <stddef.h>

#include <stddef.h>
#include <stdint.h>



+ 0
- 2
crypto_kem/hqc-rmrs-128/clean/gf.h View File

@@ -7,8 +7,6 @@
* Header file of gf.c
*/

#include <stddef.h>

#include <stddef.h>
#include <stdint.h>



+ 0
- 2
crypto_kem/hqc-rmrs-128/clean/gf2x.h View File

@@ -6,8 +6,6 @@
* @file gf2x.h
* @brief Header file for gf2x.c
*/

#include "nistseedexpander.h"
#include "nistseedexpander.h"
#include "randombytes.h"
#include <stdint.h>


+ 0
- 2
crypto_kem/hqc-rmrs-128/clean/hqc.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQCRMRS128_CLEAN_hqc_pke_keygen(unsigned char *pk, unsigned char *sk);

void PQCLEAN_HQCRMRS128_CLEAN_hqc_pke_encrypt(uint64_t *u, uint64_t *v, uint8_t *m, unsigned char *theta, const unsigned char *pk);


+ 0
- 2
crypto_kem/hqc-rmrs-128/clean/parameters.h View File

@@ -6,8 +6,6 @@
* @file parameters.h
* @brief Parameters of the HQC_KEM IND-CCA2 scheme
*/

#include "api.h"
#include "api.h"




+ 0
- 2
crypto_kem/hqc-rmrs-128/clean/parsing.h View File

@@ -9,8 +9,6 @@

#include <stdint.h>

#include <stdint.h>

void PQCLEAN_HQCRMRS128_CLEAN_store8(unsigned char *out, uint64_t in);

uint64_t PQCLEAN_HQCRMRS128_CLEAN_load8(const unsigned char *in);


+ 0
- 2
crypto_kem/hqc-rmrs-128/clean/reed_muller.h View File

@@ -6,8 +6,6 @@
* @file reed_muller.h
* Header file of reed_muller.c
*/

#include "parameters.h"
#include "parameters.h"
#include <stddef.h>
#include <stdint.h>


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save