2 * eax-aes-test.c: test harness glue for EAX-AES (EAX-Rijndael)
5 * This file is Free Software. It was originally written for secnet.
7 * You may redistribute it and/or modify it under the terms of the GNU
8 * General Public License as published by the Free Software
9 * Foundation; either version 2, or (at your option) any later
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 #define BLOCK_SIZE AES_BLOCK_SIZE
30 void eaxtest_blockcipher_key_setup(const uint8_t *keydata, uint8_t bytes)
32 AES_set_encrypt_key(keydata, bytes*8, &key);
35 static void BLOCK_ENCRYPT(uint8_t dst[BLOCK_SIZE],
36 const uint8_t src[BLOCK_SIZE])
38 AES_encrypt((const void*)src, (void*)dst, &key);