CliXoN
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Typedefs | Functions
clixon_sha1.c File Reference
#include <string.h>
#include <stdlib.h>
#include <inttypes.h>
#include <errno.h>
#include <cligen/cligen.h>
#include "clixon_log.h"
#include "clixon_err.h"

Macros

#define SHA1CircularShift(bits, word)
 

Typedefs

typedef struct SHA1Context SHA1Context
 

Functions

static void SHA1ProcessMessageBlock (SHA1Context *)
 
static void SHA1PadMessage (SHA1Context *)
 
static void SHA1Reset (SHA1Context *)
 
static int SHA1Result (SHA1Context *)
 
static void SHA1Input (SHA1Context *, const unsigned char *, uint32_t)
 
char * clicon_sha1hex (const char *str)
 

Macro Definition Documentation

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

Typedef Documentation

typedef struct SHA1Context SHA1Context

Function Documentation

char* clicon_sha1hex ( const char *  str)
static void SHA1Input ( SHA1Context context,
const unsigned char *  message_array,
uint32_t  length 
)
static
static void SHA1PadMessage ( SHA1Context context)
static
static void SHA1ProcessMessageBlock ( SHA1Context context)
static
static void SHA1Reset ( SHA1Context context)
static
static int SHA1Result ( SHA1Context context)
static