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 5from __future__ import absolute_import, division, print_function 6 7INCLUDES = """ 8#if !defined(OPENSSL_NO_CMAC) 9#include <openssl/cmac.h> 10#endif 11""" 12 13TYPES = """ 14static const int Cryptography_HAS_CMAC; 15typedef ... CMAC_CTX; 16""" 17 18FUNCTIONS = """ 19CMAC_CTX *CMAC_CTX_new(void); 20int CMAC_Init(CMAC_CTX *, const void *, size_t, const EVP_CIPHER *, ENGINE *); 21int CMAC_Update(CMAC_CTX *, const void *, size_t); 22int CMAC_Final(CMAC_CTX *, unsigned char *, size_t *); 23int CMAC_CTX_copy(CMAC_CTX *, const CMAC_CTX *); 24void CMAC_CTX_free(CMAC_CTX *); 25""" 26 27CUSTOMIZATIONS = """ 28static const long Cryptography_HAS_CMAC = 1; 29""" 30