x509: add the api needed to obtain entries by nid

Also includes a large list of nids (from openssl/object.h). Might be
transcoding errors on my part there.
This impl isn't necessary. You can simply cast an `Nid` to a `uint`: `HmacWithSha1 as uint`.