} 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
} bcdesc_t; /* blockcipher descriptor type */
typedef struct{
- bcdesc_t* desc_ptr;
+ bcdesc_t *desc_ptr;
uint16_t keysize;
void* ctx;
} bcgen_ctx_t;