summaryrefslogtreecommitdiff
path: root/security/nss/lib/cryptohi/hasht.h
diff options
context:
space:
mode:
Diffstat (limited to 'security/nss/lib/cryptohi/hasht.h')
-rw-r--r--security/nss/lib/cryptohi/hasht.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/security/nss/lib/cryptohi/hasht.h b/security/nss/lib/cryptohi/hasht.h
index 2d2c6b0ca..6df38b49a 100644
--- a/security/nss/lib/cryptohi/hasht.h
+++ b/security/nss/lib/cryptohi/hasht.h
@@ -72,13 +72,15 @@ typedef enum {
* Structure to hold hash computation info and routines
*/
struct SECHashObjectStr {
- unsigned int length;
+ unsigned int length; /* hash output length (in bytes) */
void * (*create)(void);
void * (*clone)(void *);
void (*destroy)(void *, PRBool);
void (*begin)(void *);
void (*update)(void *, const unsigned char *, unsigned int);
void (*end)(void *, unsigned char *, unsigned int *, unsigned int);
+ unsigned int blocklength; /* hash input block size (in bytes) */
+ HASH_HashType type;
};
struct HASHContextStr {