#include <crypto_asdcp.h>
Inheritance diagram for Encrypt_GCReadHandler:
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. |
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.
bool HandleData | ( | GCReaderPtr | Caller, | |
KLVObjectPtr | Object | |||
) | [virtual] |
Handle a "chunk" of data that has been read from the file.
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.
GCWriterPtr Writer [protected] |
GCWriter to receive encrypted data.
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.