cmac.py 711 B

123456789101112131415161718192021222324252627
  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. #if !defined(OPENSSL_NO_CMAC)
  7. #include <openssl/cmac.h>
  8. #endif
  9. """
  10. TYPES = """
  11. typedef ... CMAC_CTX;
  12. """
  13. FUNCTIONS = """
  14. CMAC_CTX *CMAC_CTX_new(void);
  15. int CMAC_Init(CMAC_CTX *, const void *, size_t, const EVP_CIPHER *, ENGINE *);
  16. int CMAC_Update(CMAC_CTX *, const void *, size_t);
  17. int CMAC_Final(CMAC_CTX *, unsigned char *, size_t *);
  18. int CMAC_CTX_copy(CMAC_CTX *, const CMAC_CTX *);
  19. void CMAC_CTX_free(CMAC_CTX *);
  20. """
  21. CUSTOMIZATIONS = """
  22. """