The DSIG table contains the digital signature of the OpenType font. Signature formats are widely documented and rely on a key pair architecture. Software developers, or publishers posting material on the Internet, create signatures using a private key. Operating systems or applications authenticate the signature using a public key.
The W3C and major software and operating system developers have specified security standards that describe signature formats, specify secure collections of web objects, and recommend authentication architecture. OpenType fonts with signatures will support these standards.
OpenType fonts offer many security features:
Anyone can obtain identity certificates and encryption keys from a certifying agency, such as Verisign or GTE's Cybertrust, free or at a very low cost.
The DSIG table is organized as follows. The first portion of the table is the header:
Type | Name | Description |
---|---|---|
ULONG | version | Version, set to 1 |
USHORT | numsigs | Number of Signatures |
USHORT | flag | Set to 1 to indicate that the existing signature should not be replaced |
This header information is followed by entries for each of the signatures in the table specifying format and offset information:
Type | Name | Description |
---|---|---|
ULONG | format | Signature block format |
ULONG | cbSignature | Length of signature block in bytes |
ULONG | offset | Offset to the signature block from the beginning of the table. |
This information is then followed by one or more signature blocks:
Type | Name | Description |
---|---|---|
ULONG | bSignature | Signature block in one of the defined formats |
The format identifier specifies both the format of the signature object, as well as the hashing algorithm used to create and authenticate the signature. Currently only one format is defined, but at least one other format will soon be defined to handle subsetting scenarios. Format 1 supports PKCS#7 signatures with X.509 certificates and counter-signatures, as these signatures have been standardized for use by the W3C with the participation of numerous software developers.
For more information about PKCS#7 signatures, see ftp://ftp.rsa.com/pub/pkcs/ascii/pkcs-7.asc
For more information about counter-signatures, see ftp://ftp.rsa.com/pub/pkcs/ascii/pkcs-9.asc
Format 1: For whole fonts, with either TrueType outlines and/or CFF data
PKCS#7 or PKCS#9. The signed content digest is created as follows: