GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
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[20])
 
s32 gf_sha1_file (const char *path, u8 output[20])
 
void gf_sha1_csum (u8 *input, u32 ilen, u8 output[20])
 
void gf_sha1_csum_hexa (u8 *buf, u32 buflen, u8 digest[41])
 

Data Structure Documentation

struct __sha1_context
+ Collaboration diagram for GF_SHA1Context:
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

#define _CRT_SECURE_NO_DEPRECATE   1
#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:248
#define SHA1CircularShift (   bits,
  word 
)
Value:
((((word) << (bits)) & 0xFFFFFFFF) | \
((word) >> (32-(bits))))
unsigned short word
Definition: Rules.h:51

Function Documentation

void SHA1ProcessMessageBlock ( GF_SHA1Context *  context)

+ Here is the caller graph for this function:

static void SHA1PadMessage ( GF_SHA1Context *  context)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function: