ptrkrysik | 18b631e | 2014-12-15 09:09:18 +0100 | [diff] [blame] | 1 | /* -*- c++ -*- */ |
| 2 | /* |
| 3 | * Copyright 2014 <+YOU OR YOUR COMPANY+>. |
| 4 | * |
| 5 | * This is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 3, or (at your option) |
| 8 | * any later version. |
| 9 | * |
| 10 | * This software is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this software; see the file COPYING. If not, write to |
| 17 | * the Free Software Foundation, Inc., 51 Franklin Street, |
| 18 | * Boston, MA 02110-1301, USA. |
| 19 | */ |
| 20 | |
| 21 | #ifndef INCLUDED_GSM_DECRYPTION_IMPL_H |
| 22 | #define INCLUDED_GSM_DECRYPTION_IMPL_H |
| 23 | |
| 24 | #include <grgsm/decryption/decryption.h> |
ptrkrysik | 42411c6 | 2015-07-08 10:50:41 +0200 | [diff] [blame] | 25 | #include <vector> |
ptrkrysik | 18b631e | 2014-12-15 09:09:18 +0100 | [diff] [blame] | 26 | |
| 27 | namespace gr { |
| 28 | namespace gsm { |
| 29 | |
| 30 | class decryption_impl : public decryption |
| 31 | { |
| 32 | private: |
| 33 | std::vector<uint8_t> d_k_c; |
| 34 | void decrypt(pmt::pmt_t msg); |
| 35 | public: |
| 36 | decryption_impl(const std::vector<uint8_t> & k_c); |
| 37 | ~decryption_impl(); |
| 38 | virtual void set_k_c(const std::vector<uint8_t> & k_c); |
| 39 | }; |
| 40 | } // namespace gsm |
| 41 | } // namespace gr |
| 42 | |
| 43 | #endif /* INCLUDED_GSM_DECRYPTION_IMPL_H */ |
| 44 | |