Coda Distributed File System
Classes | Macros | Typedefs | Functions
coda_hash.h File Reference
#include <sys/types.h>
#include <stdint.h>
Include dependency graph for coda_hash.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MD5Context
 
struct  SHAContext
 

Macros

#define SHA_DIGEST_LENGTH   20
 

Typedefs

typedef struct MD5Context MD5_CTX
 
typedef struct SHAContext SHA_CTX
 

Functions

void MD5_Init (MD5_CTX *)
 
void MD5_Update (MD5_CTX *, const unsigned char *, unsigned int)
 
void MD5_Final (unsigned char[16], MD5_CTX *)
 
void SHA1_Init (SHA_CTX *ctx)
 
void SHA1_Update (SHA_CTX *ctx, const unsigned char *buf, unsigned int len)
 
void SHA1_Final (unsigned char sha[SHA_DIGEST_LENGTH], SHA_CTX *ctx)
 

Macro Definition Documentation

◆ SHA_DIGEST_LENGTH

#define SHA_DIGEST_LENGTH   20

Typedef Documentation

◆ MD5_CTX

typedef struct MD5Context MD5_CTX

◆ SHA_CTX

typedef struct SHAContext SHA_CTX

Function Documentation

◆ MD5_Final()

void MD5_Final ( unsigned char  digest[16],
MD5_CTX context 
)

◆ MD5_Init()

void MD5_Init ( MD5_CTX context)

◆ MD5_Update()

void MD5_Update ( MD5_CTX context,
const unsigned char *  input,
unsigned int  inputLen 
)

◆ SHA1_Final()

void SHA1_Final ( unsigned char  sha[SHA_DIGEST_LENGTH],
SHA_CTX ctx 
)

◆ SHA1_Init()

void SHA1_Init ( SHA_CTX ctx)

◆ SHA1_Update()

void SHA1_Update ( SHA_CTX ctx,
const unsigned char *  buf,
unsigned int  len 
)