pqc/crypto_kem/mceliece8192128f/sse/aes256ctr.c

14 lines
328 B
C
Raw Normal View History

#include "aes256ctr.h"
void PQCLEAN_MCELIECE8192128F_SSE_aes256ctr(
uint8_t *out,
size_t outlen,
const uint8_t nonce[AESCTR_NONCEBYTES],
const uint8_t key[AES256_KEYBYTES]) {
aes256ctx state;
aes256_ctr_keyexp(&state, key);
aes256_ctr(out, outlen, nonce, &state);
aes256_ctx_release(&state);
}