~zooko/cryptopp/trunk

« back to all changes in this revision

Viewing changes to eccrypto.h

  • Committer: weidai
  • Date: 2006-12-09 17:18:13 UTC
  • Revision ID: svn-v4:57ff6487-cd31-0410-9ec3-f628ee90f5f0:trunk/c5:247
add Salsa20 cipher

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
                {this->AccessGroupParameters().Initialize(ec, G, n); SetPublicElement(Q);}
151
151
 
152
152
        // X509PublicKey
153
 
        void BERDecodePublicKey(BufferedTransformation &bt, bool parametersPresent, size_t size);
154
 
        void DEREncodePublicKey(BufferedTransformation &bt) const;
 
153
        void BERDecodeKey2(BufferedTransformation &bt, bool parametersPresent, size_t size);
 
154
        void DEREncodeKey(BufferedTransformation &bt) const;
155
155
};
156
156
 
157
157
//! EC private key
171
171
                {GenerateRandom(rng, DL_GroupParameters_EC<EC>(ec, G, n));}
172
172
 
173
173
        // PKCS8PrivateKey
174
 
        void BERDecodePrivateKey(BufferedTransformation &bt, bool parametersPresent, size_t size);
175
 
        void DEREncodePrivateKey(BufferedTransformation &bt) const;
 
174
        void BERDecodeKey2(BufferedTransformation &bt, bool parametersPresent, size_t size);
 
175
        void DEREncodeKey(BufferedTransformation &bt) const;
176
176
};
177
177
 
178
178
//! Elliptic Curve Diffie-Hellman, AKA <a href="http://www.weidai.com/scan-mirror/ka.html#ECDH">ECDH</a>