#include <PKIFCryptoPPExternalDigest.h>
TSP-enforcing: No
Definition at line 26 of file PKIFCryptoPPExternalDigest.h.
Public Member Functions | |
PKIFCryptoPPExternalDigest () | |
~PKIFCryptoPPExternalDigest () | |
void | SetDigest (const unsigned char *buf, unsigned int length) |
void | Update (const byte *input, size_t length) |
unsigned int | DigestSize () const |
void | TruncatedFinal (byte *digest, size_t digestSize) |
bool | TruncatedVerify (const byte *digest, size_t digestLength) |
PKIFCryptoPPExternalDigest::PKIFCryptoPPExternalDigest | ( | ) | [inline] |
Interface: Module
Default constructor
Definition at line 37 of file PKIFCryptoPPExternalDigest.h.
PKIFCryptoPPExternalDigest::~PKIFCryptoPPExternalDigest | ( | ) |
Interface: Module
Frees the digest set using SetDigest()
Definition at line 21 of file PKIFCryptoPPExternalDigest.cpp.
void PKIFCryptoPPExternalDigest::SetDigest | ( | const unsigned char * | buf, | |
unsigned int | length | |||
) |
Interface: Module
Set the digest (calculated externally) and length of the digest to be returned when a verifier calls Final() or used in the Verify() function
Definition at line 37 of file PKIFCryptoPPExternalDigest.cpp.
Referenced by NewEDAccumulator().
void PKIFCryptoPPExternalDigest::Update | ( | const byte * | input, | |
size_t | length | |||
) | [inline] |
Interface: Module
Does nothing since this HashTransformation is only for messages that have already been hashed.
Definition at line 51 of file PKIFCryptoPPExternalDigest.h.
unsigned int PKIFCryptoPPExternalDigest::DigestSize | ( | void | ) | const |
Interface: Module Return the length of the digest. This will always be either what was set using SetDigest() or 0.
Definition at line 55 of file PKIFCryptoPPExternalDigest.cpp.
void PKIFCryptoPPExternalDigest::TruncatedFinal | ( | byte * | digest, | |
size_t | digestSize | |||
) |
Interface: Module Copies the stored digest into digest
digest | [out] The stored digest |
digestSize | [in] The size of the buffer for the digest |
Definition at line 64 of file PKIFCryptoPPExternalDigest.cpp.
bool PKIFCryptoPPExternalDigest::TruncatedVerify | ( | const byte * | digest, | |
size_t | digestLength | |||
) |
Interface: Module Compares the two digests
digest | [in] caller's digest |
digestLength | [in] length in bytes of the caller's digest |
Definition at line 84 of file PKIFCryptoPPExternalDigest.cpp.