]> git.cryptolib.org Git - arm-crypto-lib.git/blob - bcal/bcal_noekeon.c
adding mgf1 source
[arm-crypto-lib.git] / bcal / bcal_noekeon.c
1 /* bcal_noekeon.c */
2
3 #include <stdlib.h>
4 #include "blockcipher_descriptor.h"
5 #include "noekeon.h"
6 #include "keysize_descriptor.h"
7
8 const char noekeon_direct_str[]   = "Noekeon-Direct";
9 const char noekeon_indirect_str[] = "Noekeon-Indirect";
10
11 const uint8_t noekeon_keysize_desc[] = { KS_TYPE_LIST, 1, KS_INT(128),
12                                          KS_TYPE_TERMINATOR    };
13
14 const bcdesc_t noekeon_direct_desc = {
15         BCDESC_TYPE_BLOCKCIPHER,
16         BC_ENC_TYPE_1,
17         noekeon_direct_str,
18         16,
19         128,
20         {(void_fpt)NULL},
21         {(void_fpt)noekeon_enc},
22         {(void_fpt)noekeon_dec},
23         (bc_free_fpt)NULL,
24         noekeon_keysize_desc
25 };
26
27 const bcdesc_t noekeon_indirect_desc = {
28         BCDESC_TYPE_BLOCKCIPHER,
29         BC_INIT_TYPE_1 | BC_ENC_TYPE_1,
30         noekeon_indirect_str,
31         16,
32         128,
33         {(void_fpt)noekeon_init},
34         {(void_fpt)noekeon_enc},
35         {(void_fpt)noekeon_dec},
36         (bc_free_fpt)NULL,
37         noekeon_keysize_desc
38 };
39
40