33 lines
528 B
C
33 lines
528 B
C
|
//
|
||
|
// Created by 29019 on 2020/1/5.
|
||
|
//
|
||
|
|
||
|
#ifndef GENERAL_RSA_H
|
||
|
#define GENERAL_RSA_H
|
||
|
|
||
|
#include <memory.h>
|
||
|
#include <stdint.h>
|
||
|
#include <string>
|
||
|
using namespace std;
|
||
|
class BigInt{
|
||
|
public:
|
||
|
BigInt(int size);
|
||
|
BigInt(int size,uint8_t *dat);
|
||
|
BigInt operator=(const BigInt&);
|
||
|
BigInt operator>(const BigInt&);
|
||
|
BigInt operator<(const BigInt&);
|
||
|
BigInt operator^(const BigInt&);
|
||
|
string ToString();
|
||
|
uint8_t *Data();
|
||
|
private:
|
||
|
uint8_t mDat[2048];
|
||
|
int mSize;
|
||
|
};
|
||
|
|
||
|
class rsa {
|
||
|
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif //GENERAL_RSA_H
|