hmac.h 496 B

12345678910111213141516171819
  1. /**
  2. * @file re_hmac.h Interface to HMAC functions
  3. *
  4. * Copyright (C) 2010 Creytiv.com
  5. */
  6. #ifndef HMAC_H_
  7. #define HMAC_H_ (1)
  8. #include <stdint.h>
  9. void hmac_sha1(const uint8_t *k, /* secret key */
  10. size_t lk, /* length of the key in bytes */
  11. const uint8_t *d, /* data */
  12. size_t ld, /* length of data in bytes */
  13. uint8_t *out, /* output buffer, at least "t" bytes */
  14. size_t *t);
  15. #endif /* HMAC_H_ */