Max | 4f16950 | 2016-06-30 10:39:00 +0200 | [diff] [blame] | 1 | /* |
| 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 | |
Harald Welte | 96e2a00 | 2017-06-12 21:44:18 +0200 | [diff] [blame] | 30 | /*! \addtogroup crypto |
| 31 | * @{ |
| 32 | */ |
| 33 | |
Max | 4f16950 | 2016-06-30 10:39:00 +0200 | [diff] [blame] | 34 | static 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 | |
| 41 | static 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 | |
| 48 | static __attribute__((constructor)) void on_dso_load_gea(void) |
| 49 | { |
| 50 | gprs_cipher_register(&gea3_impl); |
| 51 | gprs_cipher_register(&gea4_impl); |
| 52 | } |
Harald Welte | 96e2a00 | 2017-06-12 21:44:18 +0200 | [diff] [blame] | 53 | |
| 54 | /*! @} */ |