MCPcopy Create free account
hub / github.com/MediaArea/MediaInfoLib / Name

Method Name

Source/MediaInfo/HashWrapper.cpp:203–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203string HashWrapper::Name (const HashFunction Function)
204{
205 #if MEDIAINFO_MD5
206 if (Function==MD5)
207 return "MD5";
208 #endif //MEDIAINFO_MD5
209
210 #if MEDIAINFO_SHA1
211 if (Function==SHA1)
212 return "SHA-1";
213 #endif //MEDIAINFO_SHA1
214
215 #if MEDIAINFO_SHA2
216 if (Function==SHA224)
217 return "SHA-224";
218 if (Function==SHA256)
219 return "SHA-256";
220 if (Function==SHA384)
221 return "SHA-384";
222 if (Function==SHA512)
223 return "SHA-512";
224 #endif //MEDIAINFO_SHA2
225
226 return string();
227}
228
229string HashWrapper::Hex2String(const int8u* Digest, const size_t Digest_Size)
230{

Callers 2

LocalNameFunction · 0.45
Parse_XMLFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected