HashAlgorithm::oid is available only on Nettle backend
There is a small issue with HashAlgorithm::oid
: it's available only on the nettle backend so compiling against sequoia-openpgp
can fail depending on the backend used.
Coincidentally in the OpenSSL backend I'm working on (#333 (closed)) I'll also need these values.
So I propose copying the OIDs from nettle (they're just a couple of constants) to Sequoia and exposing them on all backends.
One more thing we could do is to make the oid
function pub(crate)
on v2 (since this is mostly implementation detail). But I'm open to other solutions.
CC @teythoon since he is the closest to the nettle.