L_JP2_DIGITAL_SIGNATURE_BOX

typedef struct _tagL_JP2_DIGITAL_SIGNATURE_BOX
{
   L_UINT32 uStructSize;
   L_UINT8  uStyp;
   L_UINT8  uPtyp;
   L_UINT64 uOFF;
   L_UINT64 uLength;
   L_UINT8 * pData;
   L_SIZE_T uDataSize;
}L_JP2_DIGITAL_SIGNATURE_BOX,   *pL_JP2_DIGITAL_SIGNATURE_BOX;

The L_JP2_DIGITAL_SIGNATURE_BOX structure provides information for a Digital Signature box.

Member

Description

uStructSize

Size of this structure, in bytes. Use the sizeof operator to calculate this value.

uStyp

Signature type. This field specifies the type of digital signature contained within this Digital Signature box.

uPtyp

Source pointer type. This field indicates how the source data range that is signed by this Digital signature box is specified.

uOFF

Source data offset. This field specifies the offset in bytes to the start of the source data range that is signed by this Digital Signature box.

uLength

Source data Length. If nonzero, this field specifies the length in byte of the source data range the is signed by this Digital Signature box. A value of zero specifies that the end of the source data range is the last byte of the file.

pData

Signature data.

uDataSize

The size of signature data.

Comments

The Digital Signature box contains a checksum or digital signature that may be used to verify data contained within the file. This digital signature is used to protect a very specific byte stream within the file. Any change to that byte stream will invalidate the digital signature. This box is defined in JPX and above file formats. A JPEG 2000 file may contain zero or more Digital Signature boxes.

The L_JP2_DIGITAL_SIGNATURE_BOX structure is used in the following functions:

LJp2FileFormat::ReadBox

LJp2FileFormat::AppendBoxes

LJp2FileFormat::ReadBoxMemory

LJp2FileFormat::AppendBoxesMemory

LJp2FileFormat::FreeBoxes

LJp2FileFormat::GetBoxes

LJp2FileFormat::SetBoxes