2023-06-16 22:38:10 +03:00
|
|
|
/**
|
2023-06-17 00:58:22 +03:00
|
|
|
* This file is a part of the UMSKT Project
|
2023-06-16 22:38:10 +03:00
|
|
|
*
|
2024-01-05 02:32:18 +02:00
|
|
|
* Copyleft (C) 2019-2024 UMSKT Contributors (et.al.)
|
2023-06-16 22:38:10 +03:00
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
2024-01-05 02:32:18 +02:00
|
|
|
* @FileCreated by Neo on 06/06/2023
|
2023-06-16 22:38:10 +03:00
|
|
|
* @Maintainer Neo
|
|
|
|
*/
|
2023-06-07 22:23:59 +03:00
|
|
|
|
2023-06-17 00:58:22 +03:00
|
|
|
#ifndef UMSKT_BINK2002_H
|
|
|
|
#define UMSKT_BINK2002_H
|
2023-06-07 22:23:59 +03:00
|
|
|
|
2023-07-09 06:08:43 +03:00
|
|
|
#include "PIDGEN3.h"
|
2023-06-07 22:23:59 +03:00
|
|
|
|
2024-01-05 02:32:18 +02:00
|
|
|
class BINK2002 : public PIDGEN3
|
2023-12-10 14:06:42 +02:00
|
|
|
{
|
2024-01-05 02:32:18 +02:00
|
|
|
public:
|
2024-01-05 08:21:35 +02:00
|
|
|
BOOL Unpack(KeyInfo &info, QWORD *pRaw) override;
|
|
|
|
BOOL Pack(const KeyInfo &info, QWORD *pRaw) override;
|
2024-01-05 02:32:18 +02:00
|
|
|
BOOL Verify(std::string &pKey) override;
|
2024-01-05 08:21:35 +02:00
|
|
|
BOOL Generate(KeyInfo &info, std::string &pKey) override;
|
2023-06-07 22:23:59 +03:00
|
|
|
};
|
|
|
|
|
2023-12-10 14:06:42 +02:00
|
|
|
#endif // UMSKT_BINK2002_H
|