libosmogsm  0.10.2
Osmocom GSM library
aes.h
Go to the documentation of this file.
1 
3 /*
4  * Copyright (c) 2003-2006, Jouni Malinen <j@w1.fi>
5  *
6  * 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 
16 #pragma once
17 
18 #define AES_BLOCK_SIZE 16
19 
20 void * aes_encrypt_init(const u8 *key, size_t len);
21 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
22 void aes_encrypt_deinit(void *ctx);
23 void * aes_decrypt_init(const u8 *key, size_t len);
24 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
25 void aes_decrypt_deinit(void *ctx);
void aes_encrypt_deinit(void *ctx)
Definition: aes-internal-enc.c:118
void * aes_encrypt_init(const u8 *key, size_t len)
Definition: aes-internal-enc.c:99
void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain)
uint8_t u8
Definition: common.h:18
void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt)
Definition: aes-internal-enc.c:112
uint8_t len
Definition: gsm_04_11.h:434
void * aes_decrypt_init(const u8 *key, size_t len)
void aes_decrypt_deinit(void *ctx)