My Project
Loading...
Searching...
No Matches
sha256.h File Reference

Go to the source code of this file.

Data Structures

struct  wc_Sha256
 

Typedefs

typedef struct wc_Sha256 wc_Sha256
 
typedef struct wc_Sha256 wc_Sha224
 

Enumerations

enum  { WC_SHA224 = WC_HASH_TYPE_SHA224 , WC_SHA224_BLOCK_SIZE = WC_SHA256_BLOCK_SIZE , WC_SHA224_DIGEST_SIZE = 28 , WC_SHA224_PAD_SIZE = WC_SHA256_PAD_SIZE }
 

Functions

WOLFSSL_API int wc_InitSha256 (wc_Sha256 *)
 This function initializes SHA256. This is automatically called by wc_Sha256Hash.
 
WOLFSSL_API int wc_InitSha256_ex (wc_Sha256 *, void *, int)
 
WOLFSSL_API int wc_Sha256Update (wc_Sha256 *, const byte *, word32)
 Can be called to continually hash the provided byte array of length len.
 
WOLFSSL_API int wc_Sha256FinalRaw (wc_Sha256 *, byte *)
 
WOLFSSL_API int wc_Sha256Final (wc_Sha256 *, byte *)
 Finalizes hashing of data. Result is placed into hash. Resets state of sha256 struct.
 
WOLFSSL_API void wc_Sha256Free (wc_Sha256 *)
 Resets the Sha256 structure. Note: this is only supported if you have WOLFSSL_TI_HASH defined.
 
WOLFSSL_API int wc_Sha256GetHash (wc_Sha256 *, byte *)
 Gets hash data. Result is placed into hash. Does not reset state of sha256 struct.
 
WOLFSSL_API int wc_Sha256Copy (wc_Sha256 *src, wc_Sha256 *dst)
 
WOLFSSL_API void wc_Sha256SizeSet (wc_Sha256 *, word32)
 
WOLFSSL_API int wc_Sha256SetFlags (wc_Sha256 *sha256, word32 flags)
 
WOLFSSL_API int wc_Sha256GetFlags (wc_Sha256 *sha256, word32 *flags)
 
WOLFSSL_API int wc_InitSha224 (wc_Sha224 *)
 Used to initialize a Sha224 struct.
 
WOLFSSL_API int wc_InitSha224_ex (wc_Sha224 *, void *, int)
 
WOLFSSL_API int wc_Sha224Update (wc_Sha224 *, const byte *, word32)
 Can be called to continually hash the provided byte array of length len.
 
WOLFSSL_API int wc_Sha224Final (wc_Sha224 *, byte *)
 Finalizes hashing of data. Result is placed into hash. Resets state of sha224 struct.
 
WOLFSSL_API void wc_Sha224Free (wc_Sha224 *)
 
WOLFSSL_API int wc_Sha224GetHash (wc_Sha224 *, byte *)
 
WOLFSSL_API int wc_Sha224Copy (wc_Sha224 *src, wc_Sha224 *dst)
 
WOLFSSL_API int wc_Sha224SetFlags (wc_Sha224 *sha224, word32 flags)
 
WOLFSSL_API int wc_Sha224GetFlags (wc_Sha224 *sha224, word32 *flags)
 

Variables

 C