Skip to content
  • Nick Mathewson's avatar
    Avoid a needless decode/re-encode step in assigning onion keys · 7113a339
    Nick Mathewson authored
    Previously we had decoded the asn.1 to get a public key, and then
    discarded the asn.1 so that we had to re-encode the key to store it
    in the onion_pkey field of a microdesc_t or routerinfo_t.
    
    Now we can just do a tor_memdup() instead, which should be loads
    faster.
    7113a339