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
428 B
18 lines
428 B
// Copyright Low Entry. Apache License, Version 2.0.
|
|
|
|
#pragma once
|
|
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
|
|
class ULowEntryHashingPearsonLibrary
|
|
{
|
|
private:
|
|
const static uint8 pearson[256];
|
|
|
|
|
|
public:
|
|
static TArray<uint8> Hash(const TArray<uint8>& Bytes, const int32 HashLength) { return Hash(Bytes, 0, 0xf7777777, HashLength); }
|
|
static TArray<uint8> Hash(const TArray<uint8>& Bytes, int32 Index, int32 Length, const int32 HashLength);
|
|
};
|
|
|