Spliddles and diddles.
CVS patchset: 6855 CVS date: 2003/05/17 18:13:56
This commit is contained in:
parent
ead95d01cd
commit
fb3f3b2e97
|
@ -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
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue