MCPcopy Create free account
hub / github.com/apache/impala / Compute

Method Compute

be/src/util/openssl-util.cc:235–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233} // function ValidatePemBundle
234
235void IntegrityHash::Compute(const uint8_t* data, int64_t len) {
236 // Explicitly ignore the return value from SHA256(); it can't fail.
237 (void)SHA256(data, len, hash_);
238 DCHECK_EQ(ERR_peek_error(), 0) << "Did not clear OpenSSL error queue";
239}
240
241bool IntegrityHash::Verify(const uint8_t* data, int64_t len) const {
242 IntegrityHash test_hash;

Callers 8

TEST_FFunction · 0.45
ParseAndCompareChecksumFunction · 0.45
Crc32cFunction · 0.45
GenerateCookieFunction · 0.45
EncryptAndHashMethod · 0.45
BenchmarkFunctionFunction · 0.45
TEST_FFunction · 0.45
VerifyMethod · 0.45

Calls 2

OpenSSLErrFunction · 0.85
OKFunction · 0.85

Tested by 2

TEST_FFunction · 0.36
TEST_FFunction · 0.36