#include <pubkey.h>
Inheritance diagram for PK_VerifierImpl< DS, H >:
Definition at line 499 of file pubkey.h.
Public Types | |
typedef DS::KeyClass | KeyClass |
Public Member Functions | |
void | CopyKeyInto (typename DS::SchemeOptions::PublicKey &key) const |
std::string | AlgorithmName () const |
returns name of this algorithm, not universally implemented yet | |
PrivateKey & | AccessPrivateKey () |
const PrivateKey & | GetPrivateKey () const |
PublicKey & | AccessPublicKey () |
const PublicKey & | GetPublicKey () const |
KeyClass & | AccessKey () |
const KeyClass & | GetKey () const |
const KeyClass & | GetTrapdoorFunction () const |
DS & | AccessDigestSignatureScheme () |
const DS & | GetDigestSignatureScheme () const |
bool | VerifyAndRestart (HashTransformation &messageAccumulator, const byte *sig) const |
check whether sig is a valid signature for messageAccumulator, and restart messageAccumulator | |
unsigned int | SignatureLength () const |
signature length support by this object (as either input or output) | |
HashTransformation * | NewMessageAccumulator () const |
deprecated, please use PK_Signer::NewSignatureAccumulator or PK_Verifier::NewVerificationAccumulator instead | |
virtual bool | SignatureUpfrontForVerification () const |
virtual HashTransformation * | NewVerificationAccumulator (const byte *signature=NULL) const |
create a new HashTransformation to accumulate the message to be verified | |
virtual bool | Verify (HashTransformation *messageAccumulator, const byte *signature=NULL) const |
check whether sig is a valid signature for messageAccumulator, and delete messageAccumulator (even in case of exception thrown) | |
virtual void | InitializeVerificationAccumulator (HashTransformation &messageAccumulator, const byte *signature) const |
only useful if SignatureUpfrontForVerification() == true | |
virtual bool | VerifyMessage (const byte *message, unsigned int messageLen, const byte *signature) const |
check whether sig is a valid signature for message | |
CryptoMaterial & | AccessMaterial () |
returns a reference to the crypto material used by this object | |
const CryptoMaterial & | GetMaterial () const |
returns a const reference to the crypto material used by this object | |
void | BERDecode (BufferedTransformation &bt) |
for backwards compatibility, calls AccessMaterial().Load(bt) | |
void | DEREncode (BufferedTransformation &bt) const |
for backwards compatibility, calls GetMaterial().Save(bt) | |
virtual Clonable * | Clone () const |
this is not implemented by most classes yet | |
Protected Attributes | |
DS | m_ds |
|
check whether sig is a valid signature for messageAccumulator, and restart messageAccumulator
Implements PK_Verifier. Definition at line 449 of file pubkey.h. References HashTransformation::DigestSize(), HashTransformation::Final(), SecBlock< byte >::size(), and DigestVerifier::VerifyDigest(). |
|
If this function returns true, you must input the signature when calling NewVerificationAccumulator(). Otherwise, you must input the signature when calling Verify(). Definition at line 1268 of file cryptlib.h. |
|
create a new HashTransformation to accumulate the message to be verified
Definition at line 1274 of file cryptlib.h. References PK_SignatureScheme::NewMessageAccumulator(). Referenced by PK_Verifier::VerifyMessage(). |
|
check whether sig is a valid signature for messageAccumulator, and delete messageAccumulator (even in case of exception thrown)
Definition at line 632 of file cryptlib.cpp. References PK_Verifier::VerifyAndRestart(). |
|
check whether sig is a valid signature for message
Definition at line 638 of file cryptlib.cpp. References PK_Verifier::NewVerificationAccumulator(), and PK_Verifier::VerifyAndRestart(). |