Skip to content

Commit

Permalink
Make Hash_SHA256_stream::IsInitialized() protected (#36633)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alami-Amine authored and pull[bot] committed Dec 5, 2024
1 parent 2f4b893 commit db689a2
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/crypto/CHIPCryptoPAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -900,13 +900,6 @@ class Hash_SHA256_stream
*/
CHIP_ERROR Begin();

/**
* @brief check if the digest computation has been initialized.
*
* @return True if the context is correctly initialized; otherwise, false.
*/
bool IsInitialized();

/**
* @brief Add some data to the digest computation, updating internal state.
*
Expand Down Expand Up @@ -948,6 +941,9 @@ class Hash_SHA256_stream
void Clear();

private:
// Check if the digest computation has been initialized; implement this if your backend needs it.
bool IsInitialized();

HashSHA256OpaqueContext mContext;
};

Expand Down

0 comments on commit db689a2

Please sign in to comment.