blob: 8ff16484eb9a9425d463baca5d92e794c714f322 [file] [log] [blame]
Max4f169502016-06-30 10:39:00 +02001/*
2 * gprs_gea.c
3 *
4 * GEA 3 & 4 plugin
5 *
6 * Copyright (C) 2016 by Sysmocom s.f.m.c. GmbH
7 *
8 * All Rights Reserved
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 3 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License along
21 * with this program; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 */
24
25#include <osmocom/crypt/gprs_cipher.h>
26#include <osmocom/gsm/gea.h>
27
28#include <stdint.h>
29
30static struct gprs_cipher_impl gea3_impl = {
31 .algo = GPRS_ALGO_GEA3,
32 .name = "GEA3 (libosmogsm built-in)",
33 .priority = 100,
34 .run = &gea3,
35};
36
37static struct gprs_cipher_impl gea4_impl = {
38 .algo = GPRS_ALGO_GEA4,
39 .name = "GEA4 (libosmogsm built-in)",
40 .priority = 100,
41 .run = &gea4,
42};
43
44static __attribute__((constructor)) void on_dso_load_gea(void)
45{
46 gprs_cipher_register(&gea3_impl);
47 gprs_cipher_register(&gea4_impl);
48}