aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/gsm/gea.h
blob: fff9baa1d19253059bf48866ea4c4cebe7dd1787 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*! \defgroup gea GPRS GEA3/GEA4 ciphering algorithm
 *  @{
 *  \file gea.h
 *
 * GEA3/GEA4 header.
 *
 * See gea.c for details
 */

#pragma once

#include <osmocom/crypt/gprs_cipher.h>

#include <stdint.h>

int gea3(uint8_t *out, uint16_t len, uint8_t *kc, uint32_t iv,
	 enum gprs_cipher_direction direct);

int gea4(uint8_t *out, uint16_t len, uint8_t *kc, uint32_t iv,
	 enum gprs_cipher_direction direct);

/*! @} */