pqc/crypto_kem/mceliece6688128f/clean/aes256ctr.c
2021-03-24 21:02:46 +00:00

14 lines
330 B
C

#include "aes256ctr.h"
void PQCLEAN_MCELIECE6688128F_CLEAN_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);
}