osmo-gmr: include/osmocom/gmr1/l1/a5.h Source File

osmo-gmr 0.2.104-2b98 Osmocom GMR-1

a5.h
Go to the documentation of this file.
1/* GMR-1 A5 Ciphering algorithm */
2
3/* (C) 2011-2019 by Sylvain Munaut <tnt@246tNt.com>
4 * All Rights Reserved
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Affero General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Affero General Public License for more details.
15 *
16 * You should have received a copy of the GNU Affero General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef __OSMO_GMR1_L1_A5_H__
21#define __OSMO_GMR1_L1_A5_H__
22
32#include <stdint.h>
33
34#include <osmocom/core/bits.h>
35
36
37void gmr1_a5(int n, uint8_t *key, uint32_t fn, int nbits,
38 ubit_t *dl, ubit_t *ul);
39
40void gmr1_a5_1(uint8_t *key, uint32_t fn, int nbits,
41 ubit_t *dl, ubit_t *ul);
42
43
46#endif /* __OSMO_GMR1_L1_A5_H__ */
bits.h
gmr1_a5_1
void gmr1_a5_1(uint8_t *key, uint32_t fn, int nbits, ubit_t *dl, ubit_t *ul)
Generate a GMR-1 A5/1 cipher stream.
Definition: a5.c:226
gmr1_a5
void gmr1_a5(int n, uint8_t *key, uint32_t fn, int nbits, ubit_t *dl, ubit_t *ul)
Main method to generate a A5/x cipher stream.
Definition: a5.c:57
ubit_t
uint8_t ubit_t