[tor-bugs] #7869 [Core Tor/Tor]: ntor-onion-key is padded with an equal sign

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Apr 4 23:13:10 UTC 2017


#7869: ntor-onion-key is padded with an equal sign
-------------------------------------------------+-------------------------
 Reporter:  rransom                              |          Owner:
                                                 |  steeve149
     Type:  defect                               |         Status:
                                                 |  assigned
 Priority:  Low                                  |      Milestone:  Tor:
                                                 |  unspecified
Component:  Core Tor/Tor                         |        Version:
 Severity:  Normal                               |     Resolution:
 Keywords:  tor-relay, easy, intro,              |  Actual Points:
  tor-03-unspecified-201612                      |
Parent ID:                                       |         Points:
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------

Comment (by Jigsaw52):

 I tried to fix this. Here is my code: https://github.com/Jigsaw52/tor/tree
 /remove-padding-fix-7869

 While fixing this issue, I noticed that the function
 curve25519_public_to_base64 does not behave according to its description.
 The description says 'Encode <b>pkey</b> as a base64-encoded string,
 without trailing "=" characters'. However, this function output still had
 the trailing "=".
 I fixed this as well and fixed all the code and tests that used padded
 keys.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7869#comment:15>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list