diff options
author | David Goulet <dgoulet@torproject.org> | 2019-01-23 14:39:04 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2019-04-29 12:17:57 -0400 |
commit | 402f0a4f5d70bee128130f4dbd0ea18de1747410 (patch) | |
tree | c5a3b45ccccd93171f830197aa994135bdc09f92 /src/core/or/relay_crypto_st.h | |
parent | bb473a807ae94a1e6c45a069db6ddf213413940a (diff) | |
download | tor-402f0a4f5d70bee128130f4dbd0ea18de1747410.tar.gz tor-402f0a4f5d70bee128130f4dbd0ea18de1747410.zip |
prop289: Remember the last cell digest for v1 SENDMEs
In order to do so, depending on where the cell is going, we'll keep the last
cell digest that is either received inbound or sent outbound.
Then it can be used for validation.
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/or/relay_crypto_st.h b/src/core/or/relay_crypto_st.h index dafce257c7..dbdf1599dc 100644 --- a/src/core/or/relay_crypto_st.h +++ b/src/core/or/relay_crypto_st.h @@ -25,6 +25,8 @@ struct relay_crypto_t { /** Digest state for cells heading away from the OR at this step. */ struct crypto_digest_t *b_digest; + /** Digest used for the next SENDME cell if any. */ + struct crypto_digest_t *sendme_digest; }; #undef crypto_cipher_t |