tor/src/feature
David Goulet 2f6bc74914 router: Keep RSA onion public key in ASN.1 format
The OpenSSL "RSA" object is currently 408 bytes compares to the ASN.1 encoding
which is 140 for a 1024 RSA key.

We save 268 bytes per descriptor (routerinfo_t) *and* microdescriptor
(microdesc_t). Scaling this to 6000 relays, and considering client usually
only have microdescriptors, we save 1.608 MB of RAM which is considerable for
mobile client.

This commit makes it that we keep the RSA onion public key (used for TAP
handshake) in ASN.1 format instead of an OpenSSL RSA object.

Changes is done in both routerinfo_t and microdesc_t.

Closes #27246

Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-08-29 15:01:38 -04:00
..
api Provide examples of tor_api_get_provider_version() output 2018-08-08 18:10:28 -04:00
client
control Fix typo in comment for getinfo_helper_current_time() 2018-08-20 11:49:35 -04:00
dirauth router: Keep RSA onion public key in ASN.1 format 2018-08-29 15:01:38 -04:00
dircache Merge remote-tracking branch 'juga/ticket3723_03_squashed_rebased' 2018-07-30 08:33:59 -04:00
dirclient
dircommon
hibernate
hs Merge branch 'maint-0.3.4' 2018-08-16 08:37:11 -04:00
hs_common
nodelist router: Keep RSA onion public key in ASN.1 format 2018-08-29 15:01:38 -04:00
relay router: Keep RSA onion public key in ASN.1 format 2018-08-29 15:01:38 -04:00
rend
stats