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