diff --git a/crypto777/hmac/sha224.c b/crypto777/hmac/sha224.c index 78a0bfb84..683440d70 100755 --- a/crypto777/hmac/sha224.c +++ b/crypto777/hmac/sha224.c @@ -26,7 +26,7 @@ const struct ltc_hash_descriptor sha224_desc = 9, &sha224_init, - &sha256_process, + &sha256i_process, &sha224_done, &sha224_test, NULL @@ -69,7 +69,7 @@ int sha224_done(hash_state * md, unsigned char *out) LTC_ARGCHK(md != NULL); LTC_ARGCHK(out != NULL); - err = sha256_done(md, buf); + err = sha256i_done(md, buf); XMEMCPY(out, buf, 28); #ifdef LTC_CLEAN_STACK zeromem(buf, sizeof(buf)); diff --git a/crypto777/hmac/tomcrypt_hash.h b/crypto777/hmac/tomcrypt_hash.h index b596c6a37..de5977437 100755 --- a/crypto777/hmac/tomcrypt_hash.h +++ b/crypto777/hmac/tomcrypt_hash.h @@ -228,9 +228,9 @@ extern const struct ltc_hash_descriptor sha384_desc; #endif #ifdef LTC_SHA256 -int sha256_init(hash_state * md); -int sha256_process(hash_state * md, const unsigned char *in, unsigned long inlen); -int sha256_done(hash_state * md, unsigned char *hash); +int sha256i_init(hash_state * md); +int sha256i_process(hash_state * md, const unsigned char *in, unsigned long inlen); +int sha256i_done(hash_state * md, unsigned char *hash); int sha256_test(void); extern const struct ltc_hash_descriptor sha256_desc; @@ -239,7 +239,7 @@ extern const struct ltc_hash_descriptor sha256_desc; #error LTC_SHA256 is required for LTC_SHA224 #endif int sha224_init(hash_state * md); -#define sha224_process sha256_process +#define sha224_process sha256i_process int sha224_done(hash_state * md, unsigned char *hash); int sha224_test(void); extern const struct ltc_hash_descriptor sha224_desc;