Encrypt_GCReadHandler Class Reference

Encrypting GCReader handler. More...

#include <crypto_asdcp.h>

Inheritance diagram for Encrypt_GCReadHandler:

GCReadHandler_Base RefCount IRefCount List of all members.

Public Member Functions

 Encrypt_GCReadHandler (GCWriterPtr Writer, UInt32 BodySID, UUIDPtr &ContextID, DataChunkPtr KeyID, std::string KeyFileName)
 Construct a handler for a specified BodySID.
virtual bool HandleData (GCReaderPtr Caller, KLVObjectPtr Object)
 Handle a "chunk" of data that has been read from the file.
void SetPlaintextOffset (Length Offset)
 Set the Plaintext offset to use when encrypting.
void SetIndex (IndexTablePtr Index)
 Set an index table to update with new byte offsets.

Protected Attributes

UInt32 OurSID
 The BodySID of this essence.
GCWriterPtr Writer
 GCWriter to receive encrypted data.
UUIDPtr ContextID
 The context ID UL for this encrypted essence.
DataChunk EncKey
 The encryption key we will use.
Length PlaintextOffset
 Plaintext offset to use when encrypting.
IndexTablePtr Index
 Index table to update (or NULL if none).
Position IndexPos
 Current edit unit for indexing.

Private Member Functions

 Encrypt_GCReadHandler ()
 Don't allow standard construction.

Detailed Description

Encrypting GCReader handler.


Constructor & Destructor Documentation

Encrypt_GCReadHandler (  )  [private]

Don't allow standard construction.

Encrypt_GCReadHandler ( GCWriterPtr  Writer,
UInt32  BodySID,
UUIDPtr ContextID,
DataChunkPtr  KeyID,
std::string  KeyFileName 
)

Construct a handler for a specified BodySID.


Member Function Documentation

bool HandleData ( GCReaderPtr  Caller,
KLVObjectPtr  Object 
) [virtual]

Handle a "chunk" of data that has been read from the file.

Returns:
true if all OK, false on error

Implements GCReadHandler_Base.

void SetPlaintextOffset ( Length  Offset  )  [inline]

Set the Plaintext offset to use when encrypting.

void SetIndex ( IndexTablePtr  Index  )  [inline]

Set an index table to update with new byte offsets.


Member Data Documentation

UInt32 OurSID [protected]

The BodySID of this essence.

GCWriterPtr Writer [protected]

GCWriter to receive encrypted data.

UUIDPtr ContextID [protected]

The context ID UL for this encrypted essence.

DataChunk EncKey [protected]

The encryption key we will use.

Length PlaintextOffset [protected]

Plaintext offset to use when encrypting.

IndexTablePtr Index [protected]

Index table to update (or NULL if none).

Position IndexPos [protected]

Current edit unit for indexing.


The documentation for this class was generated from the following files:
Generated on Mon Apr 2 15:20:57 2007 for MXFLib by  doxygen 1.5.1-p1