libgpac
Documentation of the core library of GPAC
sha1.c File Reference
#include <gpac/tools.h>
+ Include dependency graph for sha1.c:

Data Structures

struct  GF_SHA1Context
 

Macros

#define _CRT_SECURE_NO_DEPRECATE   1
 
#define PUT_UINT32_BE(n, b, i)
 
#define SHA1CircularShift(bits, word)
 

Functions

void SHA1ProcessMessageBlock (GF_SHA1Context *context)
 
static void SHA1PadMessage (GF_SHA1Context *context)
 
GF_SHA1Context * gf_sha1_starts ()
 
void gf_sha1_update (GF_SHA1Context *context, u8 *message_array, u32 length)
 
void gf_sha1_finish (GF_SHA1Context *context, u8 output[GF_SHA1_DIGEST_SIZE])
 
GF_EXPORT GF_Err gf_sha1_file_ptr (FILE *f, u8 output[GF_SHA1_DIGEST_SIZE])
 
GF_EXPORT GF_Err gf_sha1_file (const char *path, u8 output[GF_SHA1_DIGEST_SIZE])
 
GF_EXPORT void gf_sha1_csum (u8 *input, u32 ilen, u8 output[GF_SHA1_DIGEST_SIZE])
 

Data Structure Documentation

◆ __sha1_context

struct __sha1_context

SHA1 context

Data Fields
unsigned Message_Digest[5]
unsigned Length_Low
unsigned Length_High
unsigned char Message_Block[64]
int Message_Block_Index
int Computed
int Corrupted

Macro Definition Documentation

◆ _CRT_SECURE_NO_DEPRECATE

#define _CRT_SECURE_NO_DEPRECATE   1

◆ PUT_UINT32_BE

#define PUT_UINT32_BE (   n,
  b,
 
)
Value:
{ \
(b)[(i) ] = (u8) ( (n) >> 24 ); \
(b)[(i) + 1] = (u8) ( (n) >> 16 ); \
(b)[(i) + 2] = (u8) ( (n) >> 8 ); \
(b)[(i) + 3] = (u8) ( (n) ); \
}
uint8_t u8
Definition: setup.h:334

◆ SHA1CircularShift

#define SHA1CircularShift (   bits,
  word 
)
Value:
((((word) << (bits)) & 0xFFFFFFFF) | \
((word) >> (32-(bits))))

Function Documentation

◆ SHA1ProcessMessageBlock()

void SHA1ProcessMessageBlock ( GF_SHA1Context *  context)
+ Here is the caller graph for this function:

◆ SHA1PadMessage()

static void SHA1PadMessage ( GF_SHA1Context *  context)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function: