ArchiveTimestamp.h File Reference


Detailed Description

Subsystem: Evidence Record Syntax (PKIFERS)

Module: ArchiveTimestamp

Id
ArchiveTimestamp.h 9443 2009-02-16 14:52:41Z agalustyan

Definition in file ArchiveTimestamp.h.

#include "PKIFdll.h"
#include "PKIFERSLib.h"
#include "PKIFCryptoConstants.h"

Include dependency graph for ArchiveTimestamp.h:

This graph shows which files directly or indirectly include this file:

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 &timestamp, IPKIFMediatorPtr &m, PKIFCRYPTO::HASH_ALG ha)
CPKIFBufferPtr PKIFERS_API CalculateHashOfArchiveTimestampChain (CPKIFArchiveTimestampChainPtr &archiveTimestampChain, IPKIFMediatorPtr &m, PKIFCRYPTO::HASH_ALG ha)


Typedef Documentation

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.


Enumeration Type Documentation

Enumerator:
iATS 
trATS 
hrATS 

Definition at line 38 of file ArchiveTimestamp.h.


Function Documentation

CPKIFBufferPtr PKIFERS_API CalculateHashOfArchiveTimestampChain ( CPKIFArchiveTimestampChainPtr &  archiveTimestampChain,
IPKIFMediatorPtr m,
PKIFCRYPTO::HASH_ALG  ha 
)

Interface: External

This function calculated hash of an archive timestamp chain

Returns:
Smart pointer to CPKIFBuffer object
Parameters:
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

Returns:
Smart pointer to CPKIFBuffer object
Parameters:
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   ) 


Generated on Mon Nov 15 11:15:59 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6