61 lines
2.2 KiB
C++
61 lines
2.2 KiB
C++
/***
|
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: Digests.hpp
|
|
Date: 2021-6-10
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
namespace Aurora::Hashing
|
|
{
|
|
AUKN_SYM void MD5(const void *buffer, AuMach length, std::array<AuUInt8, 16> &md5);
|
|
static void MD5(const AuList<AuUInt8> &bytebuffer, std::array<AuUInt8, 16> &md5)
|
|
{
|
|
return MD5(bytebuffer.data(), bytebuffer.size(), md5);
|
|
}
|
|
static void MD5(const AuString &bytebuffer, std::array<AuUInt8, 16> &md5)
|
|
{
|
|
return MD5(bytebuffer.data(), bytebuffer.size(), md5);
|
|
}
|
|
|
|
AUKN_SYM void SHA1(const void *buffer, AuMach length, std::array<AuUInt8, 20> &sha1);
|
|
static void SHA1(const AuList<AuUInt8> &bytebuffer, std::array<AuUInt8, 20> &sha1)
|
|
{
|
|
return SHA1(bytebuffer.data(), bytebuffer.size(), sha1);
|
|
}
|
|
static void SHA1(const AuString &bytebuffer, std::array<AuUInt8, 20> &sha1)
|
|
{
|
|
return SHA1(bytebuffer.data(), bytebuffer.size(), sha1);
|
|
}
|
|
|
|
AUKN_SYM void Tiger(const void *buffer, AuMach length, std::array<AuUInt8, 24> &tiger);
|
|
static void Tiger(const AuList<AuUInt8> &bytebuffer, std::array<AuUInt8, 24> &tiger)
|
|
{
|
|
return Tiger(bytebuffer.data(), bytebuffer.size(), tiger);
|
|
}
|
|
static void Tiger(const AuString &bytebuffer, std::array<AuUInt8, 24> &tiger)
|
|
{
|
|
return Tiger(bytebuffer.data(), bytebuffer.size(), tiger);
|
|
}
|
|
|
|
AUKN_SYM void SHA2(const void *buffer, AuMach length, std::array<AuUInt8, 32> &sha2);
|
|
static void SHA2(const AuList<AuUInt8> &bytebuffer, std::array<AuUInt8, 32> &sha2)
|
|
{
|
|
return SHA2(bytebuffer.data(), bytebuffer.size(), sha2);
|
|
}
|
|
static void SHA2(const AuString &bytebuffer, std::array<AuUInt8, 32> &sha2)
|
|
{
|
|
return SHA2(bytebuffer.data(), bytebuffer.size(), sha2);
|
|
}
|
|
|
|
AUKN_SYM void SHA2_64(const void *buffer, AuMach length, std::array<AuUInt8, 64> &sha2);
|
|
static void SHA2_64(const AuList<AuUInt8> &bytebuffer, std::array<AuUInt8, 64> &sha2)
|
|
{
|
|
return SHA2_64(bytebuffer.data(), bytebuffer.size(), sha2);
|
|
}
|
|
static void SHA2_64(const AuString &bytebuffer, std::array<AuUInt8, 64> &sha2)
|
|
{
|
|
return SHA2_64(bytebuffer.data(), bytebuffer.size(), sha2);
|
|
}
|
|
} |