diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-07-11 16:54:05 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-07-31 19:46:00 -0400 |
commit | f64c9dccde9ac8261c9f80ed063acc7988d6836c (patch) | |
tree | 2d87461b8dc8a25437454af0d6dff1b8a9c04516 /src/lib/crypt_ops/crypto_digest.h | |
parent | 27dd2b1f1ff612977ec50c9e15dbe14607b0551b (diff) | |
download | tor-f64c9dccde9ac8261c9f80ed063acc7988d6836c.tar.gz tor-f64c9dccde9ac8261c9f80ed063acc7988d6836c.zip |
Use NSS's digest code in Tor.
This was a fairly straightforward port, once I realized which layer
I should be calling into.
Diffstat (limited to 'src/lib/crypt_ops/crypto_digest.h')
-rw-r--r-- | src/lib/crypt_ops/crypto_digest.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/crypt_ops/crypto_digest.h b/src/lib/crypt_ops/crypto_digest.h index 9facf3b981..59713d2b9f 100644 --- a/src/lib/crypt_ops/crypto_digest.h +++ b/src/lib/crypt_ops/crypto_digest.h @@ -51,6 +51,9 @@ typedef enum { /** Structure used to temporarily save the a digest object. Only implemented * for SHA1 digest for now. */ typedef struct crypto_digest_checkpoint_t { +#ifdef ENABLE_NSS + unsigned int bytes_used; +#endif uint8_t mem[DIGEST_CHECKPOINT_BYTES]; } crypto_digest_checkpoint_t; |