2.3.4.4 \EncryptedPackage Stream

The \EncryptedPackage stream is an encrypted stream (1) of bytes containing the entire ECMA-376 source file [ECMA-376] in compressed form.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

StreamSize

...

EncryptedData (variable)

...

StreamSize (8 bytes): An unsigned integer that specifies the number of bytes used by data encrypted within the EncryptedData field, not including the size of the StreamSize field. Note that the actual size of the \EncryptedPackage stream (1) can be larger than this value, depending on the block size of the chosen encryption algorithm

EncryptedData (variable): A block of data that is encrypted by using the algorithm specified within the \EncryptionInfo stream (1) (section 2.3.4.5).