]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - hfal_sha256.c
updated Makefile
[avr-crypto-lib.git] / hfal_sha256.c
index 3dac2acc0ecfc7ccede644edb3c172aca30c3f67..0ae65c41fe82c2317e0958a126b1387fc7e66b83 100644 (file)
@@ -30,7 +30,7 @@
 #include "hashfunction_descriptor.h"
 #include "sha256.h"
 
-const char sha256_str[]   PROGMEM = "SHA-256";
+static const char sha256_str[]   PROGMEM = "SHA-256";
 
 const hfdesc_t sha256_desc PROGMEM = {
        HFDESC_TYPE_HASHFUNCTION,
@@ -44,6 +44,6 @@ const hfdesc_t sha256_desc PROGMEM = {
        (hf_lastBlock_fpt)sha256_lastBlock,
        (hf_ctx2hash_fpt)sha256_ctx2hash,
        (hf_free_fpt)NULL,
-       (hf_mem_fpt)NULL
+       (hf_mem_fpt)sha256
 };