summaryrefslogtreecommitdiff
path: root/arm9/lib/include/dgt.h
blob: 5e63f3f79c79210792231793767fd103e9621606 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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