diff options
author | Neel Chauhan <neel@neelc.org> | 2018-04-27 17:45:16 -0400 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2018-05-02 14:08:28 +0300 |
commit | af70d3c459d3b11b04e49c1b659183fe2e96e252 (patch) | |
tree | 83816f0d9fccb2997441c13480e34c59cac37f16 /src/or/hs_service.c | |
parent | 60fad8d41fc7395bd573a2cd9585ae9cb03febc3 (diff) | |
download | tor-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.c | 4 |
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) { |