pqc/crypto_sign/dilithium2aes/clean/symmetric-aes.c
John Schanck 4f86c39515
Round 3 update for Dilithium (from github source) (#369)
* Update Dilithium

* Alternative montgomery reduce to avoid i386 functest errors

* Explicit casts for msvc

* More casts; bump upstream version; fix metadata

* another cast
2021-02-01 13:32:40 +08:00

13 lines
385 B
C

#include "aes256ctr.h"
#include "symmetric.h"
#include <stdint.h>
void PQCLEAN_DILITHIUM2AES_CLEAN_dilithium_aes256ctr_init(aes256ctr_ctx *state,
const uint8_t key[32],
uint16_t nonce) {
uint8_t expnonce[12] = {0};
expnonce[0] = (uint8_t) nonce;
expnonce[1] = (uint8_t) (nonce >> 8);
PQCLEAN_DILITHIUM2AES_CLEAN_aes256ctr_init(state, key, expnonce);
}