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

PSSR Class Template Reference

not standard, may change in future version. More...

#include <pssr.h>

Inheritance diagram for PSSR:

SignatureEncodingMethodWithRecovery HashModule List of all members.

Public Methods

 PSSR (unsigned int representativeBitLen)
 PSSR (const byte *representative,unsigned int representativeBitLen)
 ~PSSR ()
void Update (const byte *input,unsigned int length)
 process more input. More...

unsigned int DigestSize ()const
 size of the hash returned by Final(). More...

void Encode (RandomNumberGenerator &rng,byte *representative)
bool Verify (const byte *representative)
 verify that digest is a valid digest for the current message, then reinitialize the object. More...

unsigned int Decode (byte *message)
unsigned int MaximumRecoverableLength ()const

Static Public Methods

unsigned int MaximumRecoverableLength (unsigned int representativeBitLen)
bool AllowLeftoverMessage ()

Protected Attributes

unsigned int representativeBitLen
unsigned int m1Len
h
SecByteBlock m1
SecByteBlock w
SecByteBlock seed

Static Protected Methods

void EncodeRepresentative (byte *representative,unsigned int representativeBitLen,const byte *w,const byte *seed,const byte *m1,unsigned int m1Len)
unsigned int DecodeRepresentative (const byte *representative,unsigned int representativeBitLen,byte *w,byte *seed,byte *m1)

Detailed Description

template<class H, class MGF = P1363_MGF1<H>> class PSSR

not standard, may change in future version.

Definition at line 11 of file pssr.h.


Constructor & Destructor Documentation

template<class H, class MGF>
PSSR< H,MGF >::PSSR<H, MGF> ( unsigned int representativeBitLen )
 

Definition at line 36 of file pssr.h.

template<class H, class MGF>
PSSR< H,MGF >::PSSR<H, MGF> ( const byte * representative,
unsigned int representativeBitLen )
 

Definition at line 43 of file pssr.h.

template<class H, class MGF = P1363_MGF1<H>>
PSSR<H, MGF>::~PSSR<H, MGF> ( ) [inline]
 

Definition at line 16 of file pssr.h.


Member Function Documentation

template<class H, class MGF = P1363_MGF1<H>>
bool PSSR<H, MGF>::AllowLeftoverMessage ( ) [inline, static]
 

Definition at line 24 of file pssr.h.

template<class H, class MGF>
unsigned int PSSR< H,MGF >::Decode ( byte * message ) [virtual]
 

Reimplemented from SignatureEncodingMethodWithRecovery.

Definition at line 80 of file pssr.h.

template<class H, class MGF>
unsigned int PSSR< H,MGF >::DecodeRepresentative ( const byte * pssrBlock,
unsigned int pssrBlockLen,
byte * w,
byte * seed,
byte * m1 ) [static, protected]
 

Definition at line 128 of file pssr.h.

template<class H, class MGF = P1363_MGF1<H>>
unsigned int PSSR<H, MGF>::DigestSize ( ) const [inline, virtual]
 

size of the hash returned by Final().

Reimplemented from HashModule.

Definition at line 18 of file pssr.h.

template<class H, class MGF>
void PSSR< H,MGF >::Encode ( RandomNumberGenerator & rng,
byte * representative ) [virtual]
 

Reimplemented from SignatureEncodingMethodWithRecovery.

Definition at line 61 of file pssr.h.

template<class H, class MGF>
void PSSR< H,MGF >::EncodeRepresentative ( byte * pssrBlock,
unsigned int pssrBlockLen,
const byte * w,
const byte * seed,
const byte * m1,
unsigned int m1Len ) [static, protected]
 

Definition at line 101 of file pssr.h.

template<class H, class MGF>
unsigned int PSSR< H,MGF >::MaximumRecoverableLength ( unsigned int paddedLength ) [static]
 

Definition at line 95 of file pssr.h.

template<class H, class MGF = P1363_MGF1<H>>
unsigned int PSSR<H, MGF>::MaximumRecoverableLength ( ) const [inline, virtual]
 

Reimplemented from SignatureEncodingMethodWithRecovery.

Definition at line 22 of file pssr.h.

template<class H, class MGF>
void PSSR< H,MGF >::Update ( const byte * input,
unsigned int length ) [virtual]
 

process more input.

Reimplemented from HashModule.

Definition at line 52 of file pssr.h.

template<class H, class MGF>
bool PSSR< H,MGF >::Verify ( const byte * representative ) [virtual]
 

verify that digest is a valid digest for the current message, then reinitialize the object.

Default implementation is to call Final() and do a bitwise comparison between its output and digest.

Reimplemented from SignatureEncodingMethodWithRecovery.

Definition at line 70 of file pssr.h.


Member Data Documentation

template<class H, class MGF = P1363_MGF1<H>>
H PSSR<H, MGF>::h [protected]
 

Definition at line 31 of file pssr.h.

template<class H, class MGF = P1363_MGF1<H>>
SecByteBlock PSSR<H, MGF>::m1 [protected]
 

Definition at line 32 of file pssr.h.

template<class H, class MGF = P1363_MGF1<H>>
unsigned int PSSR<H, MGF>::m1Len [protected]
 

Definition at line 30 of file pssr.h.

template<class H, class MGF = P1363_MGF1<H>>
unsigned int PSSR<H, MGF>::representativeBitLen [protected]
 

Definition at line 30 of file pssr.h.

template<class H, class MGF = P1363_MGF1<H>>
SecByteBlock PSSR<H, MGF>::seed [protected]
 

Definition at line 32 of file pssr.h.

template<class H, class MGF = P1363_MGF1<H>>
SecByteBlock PSSR<H, MGF>::w [protected]
 

Definition at line 32 of file pssr.h.


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