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

« back to all changes in this revision

Viewing changes to luc.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:
49
49
        Integer m_n, m_e;
50
50
};
51
51
 
52
 
//! .
 
52
//! _
53
53
class InvertibleLUCFunction : public LUCFunction, public TrapdoorFunctionInverse, public PrivateKey
54
54
{
55
55
        typedef InvertibleLUCFunction ThisClass;
127
127
        Integer m_p;
128
128
};
129
129
 
130
 
//! .
 
130
//! _
131
131
class DL_BasePrecomputation_LUC : public DL_FixedBasePrecomputation<Integer>
132
132
{
133
133
public:
146
146
        Integer m_g;
147
147
};
148
148
 
149
 
//! .
 
149
//! _
150
150
class DL_GroupParameters_LUC : public DL_GroupParameters_IntegerBasedImpl<DL_GroupPrecomputation_LUC, DL_BasePrecomputation_LUC>
151
151
{
152
152
public:
168
168
        int GetFieldType() const {return 2;}
169
169
};
170
170
 
171
 
//! .
 
171
//! _
172
172
class DL_GroupParameters_LUC_DefaultSafePrime : public DL_GroupParameters_LUC
173
173
{
174
174
public:
178
178
        unsigned int GetDefaultSubgroupOrderSize(unsigned int modulusSize) const {return modulusSize-1;}
179
179
};
180
180
 
181
 
//! .
 
181
//! _
182
182
class DL_Algorithm_LUC_HMP : public DL_ElgamalLikeSignatureAlgorithm<Integer>
183
183
{
184
184
public:
191
191
                {return params.GetGroupOrder().ByteCount();}
192
192
};
193
193
 
194
 
//! .
 
194
//! _
195
195
struct DL_SignatureKeys_LUC
196
196
{
197
197
        typedef DL_GroupParameters_LUC GroupParameters;
205
205
{
206
206
};
207
207
 
208
 
//! .
 
208
//! _
209
209
struct DL_CryptoKeys_LUC
210
210
{
211
211
        typedef DL_GroupParameters_LUC_DefaultSafePrime GroupParameters;