HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
UT_SHA256.h
Go to the documentation of this file.
1
/*
2
* PROPRIETARY INFORMATION. This software is proprietary to
3
* Side Effects Software Inc., and is not to be reproduced,
4
* transmitted, or disclosed in any way without written permission.
5
*
6
* NAME: UT_SHA256.h (UT Library, C++)
7
*
8
* COMMENTS:
9
*/
10
11
#ifndef __UT_SHA256_H__
12
#define __UT_SHA256_H__
13
14
#include "
UT_API.h
"
15
16
#include "
UT_String.h
"
17
#include "
UT_WorkBuffer.h
"
18
19
class
UT_API
UT_SHA256
20
{
21
public
:
22
UT_SHA256
() { init(); }
23
// Produce a SHA256 hash
24
static
void
hash(
const
UT_WorkBuffer
& input,
UT_String
& output);
25
static
void
hash(
26
const
std::initializer_list<UT_StringView>& inputs,
27
UT_StringHolder
& output);
28
29
protected
:
30
void
init();
31
void
update(
const
unsigned
char
*
message
,
unsigned
int
len);
32
void
finalize(
unsigned
char
* digest);
33
void
transform
(
const
unsigned
char
*
message
,
unsigned
int
block_nb);
34
35
static
const
unsigned
int
SHA256_BLOCK_SIZE = 64;
36
static
const
unsigned
int
DIGEST_SIZE = 32;
37
38
unsigned
int
myTotalLength
;
39
unsigned
int
myLength
;
40
unsigned
char
myBlock[SHA256_BLOCK_SIZE * 2];
41
uint32
myH[8];
42
};
43
44
#endif // __UT_SHA256_H__
message
GLuint GLsizei const GLchar * message
Definition:
glcorearb.h:2543
UT_WorkBuffer
Definition:
UT_WorkBuffer.h:73
UT_API.h
UT_API
#define UT_API
Definition:
UT_API.h:14
UT_SHA256::myTotalLength
unsigned int myTotalLength
Definition:
UT_SHA256.h:38
UT_String.h
UT_StringHolder
Definition:
UT_StringHolder.h:999
UT_SHA256::UT_SHA256
UT_SHA256()
Definition:
UT_SHA256.h:22
UT_WorkBuffer.h
UT_SHA256::myLength
unsigned int myLength
Definition:
UT_SHA256.h:39
GA_Names::transform
GA_API const UT_StringHolder transform
UT_SHA256
Definition:
UT_SHA256.h:19
uint32
unsigned int uint32
Definition:
SYS_Types.h:40
UT_String
Definition:
UT_String.h:73
UT
UT_SHA256.h
Generated on Tue Apr 23 2024 03:16:51 for HDK by
1.8.6