Module: IPKIFCryptoInfo
Definition in file ArchiveTimestamp.cpp.
#include "ArchiveTimestamp.h"
#include "EvidenceRecord.h"
#include "ERSException.h"
#include "Buffer.h"
#include "ASN1Helper.h"
#include "ToolkitUtils.h"
#include "OID.h"
#include "IPKIFCryptoMisc.h"
#include "PKIFAlgorithm.h"
#include "ContentInfo.h"
#include "SignedData.h"
#include "EncapsulatedContentInfo.h"
#include "PKIFMessageErrors.h"
#include "TSTInfo.h"
#include "MessageImprint.h"
#include "ERS.h"
Go to the source code of this file.
Functions | |
CPKIFBufferPtr PKIFERS_API | CalculateHashOfTimestamp (CPKIFContentInfoPtr ×tamp, IPKIFMediatorPtr &m, PKIFCRYPTO::HASH_ALG ha) |
CPKIFBufferPtr PKIFERS_API | CalculateHashOfArchiveTimestampChain (CPKIFArchiveTimestampChainPtr &archiveTimestampChain, IPKIFMediatorPtr &m, PKIFCRYPTO::HASH_ALG ha) |
CPKIFBufferPtr PKIFERS_API CalculateHashOfArchiveTimestampChain | ( | CPKIFArchiveTimestampChainPtr & | archiveTimestampChain, | |
IPKIFMediatorPtr & | m, | |||
PKIFCRYPTO::HASH_ALG | ha | |||
) |
Interface: External
This function calculated hash of an archive timestamp chain
archiveTimestampChain | [in] ArchiveTimestampChain to hash |
m | [in] IPKIFMediator containing mediator/colleague set with capability to generate hashes for indicated algorithm |
ha | [in] Hash algorithm to use when generating the hash of the timestamp passed via the timestamp parameter |
Definition at line 518 of file ArchiveTimestamp.cpp.
References CACASNWRAPPER_CREATE, ConvertStringToASN1OBJID(), CopyOID(), CPKIFAlgorithm::DigestSize(), CPKIFAlgorithm::GetAlg(), IPKIFCryptoMisc::HashFinal(), IPKIFCryptoMisc::HashInit(), IPKIFCryptoMisc::HashUpdate(), NEW_NEXT_AND_ADVANCE, NEW_NODE, and SET_HEAD_TAIL_INCREMENT.
Referenced by CPKIFEvidenceRecordVerifier::Verify().
CPKIFBufferPtr PKIFERS_API CalculateHashOfTimestamp | ( | CPKIFContentInfoPtr & | timestamp, | |
IPKIFMediatorPtr & | m, | |||
PKIFCRYPTO::HASH_ALG | ha | |||
) |
Interface: External
This function is not implemented
timestamp | [in] ContentInfo containing a SignedData that covers a TSTInfo that is being refreshed |
m | [in] IPKIFMediator containing mediator/colleague set with capability to generate hashes for indicated algorithm |
ha | [in] Hash algorithm to use when generating the hash of the timestamp passed via the timestamp parameter |
Definition at line 497 of file ArchiveTimestamp.cpp.