mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-07-21 13:55:43 +00:00
13 lines
334 B
C
13 lines
334 B
C
// Copyright (c) 2024 Epic Games Tools
|
|
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
|
|
|
internal MD5Hash
|
|
md5_hash_from_string(String8 data)
|
|
{
|
|
MD5_CTX ctx; MD5_Init(&ctx);
|
|
MD5_Update(&ctx, (void*)data.str, safe_cast_u32(data.size));
|
|
MD5Hash hash; MD5_Final((unsigned char*)&hash, &ctx);
|
|
return hash;
|
|
}
|
|
|