ql_hmac_sha1.h 990 B

123456789101112131415161718192021222324252627282930
  1. /*================================================================
  2. Copyright (c) 2021, Quectel Wireless Solutions Co., Ltd. All rights reserved.
  3. Quectel Wireless Solutions Proprietary and Confidential.
  4. =================================================================*/
  5. #ifndef _QUEC_SHA1_H
  6. #define _QUEC_SHA1_H
  7. /*****************************************************************
  8. * Function: ql_hmac_sha1
  9. *
  10. * Description:
  11. * HMACSHA1 encryption algorithm
  12. * The hash function mixes the key with the message data and uses the hash function to hash the mixed result.
  13. *
  14. * Parameters:
  15. * key [in] secret key
  16. * key_length [in] secret key length
  17. * data [in] message data
  18. * data_length [in] message data length
  19. * digest [out] hash result
  20. * Return:
  21. * void
  22. *
  23. *****************************************************************/
  24. void ql_hmac_sha1(unsigned char *key, int key_length, unsigned char *data, int data_length, unsigned char *digest);
  25. #endif