]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - blockcipher_descriptor.h
adjusting test system debug uart reference
[avr-crypto-lib.git] / blockcipher_descriptor.h
index a58ad8a05506eb5feb998dc7c714eec3938b9ed7..33a9ba3c71b18bd3efe22e996f34c55266699600 100644 (file)
@@ -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_tdesc_ptr;
+       bcdesc_t *desc_ptr;
        uint16_t  keysize;
        void*     ctx;
 } bcgen_ctx_t;