Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement standard Rust crypto traits #126

Open
macpijan opened this issue May 29, 2023 · 1 comment
Open

Implement standard Rust crypto traits #126

macpijan opened this issue May 29, 2023 · 1 comment

Comments

@macpijan
Copy link

macpijan commented May 29, 2023

Currently, Trussed doesn't implement any of the traits which have become standard in Rust ecosystem, such as rand_core::Rng, digest::Digest to name a few. If these were implemented, it would be easier to use the known APIs, and allow for greater portability, as Trussed could be used as one of the possible crypto backends for certain application.

This has also be discussed here.

Note that our knowledge of the current state of Trussed could be a bit of out of date, so please feel free to correct us if we are wrong.

@sosthene-nitrokey
Copy link
Contributor

A could see a benefit to implementing rand_core::Rng, but I don't think that digest::Digest would make much sense since Trussed supports multiple digest algorithms (SHA-1, SHA-256, SHA-512 and Blake2s)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants