1e5b75505Sopenharmony_ci/* 2e5b75505Sopenharmony_ci * AES functions 3e5b75505Sopenharmony_ci * Copyright (c) 2003-2006, Jouni Malinen <j@w1.fi> 4e5b75505Sopenharmony_ci * 5e5b75505Sopenharmony_ci * This software may be distributed under the terms of the BSD license. 6e5b75505Sopenharmony_ci * See README for more details. 7e5b75505Sopenharmony_ci */ 8e5b75505Sopenharmony_ci 9e5b75505Sopenharmony_ci#ifndef AES_H 10e5b75505Sopenharmony_ci#define AES_H 11e5b75505Sopenharmony_ci 12e5b75505Sopenharmony_ci#define AES_BLOCK_SIZE 16 13e5b75505Sopenharmony_ci 14e5b75505Sopenharmony_civoid * aes_encrypt_init(const u8 *key, size_t len); 15e5b75505Sopenharmony_ciint aes_encrypt(void *ctx, const u8 *plain, u8 *crypt); 16e5b75505Sopenharmony_civoid aes_encrypt_deinit(void *ctx); 17e5b75505Sopenharmony_civoid * aes_decrypt_init(const u8 *key, size_t len); 18e5b75505Sopenharmony_ciint aes_decrypt(void *ctx, const u8 *crypt, u8 *plain); 19e5b75505Sopenharmony_civoid aes_decrypt_deinit(void *ctx); 20e5b75505Sopenharmony_ci 21e5b75505Sopenharmony_ci#endif /* AES_H */ 22