summaryrefslogtreecommitdiff
path: root/arm9/lib/include/dgt.h
diff options
context:
space:
mode:
authorEgor Ananyin <ananinegor@gmail.com>2020-05-22 19:46:43 +0300
committerEgor Ananyin <ananinegor@gmail.com>2020-05-22 19:46:43 +0300
commit7c1d3869d8cf4341acedbe7c662e8ac1ca935666 (patch)
treeeffbe3f4c72ebc7916c88518751e87890de4af8b /arm9/lib/include/dgt.h
parent79a7e3dac84f719ca4d0131ac2e30e2c6a4bd73e (diff)
Decompile libmath
Diffstat (limited to 'arm9/lib/include/dgt.h')
-rw-r--r--arm9/lib/include/dgt.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/arm9/lib/include/dgt.h b/arm9/lib/include/dgt.h
new file mode 100644
index 00000000..5e63f3f7
--- /dev/null
+++ b/arm9/lib/include/dgt.h
@@ -0,0 +1,30 @@
+#ifndef GUARD_DGT_H
+#define GUARD_DGT_H
+
+#include "types.h"
+
+struct DGTHash1Context {
+ union {
+ struct {
+ unsigned long a, b, c, d;
+ };
+ unsigned long state[4];
+ };
+ unsigned long long length;
+ union {
+ unsigned long buffer32[16];
+ unsigned char buffer8[64];
+ };
+};
+
+struct DGTHash2Context {
+ unsigned long Intermediate_Hash[5];
+ unsigned long Length_Low;
+ unsigned long Length_High;
+ int Message_Block_Index;
+ unsigned char Message_Block[64];
+ int Computed;
+ int Corrupted;
+};
+
+#endif