summaryrefslogtreecommitdiffstats
path: root/crypto/userspace/libtomcrypt/headers/tomcrypt_hash.h
blob: e4e84e4841b45a738201cfb4b10a4949ffe5c77b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* ---- HASH FUNCTIONS ---- */

struct algo_properties_st;

int hash_is_valid(const struct algo_properties_st *hash);

int hash_memory(const struct algo_properties_st *hash,
                const unsigned char *in,  unsigned long inlen, 
                      unsigned char *out, unsigned long *outlen);
int hash_memory_multi(const struct algo_properties_st *hash, unsigned char *out, unsigned long *outlen,
                      const unsigned char *in, unsigned long inlen, ...);

int hash_get_oid(const struct algo_properties_st *hash, oid_st* st);