Spliddles and diddles.
authorjbj <devnull@localhost>
Sat, 17 May 2003 18:13:56 +0000 (18:13 +0000)
committerjbj <devnull@localhost>
Sat, 17 May 2003 18:13:56 +0000 (18:13 +0000)
CVS patchset: 6855
CVS date: 2003/05/17 18:13:56

beecrypt/beecrypt.api.h
beecrypt/md5.h
beecrypt/sha1.h
beecrypt/sha256.h

index 6dcea45..22ac585 100644 (file)
@@ -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
index 0baebd2..40dcf41 100644 (file)
@@ -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
  */
index 38e9823..0e6c7bc 100644 (file)
@@ -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
index 8102de1..390d228 100644 (file)
@@ -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