X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=bcal_noekeon.c;h=c58bdcbeee6be637a7478acf9105d2e5b984c9e5;hp=b1a3485381e8c2418342fd8ae73ad6d0fec04122;hb=1a1a9f56318298d8ec87df9f7e78da68732f0d48;hpb=017345097a7e5e05d7751816d2c8e29af3bacadc diff --git a/bcal_noekeon.c b/bcal_noekeon.c index b1a3485..c58bdcb 100644 --- a/bcal_noekeon.c +++ b/bcal_noekeon.c @@ -9,7 +9,7 @@ const char noekeon_direct_str[] PROGMEM = "Noekeon-Direct"; const char noekeon_indirect_str[] PROGMEM = "Noekeon-Indirect"; -const uint8_t noekeon_keysize_desc[] PROGMEM = { KS_TYPE_LIST, 1, 128, +const uint8_t noekeon_keysize_desc[] PROGMEM = { KS_TYPE_LIST, 1, KS_INT(128), KS_TYPE_TERMINATOR }; const bcdesc_t noekeon_direct_desc PROGMEM = { @@ -18,10 +18,10 @@ const bcdesc_t noekeon_direct_desc PROGMEM = { noekeon_direct_str, 16, 128, - (void_fpt)NULL, - (void_fpt)noekeon_enc, - (void_fpt)noekeon_dec, - (void_fpt)NULL, + {(void_fpt)NULL}, + {(void_fpt)noekeon_enc}, + {(void_fpt)noekeon_dec}, + (bc_free_fpt)NULL, noekeon_keysize_desc }; @@ -31,10 +31,10 @@ const bcdesc_t noekeon_indirect_desc PROGMEM = { noekeon_indirect_str, 16, 128, - (void_fpt)noekeon_init, - (void_fpt)noekeon_enc, - (void_fpt)noekeon_dec, - (void_fpt)NULL, + {(void_fpt)noekeon_init}, + {(void_fpt)noekeon_enc}, + {(void_fpt)noekeon_dec}, + (bc_free_fpt)NULL, noekeon_keysize_desc };