33 #ifndef DIGIKAM_YF_RSA_H
34 #define DIGIKAM_YF_RSA_H
64 return (x.cf( y ) != 0);
69 return (x.cf( y ) == 0);
74 return (x.cf( y ) >= 0);
79 return (x.cf( y ) <= 0);
84 return (x.cf( y ) > 0);
89 return (x.cf( y ) < 0);
95 vlong(
unsigned x = 0);
100 operator unsigned ();
103 void load(
unsigned* a,
unsigned n );
104 void store(
unsigned* a,
unsigned n )
const;
106 unsigned bits()
const;
110 class vlong_value*
value;
112 int cf(
const vlong& x )
const;
138 #define MAX_CRYPT_BITS 1024
144 void EncryptPortion(
const char* pt, std::size_t,
char* ct, std::size_t&);
151 virtual void Encrypt(
const char*, std::size_t,
char*, std::size_t&);
virtual void ImportPublicKey(const char *)
Definition: yfrsa.cpp:901
virtual void Encrypt(const char *, std::size_t, char *, std::size_t &)
Definition: yfrsa.cpp:906
CCryptoProviderRSA()
Definition: yfrsa.cpp:860
virtual ~CCryptoProviderRSA()
Definition: yfrsa.cpp:864
vlong p
Definition: yfrsa.h:133
vlong q
Definition: yfrsa.h:133
void MakeMe(const char *)
Definition: yfrsa.cpp:855
vlong m
Definition: yfrsa.h:124
vlong e
Definition: yfrsa.h:124
vlong encrypt(const vlong &plain)
Definition: yfrsa.cpp:789
unsigned get_nunits() const
Definition: yfrsa.cpp:475
friend int operator<=(const vlong &x, const vlong &y)
Definition: yfrsa.h:77
friend int operator!=(const vlong &x, const vlong &y)
Definition: yfrsa.h:62
friend int operator>(const vlong &x, const vlong &y)
Definition: yfrsa.h:82
void store(unsigned *a, unsigned n) const
Definition: yfrsa.cpp:467
friend int operator<(const vlong &x, const vlong &y)
Definition: yfrsa.h:87
friend int operator>=(const vlong &x, const vlong &y)
Definition: yfrsa.h:72
friend class monty
Definition: yfrsa.h:115
~vlong()
Definition: yfrsa.cpp:548
friend vlong operator/(const vlong &x, const vlong &y)
Definition: yfrsa.cpp:632
unsigned bits() const
Definition: yfrsa.cpp:480
vlong(unsigned x=0)
Definition: yfrsa.cpp:517
void load(unsigned *a, unsigned n)
Definition: yfrsa.cpp:456
vlong & operator-=(const vlong &x)
Definition: yfrsa.cpp:587
vlong & operator=(const vlong &x)
Definition: yfrsa.cpp:531
friend vlong operator%(const vlong &x, const vlong &y)
Definition: yfrsa.cpp:655
friend vlong operator+(const vlong &x, const vlong &y)
Definition: yfrsa.cpp:610
friend vlong operator*(const vlong &x, const vlong &y)
Definition: yfrsa.cpp:624
vlong & operator+=(const vlong &x)
Definition: yfrsa.cpp:565
friend int operator==(const vlong &x, const vlong &y)
Definition: yfrsa.h:67
friend vlong operator-(const vlong &x, const vlong &y)
Definition: yfrsa.cpp:617
qulonglong value
Definition: itemviewutilities.cpp:592
Definition: yfauth.cpp:40