diff options
author | David Goulet <dgoulet@torproject.org> | 2017-02-10 14:24:54 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-05-11 08:33:26 -0400 |
commit | ae1d4cfdadb32f145f842e0ee943042eac428c93 (patch) | |
tree | a1fece9cf4bdb54c4ce7a437431704b0ec1e474a /src/test/test_hs_descriptor.c | |
parent | 0958e3b208badb8f24c382e320e2a40d4ab5de86 (diff) | |
download | tor-ae1d4cfdadb32f145f842e0ee943042eac428c93.tar.gz tor-ae1d4cfdadb32f145f842e0ee943042eac428c93.zip |
prop224: Change encryption keys descriptor encoding
A descriptor only contains the curve25519 public key in the enc-key field so
the private key should not be in that data structure. The service data
structures will have access to the full keypair (#20657).
Furthermore, ticket #21871 has highlighted an issue in the proposal 224 about
the encryption key and legacy key being mutually exclusive. This is very wrong
and this commit fixes the code to follow the change to the proposal of that
ticket.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/test/test_hs_descriptor.c')
-rw-r--r-- | src/test/test_hs_descriptor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_hs_descriptor.c b/src/test/test_hs_descriptor.c index b4c58937c4..b1abe381d4 100644 --- a/src/test/test_hs_descriptor.c +++ b/src/test/test_hs_descriptor.c @@ -410,7 +410,7 @@ test_decode_invalid_intro_point(void *arg) const char *enc_key = "enc-key ntor bpZKLsuhxP6woDQ3yVyjm5gUKSk7RjfAijT2qrzbQk0="; const char *enc_key_cert = - "enc-key-certification\n" + "enc-key-cert\n" "-----BEGIN ED25519 CERT-----\n" "AQsACOhZAUpNvCZ1aJaaR49lS6MCdsVkhVGVrRqoj0Y2T4SzroAtAQAgBABFOcGg\n" "lbTt1DF5nKTE/gU3Fr8ZtlCIOhu1A+F5LM7fqCUupfesg0KTHwyIZOYQbJuM5/he\n" |