| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- /* bcal_noekeon.c */
- #include <stdlib.h>
- #include <crypto/blockcipher_descriptor.h>
- #include <crypto/noekeon.h>
- #include <crypto/keysize_descriptor.h>
- const char noekeon_direct_str[] = "Noekeon-Direct";
- const char noekeon_indirect_str[] = "Noekeon-Indirect";
- const uint8_t noekeon_keysize_desc[] = { KS_TYPE_LIST, 1, KS_INT(128),
- KS_TYPE_TERMINATOR };
- const bcdesc_t noekeon_direct_desc = {
- 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
- };
- const bcdesc_t noekeon_indirect_desc = {
- 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
- };
|