Neels Hofmeyr | 17518fe | 2017-06-20 04:35:06 +0200 | [diff] [blame] | 1 | /*! \file gprs_gea.c |
| 2 | * GEA 3 & 4 plugin */ |
Max | 4f16950 | 2016-06-30 10:39:00 +0200 | [diff] [blame] | 3 | /* |
Harald Welte | e08da97 | 2017-11-13 01:00:26 +0900 | [diff] [blame] | 4 | * Copyright (C) 2016 by sysmocom - s.f.m.c. GmbH |
Max | 4f16950 | 2016-06-30 10:39:00 +0200 | [diff] [blame] | 5 | * |
| 6 | * All Rights Reserved |
| 7 | * |
Harald Welte | e08da97 | 2017-11-13 01:00:26 +0900 | [diff] [blame] | 8 | * SPDX-License-Identifier: GPL-2.0+ |
| 9 | * |
Max | 4f16950 | 2016-06-30 10:39:00 +0200 | [diff] [blame] | 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 |
Harald Welte | e08da97 | 2017-11-13 01:00:26 +0900 | [diff] [blame] | 12 | * the Free Software Foundation; either version 2 of the License, or |
Max | 4f16950 | 2016-06-30 10:39:00 +0200 | [diff] [blame] | 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. |
Max | 4f16950 | 2016-06-30 10:39:00 +0200 | [diff] [blame] | 19 | */ |
| 20 | |
| 21 | #include <osmocom/crypt/gprs_cipher.h> |
| 22 | #include <osmocom/gsm/gea.h> |
| 23 | |
| 24 | #include <stdint.h> |
| 25 | |
Harald Welte | 96e2a00 | 2017-06-12 21:44:18 +0200 | [diff] [blame] | 26 | /*! \addtogroup crypto |
| 27 | * @{ |
| 28 | */ |
| 29 | |
Max | 4f16950 | 2016-06-30 10:39:00 +0200 | [diff] [blame] | 30 | static 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 | |
| 37 | static 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 | |
| 44 | static __attribute__((constructor)) void on_dso_load_gea(void) |
| 45 | { |
| 46 | gprs_cipher_register(&gea3_impl); |
| 47 | gprs_cipher_register(&gea4_impl); |
| 48 | } |
Harald Welte | 96e2a00 | 2017-06-12 21:44:18 +0200 | [diff] [blame] | 49 | |
| 50 | /*! @} */ |