libosmogsm
UNKNOWN
Osmocom GSM library
Toggle main menu visibility
Loading...
Searching...
No Matches
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
* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
14
*
15
* See README and COPYING for more details.
16
*/
17
18
#pragma once
19
20
#define AES_BLOCK_SIZE 16
21
22
void
*
aes_encrypt_init
(
const
u8
*key,
size_t
len
);
23
void
aes_encrypt
(
void
*ctx,
const
u8
*plain,
u8
*crypt);
24
void
aes_encrypt_deinit
(
void
*ctx);
25
void
*
aes_decrypt_init
(
const
u8
*key,
size_t
len
);
26
void
aes_decrypt
(
void
*ctx,
const
u8
*crypt,
u8
*plain);
27
void
aes_decrypt_deinit
(
void
*ctx);
aes_encrypt_init
void * aes_encrypt_init(const u8 *key, size_t len)
aes_encrypt_init - Initialize AES for encryption @key: Encryption key @len: Key length in bytes (usua...
Definition
aes-internal-enc.c:101
aes_encrypt_deinit
void aes_encrypt_deinit(void *ctx)
aes_encrypt_deinit - Deinitialize AES encryption @ctx: Context pointer from aes_encrypt_init()
Definition
aes-internal-enc.c:120
aes_encrypt
void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt)
aes_encrypt - Encrypt one AES block @ctx: Context pointer from aes_encrypt_init() @plain: Plaintext d...
Definition
aes-internal-enc.c:114
aes_decrypt_deinit
void aes_decrypt_deinit(void *ctx)
aes_decrypt
void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain)
aes_decrypt_init
void * aes_decrypt_init(const u8 *key, size_t len)
len
uint8_t len
Definition
gsm_04_11.h:0
u8
uint8_t u8
Definition
common.h:27
src
gsm
milenage
aes.h
Generated by
1.17.0