ArchiveTimestamp.cpp File Reference


Detailed Description

Subsystem: Evidence Record Syntax (PKIFERS)

Module: IPKIFCryptoInfo

Id
ArchiveTimestamp.cpp 9913 2009-05-13 17:22:33Z agalustyan

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"

Include dependency graph for ArchiveTimestamp.cpp:

Go to the source code of this file.

Functions

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


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.


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