]> FriiDump Source - friidump.git/blob - libfriidump/xbox_ref/sha1.h
Fix MSVC CMake SHA1 header resolution
[friidump.git] / libfriidump / xbox_ref / sha1.h
1 #ifndef SHA1_H
2 #define SHA1_H
3
4 #include <stdint.h>
5
6 typedef struct {
7     uint32_t state[5];
8     uint32_t count[2];
9     uint8_t  buffer[64];
10 } SHA1_CTX;
11
12 void SHA1_Init(SHA1_CTX* context);
13 void SHA1_Update(SHA1_CTX* context, const uint8_t* data, uint32_t len);
14 void SHA1_Final(uint8_t digest[20], SHA1_CTX* context);
15
16 #endif