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

3 years ago
//
// 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
//数据处理算法
2 years ago
#define MAIN_CAR_AES_VERSION "2.0.0"
3 years ago
#include <jni.h>
#include <bitset>
#include <vector>
#include <string>
namespace uns
{
2 years ago
using Box = std::vector<int>;
3 years ago
class MC_AES
{
private:
2 years ago
Box S, K;
int i = 0, j = 0;
3 years ago
private:
2 years ago
void KSA();
int PRGA();
void Swap(int &a, int &b);
void InitBox(std::string data);
3 years ago
public:
2 years ago
Box Run(std::string info, std::string data);
3 years ago
};
};
#endif //MAINCAR_MAIN_CAR_AES_H