~zooko/cryptopp/trunk

« back to all changes in this revision

Viewing changes to ecp.h

  • Committer: weidai
  • Date: 2003-07-29 01:18:33 UTC
  • Revision ID: svn-v4:57ff6487-cd31-0410-9ec3-f628ee90f5f0:trunk/c5:118
fix potential threading problem with initialization of static objects

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
        unsigned int EncodedPointSize(bool compressed = false) const
67
67
                {return 1 + (compressed?1:2)*GetField().MaxElementByteLength();}
68
68
        // returns false if point is compressed and not valid (doesn't check if uncompressed)
69
 
        bool DecodePoint(Point &P, BufferedTransformation &bt, size_t len) const;
70
 
        bool DecodePoint(Point &P, const byte *encodedPoint, size_t len) const;
 
69
        bool DecodePoint(Point &P, BufferedTransformation &bt, unsigned int len) const;
 
70
        bool DecodePoint(Point &P, const byte *encodedPoint, unsigned int len) const;
71
71
        void EncodePoint(byte *encodedPoint, const Point &P, bool compressed) const;
72
72
        void EncodePoint(BufferedTransformation &bt, const Point &P, bool compressed) const;
73
73
 
93
93
 
94
94
template <class T> class EcPrecomputation;
95
95
 
96
 
//! ECP precomputation
 
96
//! .
97
97
template<> class EcPrecomputation<ECP> : public DL_GroupPrecomputation<ECP::Point>
98
98
{
99
99
public: