Data Structures | Typedefs | Functions | Variables
sha.h File Reference

Go to the source code of this file.

Data Structures

struct  wc_Sha
 

Typedefs

typedef struct wc_Sha wc_Sha
 

Functions

WOLFSSL_API int wc_InitSha (wc_Sha *)
 This function initializes SHA. This is automatically called by wc_ShaHash. More...
 
WOLFSSL_API int wc_InitSha_ex (wc_Sha *sha, void *heap, int devId)
 
WOLFSSL_API int wc_ShaUpdate (wc_Sha *, const byte *, word32)
 Can be called to continually hash the provided byte array of length len. More...
 
WOLFSSL_API int wc_ShaFinalRaw (wc_Sha *, byte *)
 
WOLFSSL_API int wc_ShaFinal (wc_Sha *, byte *)
 Finalizes hashing of data. Result is placed into hash. Resets state of sha struct. More...
 
WOLFSSL_API void wc_ShaFree (wc_Sha *)
 Used to clean up memory used by an initialized Sha struct. Note: this is only supported if you have WOLFSSL_TI_HASH defined. More...
 
WOLFSSL_API int wc_ShaGetHash (wc_Sha *, byte *)
 Gets hash data. Result is placed into hash. Does not reset state of sha struct. More...
 
WOLFSSL_API int wc_ShaCopy (wc_Sha *, wc_Sha *)
 
WOLFSSL_API void wc_ShaSizeSet (wc_Sha *sha, word32 len)
 
WOLFSSL_API int wc_ShaSetFlags (wc_Sha *sha, word32 flags)
 
WOLFSSL_API int wc_ShaGetFlags (wc_Sha *sha, word32 *flags)
 

Variables

 C