GNU Radio's GSM Package
decryption_impl.h
Go to the documentation of this file.
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 
25 #include <vector>
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  bool d_k_c_valid;
35  uint8_t d_a5_version;
36  void decrypt(pmt::pmt_t msg);
37  void validate_k_c();
38  public:
39  decryption_impl(const std::vector<uint8_t> & k_c, unsigned int a5_version);
41  virtual void set_k_c(const std::vector<uint8_t> & k_c);
42  virtual void set_a5_version(unsigned int a5_version);
43  };
44  } // namespace gsm
45 } // namespace gr
46 
47 #endif /* INCLUDED_GSM_DECRYPTION_IMPL_H */
48 
virtual void set_k_c(const std::vector< uint8_t > &k_c)
virtual void set_a5_version(unsigned int a5_version)
&lt;+description of block+&gt;
Definition: decryption.h:40
decryption_impl(const std::vector< uint8_t > &k_c, unsigned int a5_version)
Definition: decryption_impl.h:30