Add a constant-time equality comparison.
Add a constant-time equality comparison.

Refactor the existing user of this functionality.

Signed-off-by: brian m. carlson <738bdd359be778fee9f0fc4e2934ad72f436ceda@crustytoothpaste.net>

bk2204/daniel-ruby,bk2204/daniel-ruby