MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / Hashing

Method Hashing

Libraries/Hashing/Hashing.cpp:15–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#pragma clang diagnostic ignored "-Wdeprecated-declarations"
14#endif
15SC::Hashing::Hashing()
16{
17 static_assert(sizeof(CC_MD5_CTX) <= sizeof(buffer), "Check size"); // 92
18 static_assert(sizeof(CC_SHA1_CTX) <= sizeof(buffer), "Check size"); // 96
19 static_assert(sizeof(CC_SHA256_CTX) == sizeof(buffer), "Check size"); // 104
20 static_assert(alignof(CC_MD5_CTX) <= alignof(uint64_t), "Check size");
21 static_assert(CC_MD5_DIGEST_LENGTH == Result::MD5_DIGEST_LENGTH, "Check Size");
22 static_assert(CC_SHA1_DIGEST_LENGTH == Result::SHA1_DIGEST_LENGTH, "Check Size");
23 static_assert(CC_SHA256_DIGEST_LENGTH == Result::SHA256_DIGEST_LENGTH, "Check Size");
24}
25
26SC::Hashing::~Hashing() {}
27

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected