security: Change SHA256_DIGEST_LENGTH to SHA256_DIGEST_SIZE;
Change-Id: Ib490cfec5e9331575567b346810d1bc56bc97ea1
diff --git a/src/security/validator.cpp b/src/security/validator.cpp
index 1e5aedc..82de103 100644
--- a/src/security/validator.cpp
+++ b/src/security/validator.cpp
@@ -243,13 +243,13 @@
if(static_cast<bool>(buffer)
&& buffer->size() == sigValue.value_size()
- && buffer->size() == crypto::SHA256_DIGEST_LENGTH)
+ && buffer->size() == crypto::SHA256_DIGEST_SIZE)
{
const uint8_t* p1 = buffer->buf();
const uint8_t* p2 = sigValue.value();
- for(int i = 0; i < crypto::SHA256_DIGEST_LENGTH; i++)
+ for(int i = 0; i < crypto::SHA256_DIGEST_SIZE; i++)
if(p1[i] != p2[i])
return false;
return true;