mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-22 11:15:15 +00:00
40 lines
No EOL
764 B
C++
40 lines
No EOL
764 B
C++
/**
|
|
* @file hash.h
|
|
* @brief NEX Hash Implementation.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "nn/crypto.h"
|
|
#include "RootObject.h"
|
|
#include "types.h"
|
|
|
|
namespace nn
|
|
{
|
|
namespace nex
|
|
{
|
|
class MD5 : public nn::crypto::detail::Md5Impl, public nn::nex::RootObject
|
|
{
|
|
public:
|
|
MD5();
|
|
|
|
void init();
|
|
void raw_digest(u8 *);
|
|
void hex_digest();
|
|
|
|
u8 _5C[0x74-0x5C];
|
|
};
|
|
|
|
class Sha1 : public nn::crypto::detail::Sha1Impl, public nn::nex::RootObject
|
|
{
|
|
public:
|
|
Sha1();
|
|
|
|
void Update(void const *, u64);
|
|
void GetHash(void *, u64);
|
|
void GenerateHash(void *, u64, void const *, u64);
|
|
|
|
u32 _68;
|
|
};
|
|
};
|
|
}; |