ifdef out some unused methods in our HAVAL impl.

This commit is contained in:
Brian Cox 2017-08-24 00:57:11 -07:00
parent d0b9b03561
commit bd3b071e1b
2 changed files with 5 additions and 1 deletions

View File

@ -275,6 +275,7 @@ static uint8 padding[128] = { /* constants for padding */
} \
}
#if 0 //unused in OST
/* hash a string */
void haval_string (char *string, uint8 fingerprint[FPTLEN >> 3])
@ -330,6 +331,7 @@ void haval_stdin ()
putchar(fingerprint[i]);
}
}
#endif
/* initialization */
void haval_start (haval_state *state)

View File

@ -117,10 +117,12 @@ typedef struct {
#define P_(s) s
//Old prototyping stuff... I will ignore it for now.
#if 0 //unused in OST
void haval_string P_((char *, uint8 *)); /* hash a string */
int haval_file P_((char *, uint8 *)); /* hash a file */
void haval_stdin P_((void)); /* filter -- hash input from stdin */
#endif
void haval_start P_((haval_state *)); /* initialization */
void haval_hash P_((haval_state* state, uint8* str, int str_len));
void haval_end P_((haval_state *, uint8 *)); /* finalization */