Skip to content

Commit

Permalink
Integrating comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Alami-Amine committed Nov 7, 2024
1 parent 4ff3187 commit 03b5cf5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/crypto/CHIPCryptoPALOpenSSL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -449,10 +449,9 @@ static inline EVP_MD_CTX * to_inner_hash_evp_md_ctx(HashSHA256OpaqueContext * co
return *SafePointerCast<EVP_MD_CTX **>(context);
}

Hash_SHA256_stream::Hash_SHA256_stream()
Hash_SHA256_stream::Hash_SHA256_stream() : mInitialized(false)
{
set_inner_hash_evp_md_ctx(&mContext, nullptr);
mInitialized = false;
}

Hash_SHA256_stream::~Hash_SHA256_stream()
Expand Down Expand Up @@ -541,8 +540,8 @@ void Hash_SHA256_stream::Clear()
{
EVP_MD_CTX_free(mdctx);
set_inner_hash_evp_md_ctx(&mContext, nullptr);
mInitialized = false;
}
mInitialized = false;
OPENSSL_cleanse(this, sizeof(*this));
}

Expand Down

0 comments on commit 03b5cf5

Please sign in to comment.