summaryrefslogtreecommitdiff
path: root/beecrypt
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2003-05-17 18:13:56 +0000
committerjbj <devnull@localhost>2003-05-17 18:13:56 +0000
commitfb3f3b2e978f4cd8035dc99475460fcbbbd0965e (patch)
tree3df3d57bbbc4b0e6987300b96fa700e2a1aaa019 /beecrypt
parentead95d01cd7fd24587e34adaf31d07363b52403c (diff)
downloadrpm-fb3f3b2e978f4cd8035dc99475460fcbbbd0965e.tar.gz
rpm-fb3f3b2e978f4cd8035dc99475460fcbbbd0965e.tar.bz2
rpm-fb3f3b2e978f4cd8035dc99475460fcbbbd0965e.zip
Spliddles and diddles.
CVS patchset: 6855 CVS date: 2003/05/17 18:13:56
Diffstat (limited to 'beecrypt')
-rw-r--r--beecrypt/beecrypt.api.h6
-rw-r--r--beecrypt/md5.h2
-rw-r--r--beecrypt/sha1.h6
-rw-r--r--beecrypt/sha256.h6
4 files changed, 13 insertions, 7 deletions
diff --git a/beecrypt/beecrypt.api.h b/beecrypt/beecrypt.api.h
index 6dcea4559..22ac58508 100644
--- a/beecrypt/beecrypt.api.h
+++ b/beecrypt/beecrypt.api.h
@@ -80,12 +80,16 @@ static inline uint32_t _rotr32(uint32_t x, const unsigned char n)
typedef uint8_t byte;
+/*@-typeuse@*/
typedef int8_t javabyte;
typedef int16_t javashort;
typedef int32_t javaint;
+/*@=typeuse@*/
typedef int64_t javalong;
+/*@-typeuse@*/
typedef uint16_t javachar;
+/*@=typeuse@*/
#if (MP_WBITS == 64)
typedef uint64_t mpw;
@@ -96,7 +100,9 @@ typedef uint32_t mphw;
typedef uint64_t mpdw;
# endif
typedef uint32_t mpw;
+/*@-typeuse@*/
typedef uint16_t mphw;
+/*@=typeuse@*/
#else
# error
#endif
diff --git a/beecrypt/md5.h b/beecrypt/md5.h
index 0baebd288..40dcf41c3 100644
--- a/beecrypt/md5.h
+++ b/beecrypt/md5.h
@@ -91,7 +91,7 @@ int md5Update (md5Param* mp, const byte* data, size_t size)
/** \ingroup HASH_md5_m
* This function finishes the current hash computation, returning the digest
* value in \a digest.
- * @param sp hash parameter block
+ * @param mp hash parameter block
* @retval *digest 16 byte MD5 digest
* @return 0 on success
*/
diff --git a/beecrypt/sha1.h b/beecrypt/sha1.h
index 38e98233a..0e6c7bc27 100644
--- a/beecrypt/sha1.h
+++ b/beecrypt/sha1.h
@@ -56,7 +56,7 @@ extern BEECRYPTAPI const hashFunction sha1;
/** \ingroup HASH_sha1_m
* This function performs the SHA-1 hash algorithm on 64 byte blocks of data.
- * @param mp hash parameter block
+ * @param sp hash parameter block
*/
BEECRYPTAPI
void sha1Process(sha1Param* sp)
@@ -64,7 +64,7 @@ void sha1Process(sha1Param* sp)
/** \ingroup HASH_sha1_m
* This function resets the parameter block so that it's ready for a new hash.
- * @param mp hash parameter block
+ * @param sp hash parameter block
* @return 0 on success
*/
BEECRYPTAPI /*@unused@*/
@@ -73,7 +73,7 @@ int sha1Reset (sha1Param* sp)
/** \ingroup HASH_sha1_m
* This function should be used to pass successive blocks of data to be hashed.
- * @param mp hash parameter block
+ * @param sp hash parameter block
* @param *data bytes to hash
* @param size no. of bytes to hash
* @return 0 on success
diff --git a/beecrypt/sha256.h b/beecrypt/sha256.h
index 8102de1e5..390d228e9 100644
--- a/beecrypt/sha256.h
+++ b/beecrypt/sha256.h
@@ -57,7 +57,7 @@ extern BEECRYPTAPI const hashFunction sha256;
/*@-exportlocal@*/
/** \ingroup HASH_sha256_m
* This function performs the SHA-256 hash algorithm on 64 byte blocks of data.
- * @param mp hash parameter block
+ * @param sp hash parameter block
*/
BEECRYPTAPI
void sha256Process(sha256Param* sp)
@@ -66,7 +66,7 @@ void sha256Process(sha256Param* sp)
/** \ingroup HASH_sha256_m
* This function resets the parameter block so that it's ready for a new hash.
- * @param mp hash parameter block
+ * @param sp hash parameter block
* @return 0 on success
*/
BEECRYPTAPI
@@ -75,7 +75,7 @@ int sha256Reset (sha256Param* sp)
/** \ingroup HASH_sha256_m
* This function should be used to pass successive blocks of data to be hashed.
- * @param mp hash parameter block
+ * @param sp hash parameter block
* @param *data bytes to hash
* @param size no. of bytes to hash
* @return 0 on success