亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? flintpp.h

?? rsa加密算法的c++實現,此程序實現利用公鑰解密
?? H
?? 第 1 頁 / 共 2 頁
字號:
//*****************************************************************************/
//                                                                            */
//  Functions for arithmetic and number theory with large integers in C       */
//  Software supplement to the book "Cryptography in C and C++"               */
//  by Michael Welschenbach, published by Apress Berkeley CA, 2001            */
//                                                                            */
//  Module flintpp.h        Revision: 27.01.2002                              */
//                                                                            */
//  Copyright (C) 1998-2003 by Michael Welschenbach                           */
//  Copyright (C) 1998-2003 by Springer-Verlag Berlin, Heidelberg             */
//  Copyright (C) 2001-2003 by Apress L.P., Berkeley, CA                      */
//  Copyright (C) 2002-2003 by Wydawnictwa MIKOM, Poland                      */
//  Copyright (C) 2002-2003 by PHEI, P.R.China                                */
//  Copyright (C) 2002-2003 by InfoBook, Korea                                */
//  Copyright (C) 2002-2003 by Triumph Publishing, Russia                     */
//                                                                            */
//  All Rights Reserved                                                       */
//                                                                            */
//  The software may be used for noncommercial purposes and may be altered,   */
//  as long as the following conditions are accepted without any              */
//  qualification:                                                            */
//                                                                            */
//  (1) All changes to the sources must be identified in such a way that the  */
//      changed software cannot be misinterpreted as the original software.   */
//                                                                            */
//  (2) The statements of copyright may not removed or altered.               */
//                                                                            */
//  (3) The following DISCLAIMER is accepted:                                 */
//                                                                            */
//  DISCLAIMER:                                                               */
//                                                                            */
//  There is no warranty for the software contained on this CD-ROM, to the    */
//  extent permitted by applicable law. The copyright holders provide the     */
//  software `as is' without warranty of any kind, either expressed or        */
//  implied, including, but not limited to, the implied warranty of fitness   */
//  for a particular purpose. The entire risk as to the quality and           */
//  performance of the program is with you.                                   */
//                                                                            */
//  In no event unless required by applicable law or agreed to in writing     */
//  will the copyright holders, or any of the individual authors named in     */
//  the source files, be liable to you for damages, including any general,    */
//  special, incidental or consequential damages arising out of any use of    */
//  the software or out of inability to use the software (including but not   */
//  limited to any financial losses, loss of data or data being rendered      */
//  inaccurate or losses sustained by you or by third parties as a result of  */
//  a failure of the software to operate with any other programs), even if    */
//  such holder or other party has been advised of the possibility of such    */
//  damages.                                                                  */
//                                                                            */
//*****************************************************************************/
//
//  History
//
//  27.01.2002
//    Added member and friend functions lint2clint for export to type CLINT 
//
////////////////////////////////////////////////////////////////////////////////

#ifndef __FLINTPPH__
#define __FLINTPPH__            // flintpp.h is #included

//lint -wlib(1)

#if defined FLINTPP_ANSI
#include <limits>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <new>
#include <algorithm>
#if !defined __WATCOMC__
using namespace std;
#endif // #!defined __WATCOMC__
#else
#include <limits.h>
#include <iostream.h>
#include <fstream.h>
#include <iomanip.h>
#include <new.h>
#endif // #defined FLINTPP_ANSI

#ifndef __CPLUSPLUS__
#define __CPLUSPLUS__
#endif

#ifndef __cplusplus
#define __cplusplus
#endif

#define FLINTCPPHVMAJ   2 // Major version number of flintpp.cpp
#define FLINTCPPHVMIN   3 // Minor version number of flintpp.cpp
#define FLINTCOMPATMAJ  2 // Major version of flint.c required for flintpp.cpp
#define FLINTCOMPATMIN  1 // Minor version of flint.c required for flintpp.cpp

//lint -wlib(4)


// Include FLINT/C C-Library

#include "flint.h"


// Version control

#if ((FLINTCOMPATMIN > FLINT_VERMIN) || (FLINTCOMPATMAJ > FLINT_VERMAJ))
#error Versionsfehler: FLINTPP.H  not compatibel to FLINT.H
#endif


// LINT-Errors

enum LINT_ERRORS {
        E_LINT_OK     = 0,      // Everything O.K.
        E_LINT_EOF    = 0x0010, // File-IO-Error
        E_LINT_DBZ    = 0x0020, // Division by zero
        E_LINT_NHP    = 0x0040, // Heap-Error: new returned NULL-pointer
        E_LINT_OFL    = 0x0080, // Overflow in function/operator
        E_LINT_UFL    = 0x0100, // Underflow in function/operator
        E_LINT_VAL    = 0x0200, // Argument of function/operator not initialized
        E_LINT_INV    = 0x0200, // Argument of function/operator not initialized
        E_LINT_BOR    = 0x0400, // Base invalid
        E_LINT_MOD    = 0x0800, // Modulus even in mexp?m
        E_LINT_NPT    = 0x1000, // Argument is Null-pointer
        E_LINT_ERR    = 0x2000  // root or chinrem has no solution,
                                // else: unspecific error
};


// LINT-Exceptions

class LINT_Error                        // Abstract base class
{
 public:
  const char* function;
  int argno, lineno;
  virtual void debug_print (void) const = 0;  // Pure virtual function
  virtual ~LINT_Error() {function = 0;};
};

class LINT_DivByZero : public LINT_Error      // Division by Zero
{
 public:
  LINT_DivByZero (const char* const func, const int line);
  void debug_print (void) const;
};

class LINT_File : public LINT_Error     // File-IO error
{
 public:
  LINT_File (const char* const func, const int line);
  void debug_print (void) const;
};

class LINT_Init : public LINT_Error     // Argument not initialized
{
 public:
  LINT_Init (const char* const func, const int arg, const int line);
  void debug_print (void) const;
};

class LINT_Heap : public LINT_Error     // Heap-error in new
{
 public:
  LINT_Heap (const char* const func, const int line);
  void debug_print (void) const;
};

class LINT_OFL : public LINT_Error      // Overflow in function
{
 public:
  LINT_OFL (const char* const func, const int line);
  void debug_print (void) const;
};

class LINT_UFL : public LINT_Error      // Underflow in function
{
 public:
  LINT_UFL (const char* const func, const int line);
  void debug_print (void) const;
};

class LINT_Base : public LINT_Error     // Base invalid
{
 public:
  LINT_Base (const char* const func, const int line);
  void debug_print (void) const;
};

class LINT_Emod : public LINT_Error     // Modulus even in mexp?m
{
 public:
  LINT_Emod (const char* const func, const int line);
  void debug_print (void) const;
};

class LINT_Nullptr : public LINT_Error  // Argument is NULL-pointer
{
 public:
  LINT_Nullptr (const char* const func, const int arg, const int line);
  void debug_print (void) const;
};

class LINT_Mystic : public LINT_Error   // Unknown error ;-)
{
 public:
  LINT_Mystic (const char* const func, const int errcode, const int line);
  void debug_print (void) const;
};


class LintInit
{
 public:
  LintInit (void);
};

// The constructor LintInit() sets the ios-internal value
// ios::iword (flagsindex) (after initialization of LINT::flagsindex) to the
// default values of the LINT-package. Thus the default mode for stream
// output of LINT-objects is defined. A calling program can change the output
// mode by calling LINT manipulators (cf. manipulators like
// LINT::SetLintFlags (LINT::flags)).


// Macros for Internationalization of class LINT

#define ggT            gcd
#define xggT           xgcd
#define kgV            lcm
#define chinrest       chinrem
#define zweianteil     twofact


// Declaration of class LINT

class LINT
{
 public:

  // LINT-FRIENDS

  friend LintInit::LintInit (void);

  // Overloaded operators, implemented as friend functions

  friend const LINT operator+ (const LINT&, const LINT&);
  friend const LINT operator- (const LINT&, const LINT&);
  friend const LINT operator* (const LINT&, const LINT&);
  friend const LINT operator/ (const LINT&, const LINT&);
  friend const LINT operator% (const LINT&, const LINT&);
  friend const LINT operator<< (const LINT&, const int);
  friend const LINT operator>> (const LINT&, const int);

  // Logical functions

  friend const int operator== (const LINT&, const LINT&);
  friend const int operator!= (const LINT&, const LINT&);
  friend const int operator> (const LINT&, const LINT&);
  friend const int operator< (const LINT&, const LINT&);
  friend const int operator<= (const LINT&, const LINT&);
  friend const int operator>= (const LINT&, const LINT&);

  // Boolean functions

  friend const LINT operator^ (const LINT&, const LINT&);
  friend const LINT operator| (const LINT&, const LINT&);
  friend const LINT operator& (const LINT&, const LINT&);

  // Arithmetic

  friend const LINT add (const LINT&, const LINT&);
  friend const LINT sub (const LINT&, const LINT&);
  friend const LINT mul (const LINT&, const LINT&);
  friend const LINT sqr (const LINT&);
  friend const LINT divr (const LINT&, const LINT&, LINT&);
  friend const LINT mod (const LINT&, const LINT&);
  //friend const LINT mod2 (const LINT&, const USHORT);

  // Swapping

  friend void fswap (LINT&, LINT&);

  // Purging of LINT, overwriting with 0

  friend void purge (LINT&);

  // Modular arithmetic

  friend const LINT madd (const LINT&, const LINT&, const LINT&);
  friend const LINT msub (const LINT&, const LINT&, const LINT&);
  friend const LINT mmul (const LINT&, const LINT&, const LINT&);
  friend const LINT msqr (const LINT&, const LINT&);
  friend const LINT mexp (const LINT&, const LINT&, const LINT&);
  friend const LINT mexp (const USHORT, const LINT&, const LINT&);
  friend const LINT mexp (const LINT&, const USHORT, const LINT&);
  friend const LINT mexpkm (const LINT&, const LINT&, const LINT&);
  friend const LINT shift (const LINT&, const int);

  // Number theoretic friend functions

  friend const int isprime (const LINT&, const int noofsmallprimes = 302, const int iterations = 0);
  friend const unsigned int ld (const LINT&);
  friend const LINT gcd (const LINT&, const LINT&);
  friend const LINT xgcd (const LINT&, const LINT&, LINT&, int&, LINT&, int&);
  friend const LINT inv (const LINT&, const LINT&);
   friend const int twofact (const LINT&, LINT&);
  friend const LINT findprime (const USHORT);
  friend const LINT findprime (const USHORT, const LINT&);
  friend const LINT findprime (const LINT&, const LINT&, const LINT&);
  friend const int iseven (const LINT&);
  friend const int isodd (const LINT&);
  friend const int mequ (const LINT&, const LINT&, const LINT&);

  // Pseudorandom number generators

  friend LINT randl (const int);
  friend LINT randl (const LINT&, const LINT&);
  friend void seedl (const LINT&);
  friend LINT randBBS (const int);
  friend LINT randBBS (const LINT&, const LINT&);
  friend int seedBBS (const LINT&);

  // Conversion

  friend char* lint2str (const LINT&, const USHORT, const int = 0);
  friend UCHAR* lint2byte (const LINT&, int*);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美videos大乳护士334| www.欧美日韩国产在线| 亚洲日本va午夜在线影院| 亚洲精品一区二区三区香蕉| 欧美揉bbbbb揉bbbbb| 日本韩国一区二区| 91久久香蕉国产日韩欧美9色| av午夜一区麻豆| 91最新地址在线播放| 99久久精品国产一区| 色偷偷久久一区二区三区| 日本高清不卡一区| 欧美视频一区二区三区| 在线播放国产精品二区一二区四区| 欧美日韩一区二区三区四区五区| 欧美视频精品在线| 日韩片之四级片| 久久久五月婷婷| 日韩美女视频一区二区| 亚洲国产精品一区二区www在线| 日韩中文欧美在线| 国产精品亚洲午夜一区二区三区 | 一本色道**综合亚洲精品蜜桃冫| av日韩在线网站| 欧美日韩精品一区二区三区蜜桃| 91精品国产综合久久蜜臀| 久久蜜桃av一区精品变态类天堂 | 色综合久久久久网| 欧美精品高清视频| 久久久久久97三级| 亚洲激情综合网| 日本不卡视频一二三区| 久久99久久99| 色老汉av一区二区三区| 日韩欧美国产系列| 亚洲精品日日夜夜| 美女视频黄久久| 一本色道**综合亚洲精品蜜桃冫| 欧美一区二区三区人| 国产精品福利一区二区三区| 午夜精品福利一区二区蜜股av| 精品综合免费视频观看| 97精品电影院| 久久久天堂av| 日本欧美一区二区在线观看| 高清国产一区二区| 欧美高清视频www夜色资源网| 国产精品嫩草影院av蜜臀| 日韩专区中文字幕一区二区| 91色porny蝌蚪| 精品久久久久久综合日本欧美| 亚洲精品国产高清久久伦理二区| 国产自产v一区二区三区c| 欧美性色aⅴ视频一区日韩精品| 久久久精品免费免费| 人人精品人人爱| 在线免费观看日本欧美| 一色桃子久久精品亚洲| 激情文学综合网| 日韩一区二区三区在线| 亚洲成人先锋电影| 色综合天天综合网天天看片| 国产亚洲欧美一区在线观看| 日本伊人精品一区二区三区观看方式| www.爱久久.com| 欧美国产精品中文字幕| 狠狠色综合日日| 日韩欧美国产不卡| 日本系列欧美系列| 日韩欧美一区二区久久婷婷| 日日夜夜精品视频天天综合网| 99视频精品全部免费在线| 欧美国产日产图区| 成人ar影院免费观看视频| 国产欧美一区二区三区鸳鸯浴 | 中文字幕一区在线| 国产精品1区二区.| 国产欧美日韩激情| 成人动漫一区二区在线| 国产精品高清亚洲| 91亚洲永久精品| 亚洲天天做日日做天天谢日日欢| 成人动漫av在线| 亚洲人妖av一区二区| 不卡一卡二卡三乱码免费网站| 中文文精品字幕一区二区| 丁香婷婷综合激情五月色| 国产精品福利一区| 91成人在线免费观看| 五月婷婷激情综合| 91精品国产高清一区二区三区| 日韩激情一二三区| 久久久久久亚洲综合影院红桃| 国产毛片精品一区| 国产精品国产精品国产专区不片| 99精品热视频| 亚洲高清三级视频| 精品99久久久久久| 99久久99精品久久久久久| 亚洲一区二三区| 日韩一区二区三区av| 国内精品久久久久影院色| 国产精品乱码一区二区三区软件 | 成人一级片在线观看| 亚洲日韩欧美一区二区在线| 91国产视频在线观看| 午夜精品福利一区二区蜜股av| 精品少妇一区二区三区免费观看| 国产精品一级在线| 亚洲高清免费在线| 国产视频911| 欧美视频在线观看一区| 精品在线免费视频| 成人免费在线播放视频| 6080午夜不卡| 成人午夜免费视频| 日韩和欧美的一区| 中文字幕高清不卡| 欧美疯狂做受xxxx富婆| 大美女一区二区三区| 亚洲国产精品尤物yw在线观看| 久久综合一区二区| 欧美日韩不卡一区| 99九九99九九九视频精品| 美国十次综合导航| 亚洲精品高清视频在线观看| 精品成人在线观看| 欧美人与禽zozo性伦| 99综合电影在线视频| 蜜桃视频在线一区| 亚洲自拍另类综合| 中文字幕一区二区三中文字幕| 宅男噜噜噜66一区二区66| 99久久亚洲一区二区三区青草| 另类的小说在线视频另类成人小视频在线| 国产精品国产三级国产aⅴ无密码| 91精品国产麻豆| 91精品办公室少妇高潮对白| 国产精品18久久久久久久久久久久 | 久久精品国产亚洲一区二区三区| 亚洲免费观看高清在线观看| 国产日产精品1区| 欧美mv日韩mv国产网站| 欧美一区二区三区免费大片| 欧美吻胸吃奶大尺度电影| 91天堂素人约啪| 成人午夜电影久久影院| 国产精品911| 激情伊人五月天久久综合| 免费成人结看片| 日韩精品每日更新| 天天综合天天综合色| 亚洲大片一区二区三区| 一区二区成人在线观看| 亚洲人吸女人奶水| 一区二区三区中文字幕电影| 国产精品蜜臀av| 久久婷婷国产综合国色天香 | 国内久久婷婷综合| 国产一区二区三区黄视频| 国产另类ts人妖一区二区| 国产成人8x视频一区二区| 国产成人精品免费网站| 暴力调教一区二区三区| 91婷婷韩国欧美一区二区| 欧美又粗又大又爽| 欧美日韩国产一级| 欧美xxxx老人做受| 国产日韩欧美精品综合| 中文字幕一区二区视频| 亚洲国产乱码最新视频 | 亚洲人快播电影网| 亚洲国产wwwccc36天堂| 麻豆91在线播放| 国产成人在线看| 色综合欧美在线| 欧美一卡二卡三卡| 国产日产欧美一区二区视频| 日韩美女精品在线| 日本成人在线视频网站| 国产精品一级在线| 91电影在线观看| 亚洲精品在线三区| 亚洲丝袜美腿综合| 免播放器亚洲一区| 成人污污视频在线观看| 欧美日韩亚洲综合在线 | 国产女主播视频一区二区| 亚洲精品乱码久久久久久日本蜜臀| 午夜激情一区二区三区| 国产盗摄精品一区二区三区在线| 91香蕉国产在线观看软件| 欧美一区二区三区在| 国产精品久久久久久久久晋中| 亚洲成人av福利| 成人免费视频app| 日韩欧美亚洲一区二区| 中文字幕一区不卡| 久久99深爱久久99精品| 欧美亚洲丝袜传媒另类|