aes.py 626 B

1234567891011121314151617181920212223
  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/aes.h>
  7. """
  8. TYPES = """
  9. typedef ... AES_KEY;
  10. """
  11. FUNCTIONS = """
  12. int AES_wrap_key(AES_KEY *, const unsigned char *, unsigned char *,
  13. const unsigned char *, unsigned int);
  14. int AES_unwrap_key(AES_KEY *, const unsigned char *, unsigned char *,
  15. const unsigned char *, unsigned int);
  16. """
  17. CUSTOMIZATIONS = """
  18. """