crt.h
来自「比较新的功能强大的rsa算法源代码,方便使用.」· C头文件 代码 · 共 42 行
H
42 行
/*
* MIRACL C++ Header file crt.h
*
* AUTHOR : M. Scott
*
* PURPOSE : Definition of class Crt (Chinese Remainder Thereom)
* NOTE : Must be used in conjunction with big.cpp
* Can be used with either Big or utype moduli
*
* Copyright (c) 1988-1997 Shamus Software Ltd.
*/
#ifndef CRT_H
#define CRT_H
#include "big.h"
#define MR_CRT_BIG 0
#define MR_CRT_SMALL 1
class Crt
{
big_chinese bc;
small_chinese sc;
int type;
public:
Crt(int,Big *);
Crt(int,mr_utype *);
Big eval(Big *);
Big eval(mr_utype *);
~Crt()
{ /* destructor */
if (type==MR_CRT_BIG) crt_end(&bc);
if (type==MR_CRT_SMALL) scrt_end(&sc);
}
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?