MCPcopy Create free account
hub / github.com/SmingHub/Sming / resetHash

Function resetHash

Sming/Components/ssl/BearSsl/BrClientConnection.cpp:19–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17namespace
18{
19template <class HashCtx> void resetHash(std::unique_ptr<HashCtx>& ctx, bool create)
20{
21 ctx.reset(create ? new HashCtx : nullptr);
22}
23
24template <class HashCtx> void updateHash(HashCtx& ctx, const uint8_t* buf, size_t len)
25{

Callers 1

startCertMethod · 0.85

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected