libosmogsm
0.9.3
Osmocom GSM library
|
00001 /* 00002 * AES functions 00003 * Copyright (c) 2003-2006, Jouni Malinen <j@w1.fi> 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License version 2 as 00007 * published by the Free Software Foundation. 00008 * 00009 * Alternatively, this software may be distributed under the terms of BSD 00010 * license. 00011 * 00012 * See README and COPYING for more details. 00013 */ 00014 00015 #pragma once 00016 00017 #define AES_BLOCK_SIZE 16 00018 00019 void * aes_encrypt_init(const u8 *key, size_t len); 00020 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt); 00021 void aes_encrypt_deinit(void *ctx); 00022 void * aes_decrypt_init(const u8 *key, size_t len); 00023 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain); 00024 void aes_decrypt_deinit(void *ctx);