X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=hashfunction_descriptor.h;h=de3c8074b5ce06b7271b45019c23d61a8d4b026e;hp=8eb12c1d23e5b5db90a537c63448d888ad4ddf84;hb=2c909fca2a13cd76a526515bda5d0292483d7a55;hpb=7f4bda01ca923c4a9aca6da3370a7c4793426a5c diff --git a/hashfunction_descriptor.h b/hashfunction_descriptor.h index 8eb12c1..de3c807 100644 --- a/hashfunction_descriptor.h +++ b/hashfunction_descriptor.h @@ -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 */ @@ -50,7 +50,7 @@ typedef struct { } hfdesc_t; /* hashfunction descriptor type */ typedef struct{ - hfdesc_t* desc_ptr; + hfdesc_t *desc_ptr; void* ctx; } hfgen_ctx_t;