my_aes_impl.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License, version 2.0,
  4. as published by the Free Software Foundation.
  5. This program is also distributed with certain software (including
  6. but not limited to OpenSSL) that is licensed under separate terms,
  7. as designated in a particular file or component or in included license
  8. documentation. The authors of MySQL hereby grant you an additional
  9. permission to link the program and your derivative works with the
  10. separately licensed software that they have included with MySQL.
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. GNU General Public License, version 2.0, for more details.
  15. You should have received a copy of the GNU General Public License
  16. along with this program; if not, write to the Free Software
  17. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
  18. /**
  19. @file mysys/my_aes_impl.h
  20. */
  21. /** Maximum supported key length */
  22. #define MAX_AES_KEY_LENGTH 256
  23. /* TODO: remove in a future version */
  24. /* Guard against using an old export control restriction #define */
  25. #ifdef AES_USE_KEY_BITS
  26. #error AES_USE_KEY_BITS not supported
  27. #endif
  28. extern uint *my_aes_opmode_key_sizes;
  29. void my_aes_create_key(const unsigned char *key, uint key_length, uint8 *rkey,
  30. enum my_aes_opmode opmode);