Home | History | Annotate | Download | only in helper

Lines Matching refs:hash

15    Hash open files, Tom St Denis
19 Hash data from an open file handle.
20 @param hash The index of the hash you want to use
21 @param in The FILE* handle of the file you want to hash
26 int hash_filehandle(int hash, FILE *in, unsigned char *out, unsigned long *outlen)
40 if ((err = hash_is_valid(hash)) != CRYPT_OK) {
44 if (*outlen < hash_descriptor[hash].hashsize) {
45 *outlen = hash_descriptor[hash].hashsize;
48 if ((err = hash_descriptor[hash].init(&md)) != CRYPT_OK) {
52 *outlen = hash_descriptor[hash].hashsize;
55 if ((err = hash_descriptor[hash].process(&md, buf, x)) != CRYPT_OK) {
59 err = hash_descriptor[hash].done(&md, out);