You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
487 B
18 lines
487 B
namespace WhiteRabbit
|
|
{
|
|
using System.Runtime.CompilerServices;
|
|
using WhiteRabbitUnmanagedBridge;
|
|
|
|
internal static class MD5Digest
|
|
{
|
|
// It only returns first component of MD5 hash
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void Compute(PhraseSet input)
|
|
{
|
|
fixed (uint* inputBuffer = input.Buffer)
|
|
{
|
|
MD5Unmanaged.ComputeMD5(inputBuffer);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|