Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ECDecryptor Class Template Reference

Elliptic Curve ECIES, AKA EC-DHAES. More...

#include <eccrypto.h>

Inheritance diagram for ECDecryptor:

ECPrivateKey PK_Decryptor ECPublicKey PK_CryptoSystem ECParameters PK_Precomputation PK_Precomputation List of all members.

Public Types

typedef EC::Point Point

Public Methods

 ECDecryptor (const ECPrivateKey< EC > &key)
 ECDecryptor (const ECParameters< EC > &params,const Point &Q,const Integer &d)
 ECDecryptor (const OID &oid,const Point &Q,const Integer &d)
 ECDecryptor (const EC &ec,const Point &G,const Integer &n,const Point &Q,const Integer &d)
 ECDecryptor (RandomNumberGenerator &rng,const ECParameters< EC > &params)
 ECDecryptor (RandomNumberGenerator &rng,const OID &oid)
 ECDecryptor (RandomNumberGenerator &rng,const EC &ec,const Point &G,const Integer &n)
 ECDecryptor (BufferedTransformation &bt)
unsigned int MaxPlainTextLength (unsigned int cipherTextLength)const
 maximum length of plaintext for a given ciphertext length. More...

unsigned int CipherTextLength (unsigned int plainTextLength)const
 calculate length of ciphertext given length of plaintext. More...

unsigned int Decrypt (const byte *cipherText,unsigned int cipherTextLength,byte *plainText)
 decrypt a byte string, and return the length of plaintext. More...


Detailed Description

template<class EC, class MAC = HMAC<SHA>, class KDF = P1363_KDF2<SHA>> class ECDecryptor

Elliptic Curve ECIES, AKA EC-DHAES.

Definition at line 356 of file eccrypto.h.


Member Typedef Documentation

template<class EC, class MAC = HMAC<SHA>, class KDF = P1363_KDF2<SHA>>
typedef EC::Point ECDecryptor<EC, MAC, KDF>::Point
 

Reimplemented from ECPrivateKey.

Definition at line 359 of file eccrypto.h.


Constructor & Destructor Documentation

template<class EC, class MAC = HMAC<SHA>, class KDF = P1363_KDF2<SHA>>
ECDecryptor<EC, MAC, KDF>::ECDecryptor<EC, MAC, KDF> ( const ECPrivateKey< EC > & key ) [inline]
 

Definition at line 361 of file eccrypto.h.

template<class EC, class MAC = HMAC<SHA>, class KDF = P1363_KDF2<SHA>>
ECDecryptor<EC, MAC, KDF>::ECDecryptor<EC, MAC, KDF> ( const ECParameters< EC > & params,
const Point & Q,
const Integer & d ) [inline]
 

Definition at line 361 of file eccrypto.h.

template<class EC, class MAC = HMAC<SHA>, class KDF = P1363_KDF2<SHA>>
ECDecryptor<EC, MAC, KDF>::ECDecryptor<EC, MAC, KDF> ( const OID & oid,
const Point & Q,
const Integer & d ) [inline]
 

Definition at line 361 of file eccrypto.h.

template<class EC, class MAC = HMAC<SHA>, class KDF = P1363_KDF2<SHA>>
ECDecryptor<EC, MAC, KDF>::ECDecryptor<EC, MAC, KDF> ( const EC & ec,
const Point & G,
const Integer & n,
const Point & Q,
const Integer & d ) [inline]
 

Definition at line 361 of file eccrypto.h.

template<class EC, class MAC = HMAC<SHA>, class KDF = P1363_KDF2<SHA>>
ECDecryptor<EC, MAC, KDF>::ECDecryptor<EC, MAC, KDF> ( RandomNumberGenerator & rng,
const ECParameters< EC > & params ) [inline]
 

Definition at line 361 of file eccrypto.h.

template<class EC, class MAC = HMAC<SHA>, class KDF = P1363_KDF2<SHA>>
ECDecryptor<EC, MAC, KDF>::ECDecryptor<EC, MAC, KDF> ( RandomNumberGenerator & rng,
const OID & oid ) [inline]
 

Definition at line 361 of file eccrypto.h.

template<class EC, class MAC = HMAC<SHA>, class KDF = P1363_KDF2<SHA>>
ECDecryptor<EC, MAC, KDF>::ECDecryptor<EC, MAC, KDF> ( RandomNumberGenerator & rng,
const EC & ec,
const Point & G,
const Integer & n ) [inline]
 

Definition at line 361 of file eccrypto.h.

template<class EC, class MAC = HMAC<SHA>, class KDF = P1363_KDF2<SHA>>
ECDecryptor<EC, MAC, KDF>::ECDecryptor<EC, MAC, KDF> ( BufferedTransformation & bt ) [inline]
 

Definition at line 361 of file eccrypto.h.


Member Function Documentation

template<class EC, class MAC = HMAC<SHA>, class KDF = P1363_KDF2<SHA>>
unsigned int ECDecryptor<EC, MAC, KDF>::CipherTextLength ( unsigned int plainTextLength ) const [inline, virtual]
 

calculate length of ciphertext given length of plaintext.

Reimplemented from PK_CryptoSystem.

Definition at line 365 of file eccrypto.h.

template<class EC, class MAC = HMAC<SHA>, class KDF = P1363_KDF2<SHA>>
unsigned int ECDecryptor<EC, MAC, KDF>::Decrypt ( const byte * cipherText,
unsigned int cipherTextLength,
byte * plainText ) [inline, virtual]
 

decrypt a byte string, and return the length of plaintext.

Precondition: size of plainText == MaxPlainTextLength(cipherTextLength) bytes.

The function returns the actual length of the plaintext, or 0 if decryption fails.

Reimplemented from PK_Decryptor.

Definition at line 368 of file eccrypto.h.

template<class EC, class MAC = HMAC<SHA>, class KDF = P1363_KDF2<SHA>>
unsigned int ECDecryptor<EC, MAC, KDF>::MaxPlainTextLength ( unsigned int cipherTextLength ) const [inline, virtual]
 

maximum length of plaintext for a given ciphertext length.

Reimplemented from PK_CryptoSystem.

Definition at line 363 of file eccrypto.h.


The documentation for this class was generated from the following file:
Generated at Mon Jan 15 01:16:46 2001 for Crypto++ by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000