2020-10-27 00:05:07 +00:00
|
|
|
#ifndef PQCLEAN_KYBER1024_AVX2_FIPS202X4_H
|
|
|
|
#define PQCLEAN_KYBER1024_AVX2_FIPS202X4_H
|
2019-09-10 10:45:01 +01:00
|
|
|
|
|
|
|
#include <immintrin.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
__m256i s[25];
|
2020-07-31 07:17:42 +01:00
|
|
|
} keccakx4_state;
|
|
|
|
|
2020-10-27 00:05:07 +00:00
|
|
|
void PQCLEAN_KYBER1024_AVX2_shake128x4_absorb(keccakx4_state *state,
|
|
|
|
const uint8_t *in0,
|
|
|
|
const uint8_t *in1,
|
|
|
|
const uint8_t *in2,
|
|
|
|
const uint8_t *in3,
|
|
|
|
size_t inlen);
|
|
|
|
|
|
|
|
void PQCLEAN_KYBER1024_AVX2_shake128x4_squeezeblocks(uint8_t *out0,
|
|
|
|
uint8_t *out1,
|
|
|
|
uint8_t *out2,
|
|
|
|
uint8_t *out3,
|
|
|
|
size_t nblocks,
|
2020-07-31 07:17:42 +01:00
|
|
|
keccakx4_state *state);
|
|
|
|
|
2020-10-27 00:05:07 +00:00
|
|
|
void PQCLEAN_KYBER1024_AVX2_shake256x4_absorb(keccakx4_state *state,
|
|
|
|
const uint8_t *in0,
|
|
|
|
const uint8_t *in1,
|
|
|
|
const uint8_t *in2,
|
|
|
|
const uint8_t *in3,
|
|
|
|
size_t inlen);
|
|
|
|
|
|
|
|
void PQCLEAN_KYBER1024_AVX2_shake256x4_squeezeblocks(uint8_t *out0,
|
|
|
|
uint8_t *out1,
|
|
|
|
uint8_t *out2,
|
|
|
|
uint8_t *out3,
|
|
|
|
size_t nblocks,
|
|
|
|
keccakx4_state *state);
|
2020-07-31 07:17:42 +01:00
|
|
|
|
2020-10-27 00:05:07 +00:00
|
|
|
void PQCLEAN_KYBER1024_AVX2_shake128x4(uint8_t *out0,
|
|
|
|
uint8_t *out1,
|
|
|
|
uint8_t *out2,
|
|
|
|
uint8_t *out3,
|
|
|
|
size_t outlen,
|
|
|
|
const uint8_t *in0,
|
|
|
|
const uint8_t *in1,
|
|
|
|
const uint8_t *in2,
|
|
|
|
const uint8_t *in3,
|
|
|
|
size_t inlen);
|
|
|
|
|
|
|
|
void PQCLEAN_KYBER1024_AVX2_shake256x4(uint8_t *out0,
|
|
|
|
uint8_t *out1,
|
|
|
|
uint8_t *out2,
|
|
|
|
uint8_t *out3,
|
|
|
|
size_t outlen,
|
|
|
|
const uint8_t *in0,
|
|
|
|
const uint8_t *in1,
|
|
|
|
const uint8_t *in2,
|
|
|
|
const uint8_t *in3,
|
|
|
|
size_t inlen);
|
2019-09-10 10:45:01 +01:00
|
|
|
|
|
|
|
#endif
|