Skip to main content

5. Key Management

5.1 Types of Keys​

5.1.1 Data Encrypting Keys (DEKs)​

Data Encrypting Keys (DEKs) are used for encryption of message text and for computation of message authentication codes (MACs). It is strongly recommended that DEKs be generated and used on a one-time basis. A transmitted message will incorporate a representation of the DEK encrypted under an interchange key (IK) known to the authorized recipient.

DEK generation can be performed either centrally by key distribution centers (KDCs) or by endpoint systems. One advantage of centralized KDC-based generation is that DEKs can be returned to endpoints already encrypted under the IKs of message recipients. This reduces IK exposure and simplifies endpoint key management requirements. Further, dedicated KDC systems may be able to implement better algorithms for random key generation than can be supported in endpoint systems. On the other hand, decentralization allows endpoints to be relatively self-sufficient, reducing the level of trust which must be placed in components other than a message's originator and recipient. Moreover, decentralized DEK generation by endpoints reduces the frequency with which senders must make real-time queries of (potentially unique) servers in order to send mail, enhancing communications availability.

5.1.2 Interchange Keys (IKs)​

Interchange Keys (IKs) are used to encrypt Data Encrypting Keys. In general, the granularity of IK usage is at the pairwise per-user level except for mail sent to address lists comprising multiple users. In order for two principals to engage in a useful exchange of privacy-enhanced electronic mail using conventional cryptography, they must first share a common interchange key. When asymmetric cryptography is used, an originator and recipient must possess appropriate public and secret components which, in composition, constitute an interchange key.

The means by which interchange keys are provided to appropriate parties are outside the scope of this RFC, but may be centralized (e.g., via key management servers) or decentralized (e.g., via direct distribution among users). In any case, a given IK is associated with a responsible Issuing Authority (IA). When an IA generates and distributes an IK, associated control information must be provided to direct how that IK is to be used. In order to select the appropriate IK to use in message encryption, a sender must retain a correspondence between IKs and the recipients with which they are associated. Expiration date information must also be retained, in order that cached entries may be invalidated and replaced as appropriate.

When a privacy-enhanced message is transmitted, an indication of the IK (or IKs, in the case of a message sent to multiple recipients) used for DEK encryption must be included. To this end, the IK ID construct is defined to provide the following data:

  1. Identification of the relevant Issuing Authority (IA subfield)
  2. Qualifier string to distinguish the particular IK within the set of IKs distributed by the IA (IK qualifier subfield)
  3. (Optional) Indicator of IK usage mode (IK use indicator subfield)

The subfields of an IK ID are delimited with the colon character (":"). The IA and IK qualifier subfields are generated from a restricted character set, as prescribed by the following BNF (using notation as defined in RFC-822, sections 2 and 3.3):

IAorIKQual   :=      1*ia-char

ia-char := DIGIT / ALPHA / "'" / "+" / "(" / ")" /
"," / "." / "/" / "=" / "?" / "-" / "@" /
"%" / "!" / '"' / "_" / "<" / ">"

The IK use indicator subfield assumes a value from a small set of reserved strings, described later in this section.

IA identifiers must be assigned in a manner which assures uniqueness. This can be done on a centralized or hierarchic basis.

The IK qualifier string format may vary among different IAs, but must satisfy certain functional constraints. An IA's IK qualifiers must be sufficient to distinguish among the set of IKs issued by that IA. Since a message may be sent with multiple IK IDs, corresponding to multiple intended recipients, each recipient must be able to determine which IK is intended for it. Moreover, if no corresponding IK is available in the recipient's database when a message arrives, the recipient must be able to determine which IK to request and to identify that IK's associated IA. Note that different IKs may be used for different messages between a pair of communicants. Consider, for example, one message sent from A to B and another message sent (using the IK-per-list method) from A to a mailing list of which B is a member. The first message would use an IK shared between A and B, but the second would use an IK shared among list members.

While use of a monotonically increasing number as an IK qualifier is sufficient to distinguish among the set of IKs distributed by an IA, it offers no facility for a recipient lacking a matching IK to determine the appropriate IK to request. This suggests that sender and recipient name information should be incorporated into an IK qualifier, along with a number to distinguish among multiple IKs used between a sender/recipient pair. In order to support universal interoperability, it is necessary to assume a universal form for the naming information. General definition of such a form requires further study; issues and possible approaches will be noted in Section 6. As an interim measure, the following IK qualifier format is suggested:

<sender-name>/<recipient-name>/<numid>

where <sender-name> and <recipient-name> are in the following form:

<user>@<domain-qualified-host>

For the case of installations which transform local host names before transmission into the broader Internet, it is strongly recommended that the host name as presented to the Internet be employed. The <numid> is a contiguous string of decimal digits.

The IK use indicator subfield is an optional facility, provided to identify the encryption mode in which the IK is to be used. Currently, this subfield may assume the following reserved string values: "ECB" and "EDE"; the default value is ECB.

An example IK ID adhering to this recommendation is as follows:

This IK ID would indicate that IA "ptf-kmc" has issued an IK for use on messages sent from "[email protected]" to "[email protected]", that the IA has associated number 2 with that IK, and that the IK is to be used in ECB mode.

IKs will remain valid for a period which will be longer than a single message and will be identified by an expiration time distributed along with the IK; IK cryptoperiod is dictated in part by a tradeoff between key management overhead and revocation responsiveness. It would be undesirable to delete an IK permanently before receipt of a message encrypted using that IK, as this would render the message permanently undecipherable. Access to an expired IK would be needed, for example, to process mail received by a user (or system) which had been inactive for an extended period of time. In order to enable very old IKs to be deleted, a message's recipient desiring encrypted local long term storage should transform the DEK used for message text encryption via re-encryption under a locally maintained IK, rather than relying on IA maintenance of old IKs for indefinite periods.