intel / intel/cryptography-primitives

Add common hash API wrapper

Open
#44 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.