RustCrypto / utils

Utility crates used in RustCrypto
440 stars 129 forks source link

algorithm-registry: initial commit #985

Closed baloo closed 11 months ago

baloo commented 11 months ago

This provides an helper for looking up an algorithm according to its OID.

I've found the same piece of code repeated in various ways all over in consumers of rust-crypto. This is an attempt at providing an implementation for rust-crypto users.

baloo commented 11 months ago

cc @raitobezarius

tarcieri commented 11 months ago

This feels like the sort of thing that would belong in an omnibus crypto library, if we ever made one.

As is this is going to have all of the headaches of the dependency management for one and massive circular dependencies if you place it in this repo.

baloo commented 11 months ago

I like the omnibus idea (and I like the name!). I think this would make a world of difference in the usability. I have no idea how to lay it (beside throwing a thousand helpers).

I'm not sure I see the point of the dependency management. I don't expect it to be too much of an issue, beside maybe duplicates in the Cargo.lock with local and remote/published (pulled from crates.io) versions.

In any case, let's close this for now.