A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
PixoSHA256.h
Go to the documentation of this file.
1
/*********************************************************************
2
* Filename: sha256.h
3
* Author: Brad Conte (brad AT bradconte.com)
4
* Copyright:
5
* Disclaimer: This code is presented "as is" without any guarantees.
6
* Details: Defines the API for the corresponding SHA1 implementation.
7
*********************************************************************/
8
9
#ifndef SHA256_H
10
#define SHA256_H
11
12
/*************************** HEADER FILES ***************************/
13
#include <stddef.h>
14
15
/****************************** MACROS ******************************/
16
#define SHA256_BLOCK_SIZE 32
// SHA256 outputs a 32 byte digest
17
18
/**************************** DATA TYPES ****************************/
19
#
20
typedef
uint8
PIXOVR_BYTE
;
// 8-bit byte
21
typedef
uint32
PIXOVR_WORD
;
// 32-bit word, change to "long" for 16-bit machines
22
23
typedef
struct
{
24
PIXOVR_BYTE
data[64];
25
PIXOVR_WORD
datalen
;
26
unsigned
long
long
bitlen
;
27
PIXOVR_WORD
state[8];
28
}
SHA256_CTX
;
29
30
/*********************** FUNCTION DECLARATIONS **********************/
31
void
sha256_init
(
SHA256_CTX
*ctx);
32
void
sha256_update
(
SHA256_CTX
*ctx,
const
PIXOVR_BYTE
data[],
size_t
len);
33
void
sha256_final
(
SHA256_CTX
*ctx,
PIXOVR_BYTE
hash[]);
34
35
#endif
// SHA256_H
sha256_final
void sha256_final(SHA256_CTX *ctx, PIXOVR_BYTE hash[])
Definition
PixoSHA256.cpp:115
PIXOVR_BYTE
uint8 PIXOVR_BYTE
Definition
PixoSHA256.h:20
sha256_update
void sha256_update(SHA256_CTX *ctx, const PIXOVR_BYTE data[], size_t len)
Definition
PixoSHA256.cpp:100
PIXOVR_WORD
uint32 PIXOVR_WORD
Definition
PixoSHA256.h:21
sha256_init
void sha256_init(SHA256_CTX *ctx)
Definition
PixoSHA256.cpp:86
SHA256_CTX
Definition
PixoSHA256.h:23
SHA256_CTX::datalen
PIXOVR_WORD datalen
Definition
PixoSHA256.h:25
SHA256_CTX::bitlen
unsigned long long bitlen
Definition
PixoSHA256.h:26
SDKDemo
Plugins
UnrealEngineSDK
PixoCore
Source
PixoCore
Public
Utilities
PixoSHA256.h
Generated
Wed Oct 9 2024 19:52:54
by Doxygen version
1.10.0