Software Update:MAR: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 20: Line 20:
   4 bytes : SignatureAlgorithmID - ID representing the type of signature algorithm.
   4 bytes : SignatureAlgorithmID - ID representing the type of signature algorithm.
   4 bytes : SignatureSize - Size in bytes of the signature that follows
   4 bytes : SignatureSize - Size in bytes of the signature that follows
   N bytes : Signature - The signature of type SignatureAlgorithmID and size N = SignatureSize bytes
   N bytes : Signature - The signature of type SIGNATURE_ENTRY.SignatureAlgorithmID and size N = SIGNATURE_ENTRY.SignatureSize bytes


INDEX
INDEX
Line 33: Line 33:
   1 byte  : null terminator
   1 byte  : null terminator


Some old MAR files will not contain the SIGNATURE block nor the FileSize field.  Old parsers simply skip over these fields because they ignore everything between the MAR header and the offset given in the OffsetToIndex field.
Some old MAR files will not contain the SIGNATURE block nor the HEADER.FileSize field.  Old parsers simply skip over these fields because they ignore everything between the MAR header and the offset given in the HEADER.OffsetToIndex field.


== Signatures ==
== SIGNATURE blocks ==


Zero or more signatures can be specified.   
Zero or more SIGNATURE_ENTRYs can be specified.   
The signatures must be composed of all bytes of the MAR file excluding the Signature fields.
The signatures must be composed of all bytes of the MAR file excluding the SIGNATURE_ENTRY.Signature fields.
The signature contained must be of type SignatureAlgorithmID.
The contained SIGNATURE_ENTRY.signature must be of type SIGNATURE_ENTRY.SignatureAlgorithmID.


== SignatureAlgorithmID  ==
== SIGNATURE_ENTRY.SignatureAlgorithmID  ==
   
   
   1: RSA-PKCS1-SHA1 (2048 bits / 256 bytes)
   1: RSA-PKCS1-SHA1 (2048 bits / 256 bytes)


The updater will only accept the MAR file if at least one of the signatures verifies.
The updater will only accept the MAR file if at least one of the signatures verifies.
Some versions of the updater may not apply a MAR file unless a valid signature of a particular SignatureAlgorithmID is included in the MAR file.
Some versions of the updater may not apply a MAR file unless a valid signature of a particular SIGNATURE_ENTRY.SignatureAlgorithmID is included in the MAR file.


As of Firefox 10, only RSA-PKCS1-SHA1 signatures are accepted.
As of Firefox 10, only RSA-PKCS1-SHA1 signatures are accepted.
Confirmed users
394

edits

Navigation menu