aboutsummaryrefslogtreecommitdiffstats
path: root/src/hash
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-11-02 12:33:16 +0000
committerlloyd <[email protected]>2010-11-02 12:33:16 +0000
commit4a361f699573ed3ff128ecc9c654863cd55aaa79 (patch)
tree4e8d4a29abdc937b5dce2c363519429f949e06be /src/hash
parent05edb9f3e52ce18d0833d612fcfebf1442f859ea (diff)
Doxygen
Diffstat (limited to 'src/hash')
-rw-r--r--src/hash/md4/md4.h10
-rw-r--r--src/hash/md4_ia32/md4_ia32.cpp10
-rw-r--r--src/hash/md5/md5.h10
-rw-r--r--src/hash/mdx_hash/mdx_hash.h1
-rw-r--r--src/hash/sha1/sha160.h7
5 files changed, 34 insertions, 4 deletions
diff --git a/src/hash/md4/md4.h b/src/hash/md4/md4.h
index 182954834..d37dbe3b2 100644
--- a/src/hash/md4/md4.h
+++ b/src/hash/md4/md4.h
@@ -30,7 +30,15 @@ class BOTAN_DLL MD4 : public MDx_HashFunction
void compress_n(const byte input[], size_t blocks);
void copy_out(byte[]);
- SecureVector<u32bit> M, digest;
+ /**
+ * The message buffer, exposed for use by subclasses (x86 asm)
+ */
+ SecureVector<u32bit> M;
+
+ /**
+ * The digest value, exposed for use by subclasses (x86 asm)
+ */
+ SecureVector<u32bit> digest;
};
}
diff --git a/src/hash/md4_ia32/md4_ia32.cpp b/src/hash/md4_ia32/md4_ia32.cpp
index 1e3cd64c3..98d3c7a19 100644
--- a/src/hash/md4_ia32/md4_ia32.cpp
+++ b/src/hash/md4_ia32/md4_ia32.cpp
@@ -9,7 +9,15 @@
namespace Botan {
-extern "C" void botan_md4_ia32_compress(u32bit[4], const byte[64], u32bit[16]);
+/**
+* MD4 compression function in IA-32 asm
+* @param digest the current digest
+* @param input the input block
+* @param M the message buffer
+*/
+extern "C" void botan_md4_ia32_compress(u32bit digest[4],
+ const byte input[64],
+ u32bit M[16]);
/*
* MD4 Compression Function
diff --git a/src/hash/md5/md5.h b/src/hash/md5/md5.h
index b54beeec4..92c023c92 100644
--- a/src/hash/md5/md5.h
+++ b/src/hash/md5/md5.h
@@ -30,7 +30,15 @@ class BOTAN_DLL MD5 : public MDx_HashFunction
void compress_n(const byte[], size_t blocks);
void copy_out(byte[]);
- SecureVector<u32bit> M, digest;
+ /**
+ * The message buffer, exposed for use by subclasses (x86 asm)
+ */
+ SecureVector<u32bit> M;
+
+ /**
+ * The digest value, exposed for use by subclasses (x86 asm)
+ */
+ SecureVector<u32bit> digest;
};
}
diff --git a/src/hash/mdx_hash/mdx_hash.h b/src/hash/mdx_hash/mdx_hash.h
index 0dfc16b31..9e32ac003 100644
--- a/src/hash/mdx_hash/mdx_hash.h
+++ b/src/hash/mdx_hash/mdx_hash.h
@@ -19,7 +19,6 @@ class BOTAN_DLL MDx_HashFunction : public HashFunction
{
public:
/**
- * @param hash_length is the output length of this hash
* @param block_length is the number of bytes per block
* @param big_byte_endian specifies if the hash uses big-endian bytes
* @param big_bit_endian specifies if the hash uses big-endian bits
diff --git a/src/hash/sha1/sha160.h b/src/hash/sha1/sha160.h
index 3038039cf..c3b264861 100644
--- a/src/hash/sha1/sha160.h
+++ b/src/hash/sha1/sha160.h
@@ -44,7 +44,14 @@ class BOTAN_DLL SHA_160 : public MDx_HashFunction
void compress_n(const byte[], size_t blocks);
void copy_out(byte[]);
+ /**
+ * The digest value, exposed for use by subclasses (asm, SSE2)
+ */
SecureVector<u32bit> digest;
+
+ /**
+ * The message buffer, exposed for use by subclasses (asm, SSE2)
+ */
SecureVector<u32bit> W;
};