aes.h 723 B

1234567891011121314151617181920212223242526272829
  1. /**
  2. * @file aes.h
  3. * @brief AES functions
  4. * @copyright (c) 2003-2006, Jouni Malinen <jkmaline@cc.hut.fi>
  5. *
  6. * @note This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. *
  10. * Alternatively, this software may be distributed under the terms of BSD
  11. * license.
  12. *
  13. * See README and COPYING for more details.
  14. */
  15. #ifndef AES_H
  16. #define AES_H
  17. #include <stddef.h>
  18. #include "wm_type_def.h"
  19. int aes_128_cbc_encrypt(const u8 *key, const u8 *iv, u8 *data,
  20. size_t data_len);
  21. int aes_128_cbc_decrypt(const u8 *key, const u8 *iv, u8 *data,
  22. size_t data_len);
  23. #endif /* AES_H */