aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/aws/s2n/pq-crypto/kyber_r3/kyber512r3_symmetric.h
blob: e898a294504407db9dc471e69377000ab5e7c89f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include "kyber512r3_params.h"
#include "kyber512r3_fips202.h"
#include <stdint.h>

#define keccak_state S2N_KYBER_512_R3_NAMESPACE(keccak_state)
typedef shake128ctx keccak_state;

#define xof_state S2N_KYBER_512_R3_NAMESPACE(xof_state)
typedef keccak_state xof_state;

#define kyber_shake128_absorb S2N_KYBER_512_R3_NAMESPACE(kyber_shake128_absorb)
void kyber_shake128_absorb(keccak_state *s, const uint8_t *input, uint8_t x, uint8_t y);

#define shake256_prf S2N_KYBER_512_R3_NAMESPACE(shake256_prf)
void shake256_prf(uint8_t *output, size_t outlen, const uint8_t *key, uint8_t nonce);