Reimplement EVP_get_{cipher,digest}byname()
authortb <tb@openbsd.org>
Sat, 13 Jan 2024 11:12:32 +0000 (11:12 +0000)
committertb <tb@openbsd.org>
Sat, 13 Jan 2024 11:12:32 +0000 (11:12 +0000)
commit61d548172637ec71422a7613ccb642eaa1bd8230
tree6bb9c0b932b1f4404cd01fc6d1cfb62a97c9fdc2
parent4f2938160a2631bf0980365ef58e1ca282f63c34
Reimplement EVP_get_{cipher,digest}byname()

Instead of a hashtable lookup do a bsearch() over the static table.
This needs about the same number of strcmp and is a lot simpler.

ok jsing
lib/libcrypto/evp/evp_names.c
lib/libcrypto/evp/names.c