Coda Distributed File System
Macros | Functions
shaprocs.c File Reference
#include <stdio.h>
#include <ctype.h>
#include <errno.h>
#include "coda_string.h"
#include <unistd.h>
#include <stdlib.h>
#include <assert.h>
#include <lwp/lwp.h>
#include "lka.h"
Include dependency graph for shaprocs.c:

Macros

#define SHA_YIELD_INTERVAL   200
 
#define SHACHUNKSIZE   4096 /* might be better to set to fs block size? */
 

Functions

void ViceSHAtoHex (unsigned char sha[SHA_DIGEST_LENGTH], char *printbuf, int printbuflen)
 
int CopyAndComputeViceSHA (int infd, int outfd, unsigned char sha[SHA_DIGEST_LENGTH])
 
int IsZeroSHA (unsigned char sha[SHA_DIGEST_LENGTH])
 

Macro Definition Documentation

◆ SHA_YIELD_INTERVAL

#define SHA_YIELD_INTERVAL   200

◆ SHACHUNKSIZE

#define SHACHUNKSIZE   4096 /* might be better to set to fs block size? */

Function Documentation

◆ CopyAndComputeViceSHA()

int CopyAndComputeViceSHA ( int  infd,
int  outfd,
unsigned char  sha[SHA_DIGEST_LENGTH] 
)

◆ IsZeroSHA()

int IsZeroSHA ( unsigned char  sha[SHA_DIGEST_LENGTH])

◆ ViceSHAtoHex()

void ViceSHAtoHex ( unsigned char  sha[SHA_DIGEST_LENGTH],
char *  printbuf,
int  printbuflen 
)