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

Go to the source code of this file.

Data Structures

struct  wc_Sha
 

Functions

WOLFSSL_API int wc_InitSha (wc_Sha *)
 This function initializes SHA. This is automatically called by wc_ShaHash.
 
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.
 
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.
 
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.
 
WOLFSSL_API int wc_ShaGetHash (wc_Sha *, byte *)
 Gets hash data. Result is placed into hash. Does not reset state of sha struct.
 
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
 

Variable Documentation

◆ C

C
extern
Initial value:
{
#endif
#if !defined(HAVE_FIPS) || \
(defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 2))
#ifdef WOLFSSL_MICROCHIP_PIC32MZ
#endif
#ifdef STM32_HASH
#endif
#ifdef WOLFSSL_ASYNC_CRYPT
#endif
#ifdef WOLFSSL_ESP32WROOM32_CRYPT
#endif
#if !defined(NO_OLD_SHA_NAMES)
#endif
#ifndef NO_OLD_WC_NAMES
#endif
enum {
WC_SHA = WC_HASH_TYPE_SHA,
WC_SHA_BLOCK_SIZE = 64,
WC_SHA_DIGEST_SIZE = 20,
WC_SHA_PAD_SIZE = 56
}