~ubuntu-branches/ubuntu/intrepid/libcrypto++/intrepid

« back to all changes in this revision

Viewing changes to rabin.h

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Machard
  • Date: 2004-08-27 12:35:05 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040827123505-7evgxiu7k8memiyk
Tags: 5.2.1a-1
* Urgency set to high because lastest upload was unclean
* Rename libcrypto++-5.2.1.orig.tar.gz in  libcrypto++-5.2.1a.orig.tar.gz

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
NAMESPACE_BEGIN(CryptoPP)
12
12
 
13
 
//! Rabin
 
13
//! _
14
14
class RabinFunction : public TrapdoorFunction, public PublicKey
15
15
{
16
16
        typedef RabinFunction ThisClass;
42
42
        Integer m_n, m_r, m_s;
43
43
};
44
44
 
45
 
//! Invertible Rabin
 
45
//! _
46
46
class InvertibleRabinFunction : public RabinFunction, public TrapdoorFunctionInverse, public PrivateKey
47
47
{
48
48
        typedef InvertibleRabinFunction ThisClass;
77
77
        Integer m_p, m_q, m_u;
78
78
};
79
79
 
80
 
//! .
 
80
//! Rabin
81
81
struct Rabin
82
82
{
83
83
        static std::string StaticAlgorithmName() {return "Rabin-Crypto++Variant";}
85
85
        typedef InvertibleRabinFunction PrivateKey;
86
86
};
87
87
 
88
 
//! .
 
88
//! Rabin encryption
89
89
template <class STANDARD>
90
90
struct RabinES : public TF_ES<STANDARD, Rabin>
91
91
{
92
92
};
93
93
 
94
 
//! .
 
94
//! Rabin signature
95
95
template <class STANDARD, class H>
96
96
struct RabinSS : public TF_SS<STANDARD, H, Rabin>
97
97
{