Classes | Typedefs | Enumerations | Functions
SHA256.h File Reference
#include <cstdint>
Include dependency graph for SHA256.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  Hash_state
 
struct  sha256_state
 

Typedefs

typedef union Hash_state hash_state
 
typedef uint32_t ulong32
 
typedef uint64_t ulong64
 
typedef uint8_t ulong8
 

Enumerations

enum  { CRYPT_OK = 0, CRYPT_FAIL_TESTVECTOR, CRYPT_INVALID_ARG, CRYPT_HASH_OVERFLOW }
 

Functions

int sha256_done (hash_state *md, ulong8 *hash)
 
int sha256_init (hash_state *md)
 
int sha256_process (hash_state *md, const ulong8 *in, ulong32 inlen)
 

Typedef Documentation

◆ hash_state

typedef union Hash_state hash_state

◆ ulong32

typedef uint32_t ulong32

Definition at line 15 of file SHA256.h.

◆ ulong64

typedef uint64_t ulong64

Definition at line 16 of file SHA256.h.

◆ ulong8

typedef uint8_t ulong8

Definition at line 14 of file SHA256.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
CRYPT_OK 
CRYPT_FAIL_TESTVECTOR 
CRYPT_INVALID_ARG 
CRYPT_HASH_OVERFLOW 

Definition at line 25 of file SHA256.h.

Function Documentation

◆ sha256_done()

int sha256_done ( hash_state md,
ulong8 hash 
)

◆ sha256_init()

int sha256_init ( hash_state md)

Initialize the hash state

Parameters
mdThe hash state you wish to initialize
Returns
CRYPT_OK if successful

Definition at line 163 of file SHA256.cpp.

◆ sha256_process()

int sha256_process ( hash_state md,
const ulong8 in,
ulong32  inlen 
)

Process a block of memory though the hash

Parameters
mdThe hash state
inThe data to hash
inlenThe length of the data (octets)
Returns
CRYPT_OK if successful Process a block of memory though the hash
Parameters
mdThe hash state
inThe data to hash
inlenThe length of the data (octets)
Returns
CRYPT_OK if successful

Definition at line 195 of file SHA256.cpp.



sick_visionary_ros
Author(s): SICK AG TechSupport 3D Snapshot
autogenerated on Thu Feb 8 2024 03:56:21