Reece Wilson
8a2947ffc5
[*] Refactor bcrypt api: HashPW[Ex] -> HashPassword[Ex] [+] ByteBuffer::GetOrAllocateLinearWriteable [+] ByteBuffer::Can[Read/Write](n) [+] ByteBuffer::GetLinear[Read/Writable]able(n) [*] Split RNG.cpp into two files [+] EHashType::eSHA2_48 (_32, _64 was already in place. missed 48/384 bit) [+] AuCrypto::HMAC and IHMACContext (AuHashing) [+] EHashType::eSHA3_28 [+] EHashType::eSHA3_32 [+] EHashType::eSHA3_48 [+] EHashType::eSHA3_64 (AuCrypto) [+] EHashType::eSHA2_48_384 [+] EHashType::eSHA2_64_512 [+] EHashType::eSHA3_28_224 [+] EHashType::eSHA3_32_256 [+] EHashType::eSHA3_48_384 [+] EHashType::eSHA3_64_512 [*] (IRandomDevice) class -> struct [*] Bugfix: cast in Promise<SuccessValue_t, ErrorValue_t>::WriteIntoError [+] Missing AuHashing namespace alias [*] Time util: pad ms when fraction of a second to 3 digits
53 lines
1.7 KiB
C++
53 lines
1.7 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 MD4(const Memory::MemoryViewRead &toHash, AuArray<AuUInt8, 16> &md4);
|
|
|
|
AUKN_SYM void MD5(const Memory::MemoryViewRead &toHash, AuArray<AuUInt8, 16> &md5);
|
|
|
|
AUKN_SYM void SHA1(const Memory::MemoryViewRead &toHash, AuArray<AuUInt8, 20> &sha1);
|
|
|
|
AUKN_SYM void Tiger(const Memory::MemoryViewRead &toHash, AuArray<AuUInt8, 24> &tiger);
|
|
|
|
AUKN_SYM void SHA2(const Memory::MemoryViewRead &toHash, AuArray<AuUInt8, 32> &sha2);
|
|
|
|
AUKN_SYM void SHA2_48(const Memory::MemoryViewRead &toHash, AuArray<AuUInt8, 48> &sha2);
|
|
|
|
AUKN_SYM void SHA2_64(const Memory::MemoryViewRead &toHash, AuArray<AuUInt8, 64> &sha2);
|
|
|
|
AUKN_SYM void SHA3_28(const Memory::MemoryViewRead &toHash, AuArray<AuUInt8, 28> &sha3);
|
|
|
|
AUKN_SYM void SHA3_32(const Memory::MemoryViewRead &toHash, AuArray<AuUInt8, 32> &sha3);
|
|
|
|
AUKN_SYM void SHA3_48(const Memory::MemoryViewRead &toHash, AuArray<AuUInt8, 48> &sha3);
|
|
|
|
AUKN_SYM void SHA3_64(const Memory::MemoryViewRead &toHash, AuArray<AuUInt8, 64> &sha3);
|
|
|
|
/**
|
|
* @brief RipeMD-128
|
|
*/
|
|
AUKN_SYM void RMD128(const Memory::MemoryViewRead &toHash, AuArray<AuUInt8, 16> &rmd128);
|
|
|
|
/**
|
|
* @brief RipeMD-160
|
|
*/
|
|
AUKN_SYM void RMD160(const Memory::MemoryViewRead &toHash, AuArray<AuUInt8, 20> &rmd160);
|
|
|
|
/**
|
|
* @brief RipeMD-256
|
|
*/
|
|
AUKN_SYM void RMD256(const Memory::MemoryViewRead &toHash, AuArray<AuUInt8, 32> &rmd256);
|
|
|
|
/**
|
|
* @brief RipeMD-320
|
|
*/
|
|
AUKN_SYM void RMD320(const Memory::MemoryViewRead &toHash, AuArray<AuUInt8, 40> &rmd320);
|
|
} |