www.pudn.com > sanpack_rsa_vs2003sln_src.rar > rsa_draft.h


// This is a draft version of RSA encryption 
// Improved by sanicle,2006.1  
// 3mn@3mn.net 
#include "vlong.h" 
 
class public_key 
{ 
  public: 
  vlong m,e; 
  vlong encrypt( const vlong& plain ); // Requires 0 <= plain < m 
}; 
 
class private_key : public public_key 
{ 
  public: 
  vlong p,q; 
  vlong decrypt( const vlong& cipher ); 
 
  void create( const char * r1, const char * r2 ); 
  // r1 and r2 should be null terminated random strings 
  // each of length around 35 characters (for a 500 bit modulus) 
};