mirror of
https://github.com/Akagi201/hmac-sha1.git
synced 2025-05-08 19:40:51 +08:00
add API to README
This commit is contained in:
parent
a7bc71bde1
commit
e338733ca1
13
README.md
13
README.md
@ -4,3 +4,16 @@ hmac-sha1
|
||||
[](https://travis-ci.org/Akagi201/hmac-sha1)
|
||||
|
||||
Standalone implementation of `HMAC()` + `EVP_sha1()` in `OpenSSL`
|
||||
|
||||
## API
|
||||
|
||||
```
|
||||
#include "hmac/hmac.h"
|
||||
|
||||
void hmac_sha1(const uint8_t *k, /* secret key */
|
||||
size_t lk, /* length of the key in bytes */
|
||||
const uint8_t *d, /* data */
|
||||
size_t ld, /* length of data in bytes */
|
||||
uint8_t *out, /* output buffer, at least "t" bytes */
|
||||
size_t *t);
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user