4.8 Summary of Added Header and Control Fields
This section summarizes the syntax and semantics of the new header and control fields to be added to messages in the course of privacy enhancement processing, indicating whether a particular field occurs in a message's encapsulated header portion or its encapsulated text portion. Figure 2 shows the appearance of a small example encapsulated message using these fields. In all cases, hexadecimal quantities are represented as contiguous strings of digits, where each digit is represented by a character from the ranges "0"-"9" or upper case "A"-"F". Unless otherwise specified, all arguments are to be processed in a case-sensitive fashion.
Although the encapsulated header fields resemble RFC-822 header fields, they are a disjoint set and will not in general be processed by the same parser which operates on enclosing header fields. The complexity of lexical analysis needed and appropriate for encapsulated header field processing is significantly less than that appropriate to RFC-822 header processing. For example, many characters with special significance to RFC-822 at the syntactic level have no such significance within encapsulated header fields.
The "X-IK-ID" and "X-Key-Info" fields are the only encapsulated header fields with lengths which can vary beyond a size conveniently printable on a line. Whitespace may be used between the subfields of these fields to fold them in the manner of RFC-822; such whitespace is not to be interpreted as a part of a subfield.
-----PRIVACY-ENHANCED MESSAGE BOUNDARY-----
X-Proc-Type: 1,E
X-Pad-Count: 1
X-IV: F8143EDE5960C597
X-IK-ID: JL:3:ECB
X-Key-Info: 9FD3AAD2F2691B9A,B70665BB9BF7CBCD
X-IK-ID: JL:1:ECB
X-Key-Info: 161A3F75DC82EF26,E2EF532C65CBCFF7
LLrHB0eJzyhP+/fSStdW8okeEnv47jxe7SJ/iN72ohNcUk2jHEUSoH1nvNSIWL9M
8tEjmF/zxB+bATMtPjCUWbz8Lr9wloXIkjHUlBLpvXR0UrUzYbkNpk0agV2IzUpk
J6UiRRGcDSvzrsoK+oNvqu6z7Xs5Xfz5rDqUcMlK1Z6720dcBWGGsDLpTpSCnpot
dXd/H5LMDWnonNvPCwQUHt==
-----PRIVACY-ENHANCED MESSAGE BOUNDARY-----
Example Encapsulated Message
Figure 2
X-IK-ID: This field is placed in the encapsulated header portion of a message to identify the Interchange Key used for encryption of an associated Data Encrypting Key or keys (used for message text encryption and/or MAC computation). This field is used for messages authenticated without confidentiality service and for messages authenticated with confidentiality service. The field contains (in order) an Issuing Authority subfield and an IK Qualifier subfield, and may also contain an optional IK Use Indicator subfield. The subfields are delimited by the colon character (":"), optionally followed by whitespace. Section 5.1.2, Interchange Keys, discusses the semantics of these subfields and specifies the alphabet from which they are chosen. Note that multiple X-IK-ID fields may occur within a single encapsulated header. Each X-IK-ID field is associated with an immediately subsequent X-Key-Info field.
X-IV: This field is placed in the encapsulated header portion of a message to carry the Initializing Vector used for message encryption. It is used only for messages where confidentiality service is applied. Following the field name, and one or more delimiting whitespace characters, a 64-bit Initializing Vector is represented as a contiguous string of 16 hexadecimal digits.
X-Key-Info: This field is placed in a message's encapsulated header portion to transfer two items: a DEK and a MAC. Both items are encrypted under the IK identified by a preceding X-IK-ID field; they are represented as two strings of contiguous hexadecimal digits, separated by a comma. For DEA-1, the DEK representation will be 16 hexadecimal digits (corresponding to a 64-bit key); this subfield can be extended to 32 hexadecimal digits (corresponding to a 128-bit key) if required to support other algorithms. The MAC is a 64-bit quantity, represented as 16 hexadecimal digits. The MAC is computed under an unmodified version of the DEK. Message encryption is performed using a variant of the DEK, formed by modulo-2 addition of the hexadecimal quantity F0F0F0F0F0F0F0F0 to the DEK.
X-Pad-Count: This field is placed in the encapsulated header portion of a message to indicate the number of zero-valued octets which were added to pad the input stream to the encryption function to an integral multiple of eight octets, as required by the DEA-1 CBC encryption mode. A decimal number in the range 0-7 follows the field name, and one or more delimiting whitespace characters. Inclusion of this field allows disambiguation between terminal zero-valued octets in message text (admittedly, a relatively unlikely prospect) and zero-valued octets inserted for padding purposes.
X-Proc-Type: This field is placed in the encapsulated header portion of a message to identify the type of processing performed on the transmitted message. The first subfield is a decimal version number, which will be used if future developments make it necessary to redefine the interpretation of encapsulated header fields. At present, this field may assume only the value "1". The second subfield, delimited by a comma, assumes one of two single-character alphabetic values: "A" and "E", to signify, respectively, (1) authentication processing only and (2) the combination of authentication and confidentiality service through encryption.