blob: 73147886ce9d0311805e996a9aa47a9b8f8826df [file] [log] [blame]
Neels Hofmeyr17518fe2017-06-20 04:35:06 +02001/*! \file gprs_gea.c
2 * GEA 3 & 4 plugin */
Max4f169502016-06-30 10:39:00 +02003/*
Harald Weltee08da972017-11-13 01:00:26 +09004 * Copyright (C) 2016 by sysmocom - s.f.m.c. GmbH
Max4f169502016-06-30 10:39:00 +02005 *
6 * All Rights Reserved
7 *
Harald Weltee08da972017-11-13 01:00:26 +09008 * SPDX-License-Identifier: GPL-2.0+
9 *
Max4f169502016-06-30 10:39:00 +020010 * 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
Harald Weltee08da972017-11-13 01:00:26 +090012 * the Free Software Foundation; either version 2 of the License, or
Max4f169502016-06-30 10:39:00 +020013 * (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
Harald Welte96e2a002017-06-12 21:44:18 +020030/*! \addtogroup crypto
31 * @{
32 */
33
Max4f169502016-06-30 10:39:00 +020034static struct gprs_cipher_impl gea3_impl = {
35 .algo = GPRS_ALGO_GEA3,
36 .name = "GEA3 (libosmogsm built-in)",
37 .priority = 100,
38 .run = &gea3,
39};
40
41static struct gprs_cipher_impl gea4_impl = {
42 .algo = GPRS_ALGO_GEA4,
43 .name = "GEA4 (libosmogsm built-in)",
44 .priority = 100,
45 .run = &gea4,
46};
47
48static __attribute__((constructor)) void on_dso_load_gea(void)
49{
50 gprs_cipher_register(&gea3_impl);
51 gprs_cipher_register(&gea4_impl);
52}
Harald Welte96e2a002017-06-12 21:44:18 +020053
54/*! @} */