aboutsummaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_descriptor.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2021-06-08 11:01:47 -0400
committerNick Mathewson <nickm@torproject.org>2021-06-08 11:24:34 -0400
commit88987ce8ebeea3fa2b8989cbe6dccb95d5d223e8 (patch)
treea24c6caf4c3328f99edf9724b275797a6a7ecfc1 /src/feature/hs/hs_descriptor.h
parentf93d9d8bacb672c123674cfe9fbb01320e6cb3d7 (diff)
downloadtor-88987ce8ebeea3fa2b8989cbe6dccb95d5d223e8.tar.gz
tor-88987ce8ebeea3fa2b8989cbe6dccb95d5d223e8.zip
Quick-and-dirty fuzzer for inner-encrypted layer of hsv3 desc.
Based on hsv3 outer-layer fuzzer; some code may be unnecessary.
Diffstat (limited to 'src/feature/hs/hs_descriptor.h')
-rw-r--r--src/feature/hs/hs_descriptor.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/feature/hs/hs_descriptor.h b/src/feature/hs/hs_descriptor.h
index 7e437faeb8..5f3531fac7 100644
--- a/src/feature/hs/hs_descriptor.h
+++ b/src/feature/hs/hs_descriptor.h
@@ -339,6 +339,16 @@ MOCK_DECL(STATIC size_t, decrypt_desc_layer,(const hs_descriptor_t *desc,
bool is_superencrypted_layer,
char **decrypted_out));
+STATIC hs_desc_decode_status_t desc_decode_encrypted_v3(
+ const hs_descriptor_t *desc,
+ const curve25519_secret_key_t *client_auth_sk,
+ hs_desc_encrypted_data_t *desc_encrypted_out);
+
+MOCK_DECL(STATIC size_t, desc_decrypt_encrypted,(
+ const hs_descriptor_t *desc,
+ const curve25519_secret_key_t *client_auth_sk,
+ char **decrypted_out));
+
#endif /* defined(HS_DESCRIPTOR_PRIVATE) */
#endif /* !defined(TOR_HS_DESCRIPTOR_H) */