]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - hashfunction_descriptor.h
fixing some decryption bugs in GCM128
[avr-crypto-lib.git] / hashfunction_descriptor.h
index 8b5faedb0cfb4ac87a6deacc178629bbd150d750..de3c8074b5ce06b7271b45019c23d61a8d4b026e 100644 (file)
@@ -28,7 +28,7 @@ typedef struct {
        /** name, flash pointer to the name string */
        PGM_P    name;
        /** ctxsize_B, size of the hash context in bytes */
-       uint16_t ctxsize_B;
+       size_t ctxsize_B;
        /** blocksize_b, size of an input block in bits */
        uint16_t blocksize_b;
        /** hashsize_b, size of the output hash value in bits */
@@ -47,10 +47,10 @@ typedef struct {
        /** mem, function pointer to a function which hashes a message in RAM
         *  completely or NULL if there is no such function */
        hf_mem_fpt mem;
-} hfdesc_t; /* blockcipher descriptor type */
+} hfdesc_t; /* hashfunction descriptor type */
 
 typedef struct{
-       hfdesc_tdesc_ptr;
+       hfdesc_t *desc_ptr;
        void*     ctx;
 } hfgen_ctx_t;