QXPDeobfuscator.h Source File documentation

QXPDeobfuscator.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * This file is part of the libqxp project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10 #ifndef QXPDEOBFUSCATOR_H_INCLUDED
11 #define QXPDEOBFUSCATOR_H_INCLUDED
12
13 #include "libqxp_utils.h"
14
15 namespace libqxp
16 {
17
18 class QXPDeobfuscator
19 {
20 public:
21 uint16_t operator()(uint16_t value) const;
22 uint8_t operator()(uint8_t value) const;
23
24 protected:
25 uint16_t m_seed;
26
27 explicit QXPDeobfuscator(uint16_t seed);
28 };
29
30 }
31
32 #endif // QXPDEOBFUSCATOR_H_INCLUDED
33
34 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libqxp
Definition: libqxp_utils.cpp:24
libqxp::QXPDeobfuscator::operator()
uint16_t operator()(uint16_t value) const
Definition: QXPDeobfuscator.cpp:20
libqxp::QXPDeobfuscator
Definition: QXPDeobfuscator.h:18
libqxp::QXPDeobfuscator::QXPDeobfuscator
QXPDeobfuscator(uint16_t seed)
Definition: QXPDeobfuscator.cpp:15
libqxp::QXPDeobfuscator::m_seed
uint16_t m_seed
Definition: QXPDeobfuscator.h:25
libqxp_utils.h