summaryrefslogtreecommitdiff
path: root/src/or/hs_service.c
diff options
context:
space:
mode:
authorNeel Chauhan <neel@neelc.org>2018-04-27 17:45:16 -0400
committerGeorge Kadianakis <desnacked@riseup.net>2018-05-02 14:08:28 +0300
commitaf70d3c459d3b11b04e49c1b659183fe2e96e252 (patch)
tree83816f0d9fccb2997441c13480e34c59cac37f16 /src/or/hs_service.c
parent60fad8d41fc7395bd573a2cd9585ae9cb03febc3 (diff)
downloadtor-af70d3c459d3b11b04e49c1b659183fe2e96e252.tar.gz
tor-af70d3c459d3b11b04e49c1b659183fe2e96e252.zip
Optimize legacy intro point digest calculation.
Diffstat (limited to 'src/or/hs_service.c')
-rw-r--r--src/or/hs_service.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/hs_service.c b/src/or/hs_service.c
index e40e9203e7..cf2760760a 100644
--- a/src/or/hs_service.c
+++ b/src/or/hs_service.c
@@ -441,6 +441,10 @@ service_intro_point_new(const extend_info_t *ei, unsigned int is_legacy)
if (crypto_pk_generate_key(ip->legacy_key) < 0) {
goto err;
}
+ if (crypto_pk_get_digest(ip->legacy_key,
+ (char *) ip->legacy_key_digest) < 0) {
+ goto err;
+ }
}
if (ei == NULL) {