robur-coop / miragevpn

An opinionated implementation of the OpenVPN protocol
BSD 2-Clause "Simplified" License
79 stars 9 forks source link

Use constant-time comparison for hashes #142

Open reynir opened 1 year ago

reynir commented 1 year ago

See e.g. https://github.com/robur-coop/miragevpn/blob/17fc4134c1f609d21f3f0346eb30b33f53c1c8ab/src/engine.ml#L1203