ModuleFileHeader csize
Sean Mullan
sean.mullan at oracle.com
Thu Apr 14 13:28:45 PDT 2011
On 4/14/11 3:54 PM, Mandy Chung wrote:
> On 04/14/11 12:37, Mandy Chung wrote:
>> On 04/14/11 06:14, Sean Mullan wrote:
>>> The ModuleFileHeader csize attribute is currently set to the size of the
>>> module file minus the size of the ModuleFileHeader. Is that correct?
>>> Shouldn't it be the size of the module file?
>>>
>> Possibly a bug.
>
> Just to be clear - I meant a bug in the implementation.
Ok. But ...
Either way there is a problem when you apply the signature. The csize cannot be
calculated until after you generate the signature, but the signature encrypts a
hash of the module file, which includes the csize.
So either we need to exclude the size of the signature or not include the csize
in the hash.
--Sean
More information about the jigsaw-dev
mailing list