2015-01-29 16:48:05 +01:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
#include "Emu/System.h"
|
2016-05-13 12:17:26 +02:00
|
|
|
#include "Emu/PSP2/ARMv7Module.h"
|
2015-01-29 16:48:05 +01:00
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
#include "sceMd5.h"
|
2015-01-29 16:48:05 +01:00
|
|
|
|
2017-05-13 20:30:37 +02:00
|
|
|
logs::channel sceMd5("sceMd5");
|
2016-02-01 22:53:16 +01:00
|
|
|
|
2015-06-22 00:27:58 +02:00
|
|
|
s32 sceMd5Digest(vm::cptr<void> plain, u32 len, vm::ptr<u8> digest)
|
2015-01-30 00:58:53 +01:00
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 00:58:53 +01:00
|
|
|
}
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
s32 sceMd5BlockInit(vm::ptr<SceMd5Context> pContext)
|
2015-01-30 00:58:53 +01:00
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 00:58:53 +01:00
|
|
|
}
|
|
|
|
|
|
2015-06-22 00:27:58 +02:00
|
|
|
s32 sceMd5BlockUpdate(vm::ptr<SceMd5Context> pContext, vm::cptr<void> plain, u32 len)
|
2015-01-30 00:58:53 +01:00
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 00:58:53 +01:00
|
|
|
}
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
s32 sceMd5BlockResult(vm::ptr<SceMd5Context> pContext, vm::ptr<u8> digest)
|
2015-01-30 00:58:53 +01:00
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 00:58:53 +01:00
|
|
|
}
|
|
|
|
|
|
2016-02-01 22:53:16 +01:00
|
|
|
#define REG_FUNC(nid, name) REG_FNID(SceMd5, nid, name)
|
2015-01-29 16:48:05 +01:00
|
|
|
|
2016-02-01 22:53:16 +01:00
|
|
|
DECLARE(arm_module_manager::SceMd5)("SceMd5", []()
|
2015-01-29 16:48:05 +01:00
|
|
|
{
|
2015-01-30 00:58:53 +01:00
|
|
|
REG_FUNC(0xB845BCCB, sceMd5Digest);
|
|
|
|
|
REG_FUNC(0x4D6436F9, sceMd5BlockInit);
|
|
|
|
|
REG_FUNC(0x094A4902, sceMd5BlockUpdate);
|
|
|
|
|
REG_FUNC(0xB94ABF83, sceMd5BlockResult);
|
2015-01-29 16:48:05 +01:00
|
|
|
});
|