[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #31823 [Core Tor/Stem]: HSv3 descriptor support in stem [encoding]



#31823: HSv3 descriptor support in stem [encoding]
-------------------------------------------------+-------------------------
 Reporter:  asn                                  |          Owner:  atagar
     Type:  defect                               |         Status:
                                                 |  reopened
 Priority:  Medium                               |      Milestone:  Tor:
                                                 |  unspecified
Component:  Core Tor/Stem                        |        Version:
 Severity:  Normal                               |     Resolution:
 Keywords:  tor-hs scaling onionbalance          |  Actual Points:  2
  network-team-roadmap-september tor-spec        |
Parent ID:  #26768                               |         Points:  5
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------
Changes (by asn):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Opening ticket again to report a bug with
 https://gitweb.torproject.org/stem.git/commit/?id=f5c8c96cdd2cdc967d44ff017b68ea58ce77ca36
 :

 Right now as the code stands we get the bytes `b'` prefix in the
 descriptor. I suggest you change the code to something like:
 {{{
           client_id =
 stem.util.str_tools._to_unicode(base64.b64encode(os.urandom(8)).rstrip(b'='))
           iv =
 stem.util.str_tools._to_unicode(base64.b64encode(os.urandom(16)).rstrip(b'='))
           cookie =
 stem.util.str_tools._to_unicode(base64.b64encode(os.urandom(16)).rstrip(b'='))
 }}}

 Please let me know if you would prefer me to open a new ticket about this
 (or any other issues I find)

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/31823#comment:19>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs