2021-06-27 21:25:29 +00:00
|
|
|
/***
|
|
|
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
|
|
|
|
File: Crypto.hpp
|
|
|
|
Date: 2021-6-17
|
|
|
|
Author: Reece
|
|
|
|
***/
|
|
|
|
#pragma once
|
|
|
|
|
2022-11-18 21:03:11 +00:00
|
|
|
#include <mbedtls/md.h>
|
|
|
|
|
2021-06-27 21:25:29 +00:00
|
|
|
namespace Crypto
|
|
|
|
{
|
|
|
|
inline int gAesCipher;
|
2022-11-06 12:30:06 +00:00
|
|
|
inline int gDesCipher;
|
2021-06-27 21:25:29 +00:00
|
|
|
inline int gHashTiger;
|
|
|
|
inline int gHashSha1;
|
2022-09-25 09:56:03 +00:00
|
|
|
inline int gHashMD4;
|
2022-09-19 01:34:57 +00:00
|
|
|
inline int gHashMD5;
|
2021-06-27 21:25:29 +00:00
|
|
|
inline int gHashSha256;
|
2022-09-19 01:34:57 +00:00
|
|
|
inline int gHashSha384;
|
2021-06-27 21:25:29 +00:00
|
|
|
inline int gHashSha512;
|
2022-09-19 01:34:57 +00:00
|
|
|
inline int gHashSha3_256;
|
|
|
|
inline int gHashSha3_384;
|
|
|
|
inline int gHashSha3_224;
|
|
|
|
inline int gHashSha3_512;
|
2021-06-27 21:25:29 +00:00
|
|
|
inline int gPrngYarrow;
|
2022-09-25 09:56:03 +00:00
|
|
|
inline int gHashRMD128;
|
|
|
|
inline int gHashRMD160;
|
|
|
|
inline int gHashRMD256;
|
|
|
|
inline int gHashRMD320;
|
|
|
|
|
2021-06-27 21:25:29 +00:00
|
|
|
void InitCrypto();
|
2022-09-25 09:56:03 +00:00
|
|
|
|
|
|
|
int PaddingToType(Aurora::Crypto::EPaddingType type);
|
|
|
|
|
|
|
|
int HashMethodToId(Aurora::Hashing::EHashType type);
|
2022-11-18 21:03:11 +00:00
|
|
|
|
|
|
|
mbedtls_md_type_t TypeToMbed(Aurora::Hashing::EHashType type);
|
2021-06-27 21:25:29 +00:00
|
|
|
}
|