Remove redundant code snippet

This commit is contained in:
h5p9sl 2022-04-12 18:57:42 -06:00
parent b4740dcf8e
commit e47cc1112b
1 changed files with 0 additions and 14 deletions

View File

@ -27,20 +27,6 @@ I aim to tailor this code not only for myself, but for other's use cases too.
## Usage Example (C++)
https://github.com/h5p9sl/hmac_sha256/blob/79a57d2a85aaab32449e5179a4f08f37e38cdee5/examples/simple_example.cpp#L13-L26
```cpp
const std::string str_data = "Hello World!";
const std::string str_key = "super-secret-key";
// Allocate memory for the HMAC
std::vector<uint8_t> out(SHA256_HASH_SIZE);
// Call hmac-sha256 function
hmac_sha256(
str_key.data(), str_key.size(),
str_data.data(), str_data.size(),
out.data(), out.size()
);
```
## Sha256 Implementation
Big thank you to [WjCryptLib](https://github.com/WaterJuice/WjCryptLib) for providing the Sha256 implementation of which this project is based off.
If you need more public domain cryptographic functions in C (sha, aes, md5), check them out.