Coda Distributed File System
|
#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"
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]) |
#define SHA_YIELD_INTERVAL 200 |
int CopyAndComputeViceSHA | ( | int | infd, |
int | outfd, | ||
unsigned char | sha[SHA_DIGEST_LENGTH] | ||
) |
int IsZeroSHA | ( | unsigned char | sha[SHA_DIGEST_LENGTH] | ) |
void ViceSHAtoHex | ( | unsigned char | sha[SHA_DIGEST_LENGTH], |
char * | printbuf, | ||
int | printbuflen | ||
) |