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

Add common hash API wrapper #44

Open
mrx23dot opened this issue Jul 19, 2022 · 2 comments
Open

Add common hash API wrapper #44

mrx23dot opened this issue Jul 19, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@mrx23dot
Copy link

mrx23dot commented Jul 19, 2022

Almost all hash libraries use the following API format. Please provide a wrapper.

void sha512_init(sha512ctx *ctx);
void sha512_update(sha512ctx *ctx, const void *data, size_t len);
void sha512_done(sha512ctx *ctx, uint8_t out[SHA512_HASH_LENGTH]);

So it would be very easy to swap out libraries, eg. one configuration doesn't need HW acceleration, just SW implementation.

@ElenaTyuleneva ElenaTyuleneva added the enhancement New feature or request label Jul 4, 2023
@ElenaTyuleneva
Copy link
Contributor

Hi @mrx23dot ,
Thanks for the proposal! We'll consider it in the future.

Could you please provide a reference to the hash libraries that you are mentioning?

@mrx23dot
Copy link
Author

mrx23dot commented Jul 4, 2023

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

No branches or pull requests

2 participants