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#include <openssl/aes.h> 9""" 10 11TYPES = """ 12static const int Cryptography_HAS_AES_WRAP; 13 14struct aes_key_st { 15 ...; 16}; 17typedef struct aes_key_st AES_KEY; 18""" 19 20FUNCTIONS = """ 21int AES_set_encrypt_key(const unsigned char *, const int, AES_KEY *); 22int AES_set_decrypt_key(const unsigned char *, const int, AES_KEY *); 23 24int AES_wrap_key(AES_KEY *, const unsigned char *, unsigned char *, 25 const unsigned char *, unsigned int); 26int AES_unwrap_key(AES_KEY *, const unsigned char *, unsigned char *, 27 const unsigned char *, unsigned int); 28""" 29 30CUSTOMIZATIONS = """ 31static const long Cryptography_HAS_AES_WRAP = 1; 32""" 33