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

Re: [tor-bugs] #19303 [Core Tor/Tor]: Revise {extend, create}_cell_format to use trunnel



#19303: Revise {extend,create}_cell_format to use trunnel
-------------------------------------------------+-------------------------
 Reporter:  nickm                                |          Owner:  nickm
     Type:  enhancement                          |         Status:
 Priority:  Medium                               |  assigned
Component:  Core Tor/Tor                         |      Milestone:  Tor:
 Severity:  Normal                               |  0.2.9.x-final
 Keywords:  prop220, ed25519, tor-crypto-        |        Version:
  identity, tor-ed25519-proto,                   |     Resolution:
  TorCoreTeam201607                              |  Actual Points:
Parent ID:  #15056                               |         Points:  1
 Reviewer:                                       |        Sponsor:
                                                 |  SponsorU-must
-------------------------------------------------+-------------------------

Comment (by nickm):

 Draft:

 {{{
 struct trn_create2_cell {
   u16 type;
   u16 datalen;
   u8 data[datalen];
 };

 struct trn_created2_cell {
   u16 datalen;
   u8 data[datalen];
 };

 const LS_IPV4 = 0x00;
 const LS_IPV6 = 0x01;
 const LS_RSA_ID = 0x02;
 const LS_ED_KEY = 0x03;

 struct trn_linkspec {
   u8 type;
   u8 len;
   union spec[type] with length len {
     LS_IPV4: u32 ipv4_addr;
     LS_IPV6: u8 ipv6_addr[16];
     LS_RSA_ID: u8 rsa_keyid[20];
     LS_ED_KEY: u8 ed25519_key[32];
     default: u8 data[];
   };
 }

 struct trn_extend2_cell {
   u8 nspec;
   struct trn_linkspec specs[nspec];
   struct trn_create2_cell create;
 }
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/19303#comment:4>
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