aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/relay_crypto_st.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2019-03-07 12:30:13 -0500
committerDavid Goulet <dgoulet@torproject.org>2019-04-29 12:17:57 -0400
commit77d560af64226eaa0fde157d7a6607791975a7a9 (patch)
tree3c9b521535aa4cc9a4c7414b3deacc481fc7b878 /src/core/or/relay_crypto_st.h
parent4efe9d653aa1d375d77d6dca83ca63787d6599d7 (diff)
downloadtor-77d560af64226eaa0fde157d7a6607791975a7a9.tar.gz
tor-77d560af64226eaa0fde157d7a6607791975a7a9.zip
prop289: Keep the digest bytes, not the object
The digest object is as large as the entire internal digest object's state, which is often much larger than the actual set of bytes you're transmitting. This commit makes it that we keep the digest itself which is 20 bytes. Part of #26288 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/core/or/relay_crypto_st.h')
-rw-r--r--src/core/or/relay_crypto_st.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/or/relay_crypto_st.h b/src/core/or/relay_crypto_st.h
index dbdf1599dc..1f243ccdc8 100644
--- a/src/core/or/relay_crypto_st.h
+++ b/src/core/or/relay_crypto_st.h
@@ -26,7 +26,7 @@ struct relay_crypto_t {
struct crypto_digest_t *b_digest;
/** Digest used for the next SENDME cell if any. */
- struct crypto_digest_t *sendme_digest;
+ uint8_t sendme_digest[DIGEST_LEN];
};
#undef crypto_cipher_t