mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-08 08:55:46 +00:00
switch over to new MD5 hash lib
This commit is contained in:
@@ -7,5 +7,4 @@
|
||||
#include "base_arrays.c"
|
||||
#include "base_bit_array.c"
|
||||
#include "base_crc32.c"
|
||||
#include "base_md5.c"
|
||||
|
||||
|
||||
@@ -10,5 +10,4 @@
|
||||
#include "base_blake3.h"
|
||||
#include "base_bit_array.h"
|
||||
#include "base_crc32.h"
|
||||
#include "base_md5.h"
|
||||
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
// Copyright (c) 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;
|
||||
}
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
// Copyright (c) Epic Games Tools
|
||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||
|
||||
#pragma once
|
||||
|
||||
typedef struct MD5Hash
|
||||
{
|
||||
U8 value[16];
|
||||
} MD5Hash;
|
||||
|
||||
internal MD5Hash md5_hash_from_string(String8 data);
|
||||
|
||||
Reference in New Issue
Block a user