X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=blockcipher_descriptor.h;h=6e1f64f3f2dd4db99b1e98fb99e9f6973458b11e;hp=a58ad8a05506eb5feb998dc7c714eec3938b9ed7;hb=d9352fc79fbdee0cf3288809b104ea196ea85693;hpb=e5a49deb52521f019e37779d6e9d81ec4f02aba4 diff --git a/blockcipher_descriptor.h b/blockcipher_descriptor.h index a58ad8a..6e1f64f 100644 --- a/blockcipher_descriptor.h +++ b/blockcipher_descriptor.h @@ -1,7 +1,7 @@ /* blockcipher_descriptor.h */ /* This file is part of the AVR-Crypto-Lib. - Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de) + Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -63,8 +63,8 @@ typedef union{ } bc_dec_fpt; #define BC_INIT_TYPE 0x01 -#define BC_INIT_TYPE_1 0x00 -#define BC_INIT_TYPE_2 0x01 +#define BC_INIT_TYPE_1 0x00 /* for fix keylength */ +#define BC_INIT_TYPE_2 0x01 /* keylength is passed as second parameter */ #define BC_ENC_TYPE 0x02 #define BC_ENC_TYPE_1 0x00 @@ -90,7 +90,7 @@ typedef struct { } bcdesc_t; /* blockcipher descriptor type */ typedef struct{ - bcdesc_t* desc_ptr; + bcdesc_t *desc_ptr; uint16_t keysize; void* ctx; } bcgen_ctx_t;