hmac.py 683 B

1234567891011121314151617181920212223242526
  1. # This file is dual licensed under the terms of the Apache License, Version
  2. # 2.0, and the BSD License. See the LICENSE file in the root of this repository
  3. # for complete details.
  4. from __future__ import absolute_import, division, print_function
  5. INCLUDES = """
  6. #include <openssl/hmac.h>
  7. """
  8. TYPES = """
  9. typedef ... HMAC_CTX;
  10. """
  11. FUNCTIONS = """
  12. int HMAC_Init_ex(HMAC_CTX *, const void *, int, const EVP_MD *, ENGINE *);
  13. int HMAC_Update(HMAC_CTX *, const unsigned char *, size_t);
  14. int HMAC_Final(HMAC_CTX *, unsigned char *, unsigned int *);
  15. int HMAC_CTX_copy(HMAC_CTX *, HMAC_CTX *);
  16. HMAC_CTX *HMAC_CTX_new(void);
  17. void HMAC_CTX_free(HMAC_CTX *ctx);
  18. """
  19. CUSTOMIZATIONS = """
  20. """