arm-crypto-lib/bcal/bcal_noekeon.c

41 lines
871 B
C
Raw Normal View History

2010-09-26 16:22:40 +00:00
/* bcal_noekeon.c */
#include <stdlib.h>
#include "blockcipher_descriptor.h"
2011-02-01 00:12:24 +00:00
#include "noekeon.h"
2010-09-26 16:22:40 +00:00
#include "keysize_descriptor.h"
2011-02-02 03:47:29 +00:00
const char noekeon_direct_str[] = "Noekeon-Direct";
const char noekeon_indirect_str[] = "Noekeon-Indirect";
2010-09-26 16:22:40 +00:00
2011-02-02 03:47:29 +00:00
const uint8_t noekeon_keysize_desc[] = { KS_TYPE_LIST, 1, KS_INT(128),
KS_TYPE_TERMINATOR };
2010-09-26 16:22:40 +00:00
2011-02-02 03:47:29 +00:00
const bcdesc_t noekeon_direct_desc = {
2010-09-26 16:22:40 +00:00
BCDESC_TYPE_BLOCKCIPHER,
BC_ENC_TYPE_1,
noekeon_direct_str,
16,
128,
{(void_fpt)NULL},
{(void_fpt)noekeon_enc},
{(void_fpt)noekeon_dec},
(bc_free_fpt)NULL,
noekeon_keysize_desc
};
2011-02-02 03:47:29 +00:00
const bcdesc_t noekeon_indirect_desc = {
2010-09-26 16:22:40 +00:00
BCDESC_TYPE_BLOCKCIPHER,
BC_INIT_TYPE_1 | BC_ENC_TYPE_1,
noekeon_indirect_str,
16,
128,
{(void_fpt)noekeon_init},
{(void_fpt)noekeon_enc},
{(void_fpt)noekeon_dec},
(bc_free_fpt)NULL,
noekeon_keysize_desc
};