blob: eae1cf12c4b84aa749ffa1dd6ee9ad5bebfe073c [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.
Max4f169502016-06-30 10:39:00 +020019 */
20
21#include <osmocom/crypt/gprs_cipher.h>
22#include <osmocom/gsm/gea.h>
23
24#include <stdint.h>
25
Harald Welte96e2a002017-06-12 21:44:18 +020026/*! \addtogroup crypto
27 * @{
28 */
29
Max4f169502016-06-30 10:39:00 +020030static 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}
Harald Welte96e2a002017-06-12 21:44:18 +020049
50/*! @} */