intel / intel/cryptography-primitives
Add common hash API wrapper
Open
enhancement
- Dominant language
- C
- Stars
- 387
- Forks
- 108
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
Assessment
This issue has not been assessed yet.