Skip to content

Commit 5c41e09

Browse files
authored
Update sha2.h
1 parent 7b8beb4 commit 5c41e09

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Shared/sdk/sha2.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
* SUCH DAMAGE.
3232
*/
3333

34+
#include <cstdint>
35+
3436
#ifndef SHA2_H
3537
#define SHA2_H
3638

@@ -46,9 +48,9 @@
4648

4749
#ifndef SHA2_TYPES
4850
#define SHA2_TYPES
49-
typedef unsigned char uint8;
50-
typedef unsigned int uint32;
51-
typedef unsigned long long uint64;
51+
using uint8 = std::uint8_t;
52+
using uint32 = std::uint32_t;
53+
using uint64 = std::uint64_t;
5254
#endif
5355

5456
#ifdef __cplusplus

0 commit comments

Comments
 (0)