Module: ArchiveTimestamp
Definition in file ArchiveTimestamp.h.
#include "PKIFdll.h"
#include "PKIFERSLib.h"
#include "PKIFCryptoConstants.h"
Go to the source code of this file.
Classes | |
class | CPKIFArchiveTimestamp |
Typedefs | |
typedef std::vector < CPKIFBufferPtr, PKIFAlloc < CPKIFBufferPtr > > | CPKIFPartialHashtree |
typedef std::vector < CPKIFPartialHashtreePtr, PKIFAlloc < CPKIFPartialHashtreePtr > > | CPKIFPartialHashtreeList |
typedef std::vector < CPKIFArchiveTimestampPtr, PKIFAlloc < CPKIFArchiveTimestampPtr > > | CPKIFArchiveTimestampChain |
typedef std::vector < CPKIFArchiveTimestampChainPtr, PKIFAlloc < CPKIFArchiveTimestampChainPtr > > | CPKIFArchiveTimestampSequence |
Enumerations | |
enum | ArchiveTimeStampType { iATS = 0, trATS, hrATS } |
Functions | |
FD_SMART_PTR (CPKIFAlgorithmIdentifier) | |
FD_SMART_PTR (CPKIFBuffer) | |
FD_SMART_PTR (CPKIFContentInfo) | |
FD_MC_PTR () | |
DECLARE_SMART_POINTERS (CPKIFPartialHashtree) | |
DECLARE_SMART_POINTERS (CPKIFArchiveTimestamp) | |
CPKIFBufferPtr PKIFERS_API | CalculateHashOfTimestamp (CPKIFContentInfoPtr ×tamp, IPKIFMediatorPtr &m, PKIFCRYPTO::HASH_ALG ha) |
CPKIFBufferPtr PKIFERS_API | CalculateHashOfArchiveTimestampChain (CPKIFArchiveTimestampChainPtr &archiveTimestampChain, IPKIFMediatorPtr &m, PKIFCRYPTO::HASH_ALG ha) |
typedef std::vector<CPKIFArchiveTimestampPtr, PKIFAlloc<CPKIFArchiveTimestampPtr> > CPKIFArchiveTimestampChain |
An ArchiveTimeStampChain is a sequence of ArchiveTimeStamps. The first ArchiveTimeStamp in the chain covers a data object or group of data objects for which preservation is required. Each successive entry in chain covers its predecessor, i.e., the ArchiveTimeStamp n covers the timestamp field from ArchiveTimeStamp n-1. All entries in the chain must contain timestamps with the same hash algorithm in the MessageImprint.
Definition at line 108 of file ArchiveTimestamp.h.
typedef std::vector<CPKIFArchiveTimestampChainPtr, PKIFAlloc<CPKIFArchiveTimestampChainPtr> > CPKIFArchiveTimestampSequence |
An ArchiveTimeStampSequence is a sequence of ArchiveTimeStampChains. The first element in the first chain covers a data object or group of data objects for which preservation is required. The first element in each subsequent chain covers a data object or group of data objects for which preservation is required plus the preceding chain.
Definition at line 117 of file ArchiveTimestamp.h.
typedef std::vector<CPKIFBufferPtr, PKIFAlloc<CPKIFBufferPtr> > CPKIFPartialHashtree |
Definition at line 24 of file ArchiveTimestamp.h.
typedef std::vector<CPKIFPartialHashtreePtr, PKIFAlloc<CPKIFPartialHashtreePtr> > CPKIFPartialHashtreeList |
Definition at line 35 of file ArchiveTimestamp.h.
enum ArchiveTimeStampType |
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.
DECLARE_SMART_POINTERS | ( | CPKIFArchiveTimestamp | ) |
DECLARE_SMART_POINTERS | ( | CPKIFPartialHashtree | ) |
FD_MC_PTR | ( | ) |
FD_SMART_PTR | ( | CPKIFContentInfo | ) |
FD_SMART_PTR | ( | CPKIFBuffer | ) |
FD_SMART_PTR | ( | CPKIFAlgorithmIdentifier | ) |