mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-24 00:11:27 +00:00
14 lines
325 B
C
14 lines
325 B
C
|
#include "aes256ctr.h"
|
||
|
|
||
|
void PQCLEAN_MCELIECE348864F_CLEAN_aes256ctr(
|
||
|
uint8_t *out,
|
||
|
size_t outlen,
|
||
|
const uint8_t nonce[AESCTR_NONCEBYTES],
|
||
|
const uint8_t key[AES256_KEYBYTES]) {
|
||
|
|
||
|
aes256ctx state;
|
||
|
aes256_keyexp(&state, key);
|
||
|
aes256_ctr(out, outlen, nonce, &state);
|
||
|
aes256_ctx_release(&state);
|
||
|
}
|