X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=hfal_sha256.c;h=0ae65c41fe82c2317e0958a126b1387fc7e66b83;hb=82de0ec79b83ba107676269ec1feddabb4cfe456;hp=3dac2acc0ecfc7ccede644edb3c172aca30c3f67;hpb=e5a49deb52521f019e37779d6e9d81ec4f02aba4;p=avr-crypto-lib.git diff --git a/hfal_sha256.c b/hfal_sha256.c index 3dac2ac..0ae65c4 100644 --- a/hfal_sha256.c +++ b/hfal_sha256.c @@ -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 };