aes.h 403 B

123456789101112131415161718
  1. /*
  2. * Advanced Encryption Standard
  3. * @author Dani Huertas
  4. * @email [email protected]
  5. *
  6. * Based on the document FIPS PUB 197
  7. */
  8. #include <stddef.h>
  9. #include <stdint.h>
  10. #include <stdlib.h>
  11. uint8_t *aes_init(size_t key_size);
  12. void aes_key_expansion(uint8_t *key, uint8_t *w);
  13. void aes_inv_cipher(uint8_t *in, uint8_t *out, uint8_t *w);
  14. void aes_cipher(uint8_t *in, uint8_t *out, uint8_t *w);