Opened 4 weeks ago

Last modified 4 weeks ago

#25007 new enhancement

See if we can allocate less for HMAC in Tor relays

Reported by: nickm Owned by:
Priority: Medium Milestone: Tor: 0.3.4.x-final
Component: Core Tor/Tor Version:
Severity: Normal Keywords: memory, performance, malloc
Cc: Actual Points:
Parent ID: #23777 Points:
Reviewer: Sponsor:

Description

Our HMAC usage accounts for a comparatively large fraction of our allocations, according to the data from #23777. Let's see if we can make it allocate less, since it's part of our critical path.

Child Tickets

Change History (1)

comment:1 Changed 4 weeks ago by nickm

We can almost certainly do better with our hkdf usage by using openssl's EVP_PKEY_HKDF where available.

Reusing an HMAC_CTX structure for other HMAC operations may also improve performance.

Last edited 4 weeks ago by nickm (previous) (diff)
Note: See TracTickets for help on using tickets.