HMAC_hash.hh 636 B

12345678910111213141516171819202122
  1. // Copyright (c) 1996-2020, Live Networks, Inc. All rights reserved
  2. // This code may not be copied or used in any form without permission from Live Networks, Inc.
  3. //
  4. // Generic HMA_HASH functions
  5. // Definition
  6. #ifndef _HMAC_HASH_HH
  7. #define _HMAC_HASH_HH
  8. #ifndef _NET_COMMON_H
  9. #include "NetCommon.h"
  10. #endif
  11. // All HMAC hash functions have the following signature:
  12. typedef void HMAC_hash(u_int8_t const* key, unsigned keyLength,
  13. u_int8_t const* text, unsigned textLength,
  14. u_int8_t* resultDigest);
  15. // "resultDigest" must point to an array of sufficient size to hold the digest
  16. #define HMAC_BLOCK_SIZE 64
  17. #endif