diff options
-rw-r--r-- | lib/source/sha256.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/source/sha256.c b/lib/source/sha256.c index a02e464..c27d3e1 100644 --- a/lib/source/sha256.c +++ b/lib/source/sha256.c @@ -66,7 +66,6 @@ int32_t tc_sha256_update(TCSha256State_t s, const uint8_t *data, size_t datalen) { /* input sanity check: */ if (s == (TCSha256State_t) 0 || - s->iv == (uint32_t *) 0 || data == (void *) 0) { return TC_CRYPTO_FAIL; } else if (datalen == 0) { @@ -91,8 +90,7 @@ int32_t tc_sha256_final(uint8_t *digest, TCSha256State_t s) /* input sanity check: */ if (digest == (uint8_t *) 0 || - s == (TCSha256State_t) 0 || - s->iv == (uint32_t *) 0) { + s == (TCSha256State_t) 0) { return TC_CRYPTO_FAIL; } |