summaryrefslogtreecommitdiffstats
path: root/crypto/userspace/libtomcrypt/headers/tomcrypt_hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/userspace/libtomcrypt/headers/tomcrypt_hash.h')
-rw-r--r--crypto/userspace/libtomcrypt/headers/tomcrypt_hash.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/crypto/userspace/libtomcrypt/headers/tomcrypt_hash.h b/crypto/userspace/libtomcrypt/headers/tomcrypt_hash.h
new file mode 100644
index 00000000000..e4e84e4841b
--- /dev/null
+++ b/crypto/userspace/libtomcrypt/headers/tomcrypt_hash.h
@@ -0,0 +1,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);
+