blob: 127e5bc4f6e7043198d1fc063e45e7d583a6e5a3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#pragma once
#include <stdint.h>
#include "kyber512r3_params.h"
#include "kyber512r3_polyvec_avx2.h"
#if defined(S2N_KYBER512R3_AVX2_BMI2)
#define gen_matrix_avx2 S2N_KYBER_512_R3_NAMESPACE(gen_matrix_avx2)
void gen_matrix_avx2(polyvec *a, const uint8_t seed[S2N_KYBER_512_R3_SYMBYTES], int transposed);
#define indcpa_keypair_avx2 S2N_KYBER_512_R3_NAMESPACE(indcpa_keypair_avx2)
int indcpa_keypair_avx2(uint8_t pk[S2N_KYBER_512_R3_INDCPA_PUBLICKEYBYTES],
uint8_t sk[S2N_KYBER_512_R3_INDCPA_SECRETKEYBYTES]);
#define indcpa_enc_avx2 S2N_KYBER_512_R3_NAMESPACE(indcpa_enc_avx2)
void indcpa_enc_avx2(uint8_t c[S2N_KYBER_512_R3_INDCPA_BYTES],
const uint8_t m[S2N_KYBER_512_R3_INDCPA_MSGBYTES],
const uint8_t pk[S2N_KYBER_512_R3_INDCPA_PUBLICKEYBYTES],
const uint8_t coins[S2N_KYBER_512_R3_SYMBYTES]);
#define indcpa_dec_avx2 S2N_KYBER_512_R3_NAMESPACE(indcpa_dec_avx2)
void indcpa_dec_avx2(uint8_t m[S2N_KYBER_512_R3_INDCPA_MSGBYTES],
const uint8_t c[S2N_KYBER_512_R3_INDCPA_BYTES],
const uint8_t sk[S2N_KYBER_512_R3_INDCPA_SECRETKEYBYTES]);
#endif
|