]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - hfal-basic.c
now with shavs tests
[avr-crypto-lib.git] / hfal-basic.c
index cd6c026115293c8198f45e7efa06a555aa4cb8c5..3bd41e5cba92c0b18323434cbd7de9dd5d0fc6e8 100644 (file)
@@ -27,7 +27,7 @@ uint8_t hfal_hash_init(const hfdesc_t* hash_descriptor, hfgen_ctx_t* ctx){
        ctx->desc_ptr = (hfdesc_t*)hash_descriptor;
        if(!(ctx->ctx=malloc(pgm_read_word(&(hash_descriptor->ctxsize_B)))))
                return 3;
-       f= (hf_init_fpt)pgm_read_word(hash_descriptor->init);
+       f= (hf_init_fpt)pgm_read_word(&(hash_descriptor->init));
        f(ctx->ctx);
        return 0;
 }