You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
627 B
C++

//
// Created by UnknownObject on 2022/10/22.
// Copyright (c) 2022 UnknownNetworkService. All rights reserved.
//
#ifndef MAINCAR_MAIN_CAR_AES_H
#define MAINCAR_MAIN_CAR_AES_H
//数据处理算法
#define MAIN_CAR_AES_VERSION "2.0.0"
#include <jni.h>
#include <bitset>
#include <vector>
#include <string>
namespace uns
{
using Box = std::vector<int>;
class MC_AES
{
private:
Box S, K;
int i = 0, j = 0;
private:
void KSA();
int PRGA();
void Swap(int &a, int &b);
void InitBox(std::string data);
public:
Box Run(std::string info, std::string data);
};
};
#endif //MAINCAR_MAIN_CAR_AES_H