[*] Updated registered LTC digest indices

This commit is contained in:
Reece Wilson 2024-03-03 03:26:01 +00:00
parent 65c78ef182
commit 13b61f166c
3 changed files with 36 additions and 1 deletions

View File

@ -96,7 +96,6 @@ namespace Aurora::Threading
AuUInt64 qwNanoseconds,
AuOptional<bool> optAlreadySpun = {} /*hint: do not spin before switching. subject to global config.*/);
// Absolute timeout variant of nanosecond resolution WoA. Nanoseconds are in steady clock time. 0 = indefinite
AUKN_SYM bool WaitOnAddressUntilEqualSteady(const void *pTargetAddress,
const void *pCompareAddress,

View File

@ -38,6 +38,15 @@ namespace Crypto
gPrngYarrow = register_prng(&yarrow_desc);
gAesCipher = register_cipher(&aes_desc);
gDesCipher = register_cipher(&des3_desc);
gHashWhirlpool = register_hash(&whirlpool_desc);
gHashBlake2S_32 = register_hash(&blake2s_256_desc);
gHashBlake2S_28 = register_hash(&blake2s_224_desc);
gHashBlake2S_20 = register_hash(&blake2s_160_desc);
gHashBlake2S_16 = register_hash(&blake2s_128_desc);
gHashBlake2B_64 = register_hash(&blake2b_512_desc);
gHashBlake2B_48 = register_hash(&blake2b_384_desc);
gHashBlake2B_32 = register_hash(&blake2b_256_desc);
gHashBlake2B_20 = register_hash(&blake2b_160_desc);
}
static void MBedTlsInit()
@ -104,6 +113,24 @@ namespace Crypto
return gHashSha3_384;
case AuHashing::EHashType::eSHA3_64:
return gHashSha3_512;
case AuHashing::EHashType::eWhirlpool:
return gHashWhirlpool;
case AuHashing::EHashType::eBlake2S_32:
return gHashBlake2S_32;
case AuHashing::EHashType::eBlake2S_28:
return gHashBlake2S_28;
case AuHashing::EHashType::eBlake2S_20:
return gHashBlake2S_20;
case AuHashing::EHashType::eBlake2S_16:
return gHashBlake2S_16;
case AuHashing::EHashType::eBlake2B_64:
return gHashBlake2B_64;
case AuHashing::EHashType::eBlake2B_48:
return gHashBlake2B_48;
case AuHashing::EHashType::eBlake2B_32:
return gHashBlake2B_32;
case AuHashing::EHashType::eBlake2B_20:
return gHashBlake2B_20;
default:
return 0xFF;
}

View File

@ -29,6 +29,15 @@ namespace Crypto
inline int gHashRMD160;
inline int gHashRMD256;
inline int gHashRMD320;
inline int gHashWhirlpool;
inline int gHashBlake2S_32;
inline int gHashBlake2S_28;
inline int gHashBlake2S_20;
inline int gHashBlake2S_16;
inline int gHashBlake2B_64;
inline int gHashBlake2B_48;
inline int gHashBlake2B_32;
inline int gHashBlake2B_20;
void InitCrypto();