TOC 
Network Working GroupR. Housley
Internet-DraftVigil Security, LLC
Intended status: Standards TrackR. Reddy
Expires: April 6, 2008National Security Agency
 C. Wallace
 Cygnacom Solutions
 October 04, 2007


Trust Anchor Management Protocol (TAMP)
draft-housley-tamp-00

Status of this Memo

By submitting this Internet-Draft, each author represents that any applicable patent or other IPR claims of which he or she is aware have been or will be disclosed, and any of which he or she becomes aware will be disclosed, in accordance with Section 6 of BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. Note that other groups may also distribute working documents as Internet-Drafts.

Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as “work in progress.”

The list of current Internet-Drafts can be accessed at http://www.ietf.org/ietf/1id-abstracts.txt.

The list of Internet-Draft Shadow Directories can be accessed at http://www.ietf.org/shadow.html.

This Internet-Draft will expire on April 6, 2008.

Abstract

This document describes a transport independent, request-response protocol for the management of trust anchors and community identifiers stored in a device. The protocol makes use of the Cryptographic Message Syntax (CMS), and a digital signature is used to provide integrity protection and data origin authentication. Each trust anchor is associated with a list of functions within devices that make use of digital signature mechanisms. Digital signatures can be validated directly with the public key associated with the trust anchor, or they can be validated with a certified public key whose X.509 certification path terminates with the trust anchor public key.



Table of Contents

1.  Introduction
    1.1.  Terminology
    1.2.  Trust Anchors
        1.2.1.  Apex Trust Anchors
        1.2.2.  Management Trust Anchors
        1.2.3.  Identity Trust Anchors
    1.3.  Architectural Elements
        1.3.1.  Cryptographic Module
        1.3.2.  TAMP Protocol Processing Dependencies
        1.3.3.  Application-Specific Protocol Processing
    1.4.  ASN.1 Encoding
2.  Cryptographic Message Syntax Profile
    2.1.  Content Info
    2.2.  SignedData Info
        2.2.1.  SignerInfo
        2.2.2.  EncapsulatedContentInfo
        2.2.3.  Signed Attributes
        2.2.4.  Unsigned Attributes
3.  Trust Anchor Information Syntax
4.  Trust Anchor Management Protocol Messages
    4.1.  TAMP Status Query
    4.2.  TAMP Status Query Response
    4.3.  Trust Anchor Update
    4.4.  Trust Anchor Update Confirm
    4.5.  Apex Trust Anchor Update
    4.6.  Apex Trust Anchor Update Confirm
    4.7.  Community Update
    4.8.  Community Update Confirm
    4.9.  Sequence Number Adjust
    4.10.  Sequence Number Adjust Confirm
    4.11.  TAMP Error
5.  Status Codes
6.  Sequence Number Processing
7.  Subordination Processing
8.  Implementation Considerations
9.  Security Considerations
10.  IANA Considerations
11.  References
    11.1.  Normative References
    11.2.  Informative References
Appendix A.  ASN.1 Modules
    A.1.  ASN.1 Module Using 1993 Syntax
    A.2.  ASN.1 Module Using 1988 Syntax
§  Authors' Addresses
§  Intellectual Property and Copyright Statements




 TOC 

1.  Introduction

This document describes the Trust Anchor Management Protocol (TAMP). TAMP may be used to manage the trust anchors and community identifiers in any device that uses digital signatures; however, this specification was written with the requirements of cryptographic modules in mind. For example, TAMP can support signed firmware packages, where the trust anchor public key can be used to validate digital signatures on firmware packages or validate the X.509 certification path [RFC3280] (Housley, R., Polk, W., Ford, W., and D. Solo, “Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile,” April 2002.)[X.509] (, “ITU-T Recommendation X.509 - The Directory - Authentication Framework,” 2000.) of the firmware package signer [RFC4108] (Housley, R., “Using Cryptographic Message Syntax (CMS) to Protect Firmware Packages,” August 2005.).

Most TAMP messages are digitally signed to provide integrity protection and data origin authentication. Both signed and unsigned TAMP messages employ the Cryptographic Message Syntax (CMS) [RFC3852] (Housley, R., “Cryptographic Message Syntax (CMS),” July 2004.). The CMS is a data protection encapsulation syntax that makes use of ASN.1 [X.680] (, “ITU-T Recommendation X.680: Information Technology - Abstract Syntax Notation One,” 1997.).

This specification does not provide for confidentiality of TAMP messages. If confidentiality is required, then the communications environment that is used to transfer TAMP messages must provide it.



 TOC 

1.1.  Terminology

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 [RFC2119] (Bradner, S., “Key words for use in RFCs to Indicate Requirement Levels,” March 1997.).



 TOC 

1.2.  Trust Anchors

TAMP manages trust anchors, but TAMP does not dictate a particular structure for the storage of trust anchor information in cryptographic modules. A trust anchor contains a public key that is used to validate digital signatures.

There are three types of trust anchors: apex trust anchors, management trust anchors, and identity trust anchors.

All trust anchors, regardless of their type, are named by the public key, and all trust anchors consist of the following components:

The apex trust anchor and management trust anchors that issue TAMP messages also include a sequence number for replay detection.

The public key is used to name a trust anchor, and the public key identifier is used to identify the trust anchor as the signer. This public key identifier can be stored with the trust anchor, or in most public key identifier assignment methods, it can be computed from the public key whenever needed. The trust anchor X.500 distinguished name within the OPTIONAL X.509 certification path controls is used when the trust anchor public key is used to validate an X.509 certification path. In this case, the certificate subject is the signer. Use of an X.509 certification path represents delegation, and delegation is possible only when the trust anchor configuration includes an X.500 distinguished name.

A trust anchor public key can be used in two different ways to support digital signature validation. In the first approach, the trust anchor public key is used directly to validate the digital signature. In the second approach, the trust anchor public key is used to validate an X.509 certification path, and then the subject public key in the final certificate in the certification path is used to validate the digital signature. When the second approach is employed, the certified public key can be used for things other than digital signature validation; the other possible actions are constrained by the key usage certificate extension. Cryptographic modules MUST support validation of X.509 certificates that are directly signed by a trust anchor; however, support for longer certification paths is RECOMMENDED. The CMS provides a location to carry X.509 certificates, and this facility can be used to transfer certificates to aid in the construction of the certification path.



 TOC 

1.2.1.  Apex Trust Anchors

Within the context of a single cryptographic module, one trust anchor is superior to all others. This trust anchor is referred to as the apex trust anchor. This trust anchor represents the ultimate authority over the cryptographic module. The ultimate authority could be the legal owner of the device in a commercial setting. Much of this authority can be delegated to other trust anchors.

The apex trust anchor private key is expected to be controlled by an entity with information assurance responsibility for the cryptographic module. The apex trust anchor is by definition unconstrained and therefore does not have explicit authorization information associated with it. In order to make processing of messages as uniform as possible, the apex has an implicit OID associated with it that represents the special anyContentType value. This OID will be used as input to processing algorithms to represent the apex trust anchor authorization.

Due to the special nature of the apex trust anchor, TAMP includes separate facilities to change it. In particular, TAMP includes a facility to securely replace the apex trust anchor. This action might be taken for one or more of the following reasons:

To accommodate these requirements, the apex trust anchor has a different structure than other trust anchors; it includes two public keys. Whenever the apex trust anchor is updated, both public keys are replaced. The first public key, called the operational public key, is used in the same manner as other trust anchors. Any type of TAMP message, including an Apex Trust Anchor Update message, can be validated with the operational public key. The second public key, called the contingency public key, can only be used to update the apex trust anchor. The contingency private key SHOULD be used at only one point in time; it is used only to sign an Apex Trust Anchor Update message which results in its own replacement (as well as the replacement of the operational public key). The contingency public key is distributed in encrypted form. When the contingency public key is used to validate an Apex Trust Anchor Update message, the symmetric key needed to decrypt the contingency public key is provided as part of the signed Apex Trust Anchor Update message that is to be verified with the contingency public key.



 TOC 

1.2.2.  Management Trust Anchors

Management trust anchors are used in the management of cryptographic modules. For example, the TAMP messages specified in this document are validated to a management trust anchor. Likewise, a signed firmware package as specified in [RFC4108] (Housley, R., “Using Cryptographic Message Syntax (CMS) to Protect Firmware Packages,” August 2005.) is validated to a management trust anchor.

Authorization checking is needed for management messages, and these checks are based on the content type of the management message. As a result, management trust anchors include a list of object identifiers (OIDs) that name authorized content types along with OPTIONAL constraints.



 TOC 

1.2.3.  Identity Trust Anchors

Identity trust anchors are used to validate certification paths, and they represent the trust anchor for a public key infrastructure. They are most often used in the validation of certificates associated with non-management applications.



 TOC 

1.3.  Architectural Elements

TAMP does not assume any particular architecture; however, for TAMP to be useful in an architecture, it MUST include a cryptographic module, TAMP protocol processing, and other application-specific protocol processing.

A globally unique algorithm identifier MUST be assigned for each one-way hash function, digital signature generation/validation algorithm, and symmetric key unwrapping algorithm that is implemented. To support CMS, an object identifier (OID) is assigned to name a one-way hash function, and another OID is assigned to name each combination of a one-way hash function when used with a digital signature algorithm. Similarly, certificates associate OIDs assigned to public key algorithms with subject public keys, and certificates make use of an OID that names both the one-way hash function and the digital signature algorithm for the certificate issuer digital signature.



 TOC 

1.3.1.  Cryptographic Module

The cryptographic module MUST include the following capabilities:



 TOC 

1.3.2.  TAMP Protocol Processing Dependencies

TAMP processing MUST include the following capabilities:



 TOC 

1.3.3.  Application-Specific Protocol Processing

The apex trust anchor and management trust anchors managed with TAMP can be used by the TAMP application. Other management applications MAY make use of all three types of trust anchors, but non-management applications SHOULD only make use of identity trust anchors.

The application-specific protocol processing MUST be provided the following services:

It is expected that application-specific protocol processing will also include constraints processing. In some applications, management trust anchors could be authorized for a subset of the functionality associated with a particular content type.



 TOC 

1.4.  ASN.1 Encoding

The CMS uses Abstract Syntax Notation One (ASN.1) [X.680] (, “ITU-T Recommendation X.680: Information Technology - Abstract Syntax Notation One,” 1997.). ASN.1 is a formal notation used for describing data protocols, regardless of the programming language used by the implementation. Encoding rules describe how the values defined in ASN.1 will be represented for transmission. The Basic Encoding Rules (BER) [X.690] (, “ITU-T Recommendation X.690 Information Technology - ASN.1 encoding rules: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules (DER),” 1997.) are the most widely employed rule set, but they offer more than one way to represent data structures. For example, definite length encoding and indefinite length encoding are supported. This flexibility is not desirable when digital signatures are used. As a result, the Distinguished Encoding Rules (DER) [X.690] (, “ITU-T Recommendation X.690 Information Technology - ASN.1 encoding rules: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules (DER),” 1997.) were invented. DER is a subset of BER that ensures a single way to represent a given value. For example, DER always employs definite length encoding.

Digitally signed structures MUST be encoded with DER. In other specifications, structures that are not digitally signed do not require DER, but in this specification, DER is REQUIRED for all structures. By always using DER, the TAMP processor will have fewer options to implement.

ASN.1 is used throughout the text of the document for illustrative purposes. The authoritative source of ASN.1 for the structures defined in this document is Appendix A.



 TOC 

2.  Cryptographic Message Syntax Profile

TAMP makes use of signed and unsigned messages. The Cryptographic Message Syntax (CMS) is used in both cases. A digital signature is used to protect the message from undetected modification and provide data origin authentication. TAMP makes no general provision for encryption of content.

CMS is used to construct a signed TAMP message. The CMS ContentInfo content type MUST always be present, and it MUST encapsulate the CMS SignedData content type. The CMS SignedData content type MUST encapsulate the TAMP message. A unique content type identifier identifies the particular TAMP message. The CMS encapsulation of a signed TAMP message is summarized by:


 ContentInfo {
   contentType id-signedData, -- (1.2.840.113549.1.7.2)
   content     SignedData
 }

 SignedData {
   version           CMSVersion, -- Always set to 3
   digestAlgorithms  DigestAlgorithmIdentifiers, -- Only one
   encapContentInfo  EncapsulatedContentInfo,
   certificates      CertificateSet, -- OPTIONAL signer certificates
   crls              CertificateRevocationLists, -- OPTIONAL
   signerInfos       SET OF SignerInfo -- Only one
 }

 SignerInfo {
   version             CMSVersion, -- Always set to 3
   sid                 SignerIdentifier,
   digestAlgorithm     DigestAlgorithmIdentifier,
   signedAttrs         SignedAttributes,
                                       -- REQUIRED in TAMP messages
   signatureAlgorithm  SignatureAlgorithmIdentifier,
   signature           SignatureValue,
   unsignedAttrs       UnsignedAttributes -- OPTIONAL; may only be
}                                         -- present in Apex Trust
                                          -- Anchor Update messages

 EncapsulatedContentInfo {
   eContentType  OBJECT IDENTIFIER, -- Names TAMP message type
   eContent      OCTET STRING       -- Contains TAMP message
 }

When a TAMP message is used to update the apex trust anchor, this same structure is used; however, the digital signature will be validated with either the apex trust anchor operational public key or the contingency public key. When the contingency public key is used, the symmetric key needed to decrypt the previously stored contingency public key is provided as a contingency-public-key-decrypt-key unsigned attribute. Section 4.5 of this document describes the Apex Trust Anchor Update message.

CMS is also used to construct an unsigned TAMP message. The CMS ContentInfo structure MUST always be present, and it MUST be the outermost layer of encapsulation. A unique content type identifier identifies the particular TAMP message. The CMS encapsulation of an unsigned TAMP message is summarized by:


 ContentInfo {
   contentType  OBJECT IDENTIFIER, -- Names TAMP message type
   content      OCTET STRING       -- Contains TAMP message
 }



 TOC 

2.1.  Content Info

CMS requires the outer-most encapsulation to be ContentInfo [RFC3852] (Housley, R., “Cryptographic Message Syntax (CMS),” July 2004.). The fields of ContentInfo are used as follows:



 TOC 

2.2.  SignedData Info

The SignedData content type [RFC3852] (Housley, R., “Cryptographic Message Syntax (CMS),” July 2004.) contains the signed TAMP message and a digital signature value; the SignedData content type MAY also contain the certificates needed to validate the digital signature. The fields of SignedData are used as follows:



 TOC 

2.2.1.  SignerInfo

The TAMP message originator is represented in the SignerInfo type. The fields of SignerInfo are used as follows:



 TOC 

2.2.2.  EncapsulatedContentInfo

The EncapsulatedContentInfo structure contains the TAMP message. The fields of EncapsulatedContentInfo are used as follows:



 TOC 

2.2.3.  Signed Attributes

The TAMP message originator MUST digitally sign a collection of attributes along with the TAMP message. Each attribute in the collection MUST be DER-encoded. The syntax for attributes is defined in [X.501] (, “ITU-T Recommendation X.501 - The Directory - Models,” 1993.). X.500 Directory provides a rich attribute syntax. A very simple subset of this syntax is used extensively in [RFC3852] (Housley, R., “Cryptographic Message Syntax (CMS),” July 2004.), where ATTRIBUTE.&Type and ATTRIBUTE.&id are the only parts of the ATTRIBUTE class that are employed.

The attribute syntax is repeated here for convenience:


 Attribute ::= SEQUENCE {
     type          ATTRIBUTE.&id ({SupportedAttributes}),
     values        SET SIZE (1..MAX) OF ATTRIBUTE.&Type
                        ({SupportedAttributes}{@type}) }

 SupportedAttributes ATTRIBUTE ::= { ... }

 ATTRIBUTE ::= CLASS {
     &derivation                ATTRIBUTE OPTIONAL,
     &Type                      OPTIONAL,
                         -- either &Type or &derivation REQUIRED
     &equality-match            MATCHING-RULE OPTIONAL,
     &ordering-match            MATCHING-RULE OPTIONAL,
     &substrings-match          MATCHING-RULE OPTIONAL,
     &single-valued             BOOLEAN DEFAULT FALSE,
     &collective                BOOLEAN DEFAULT FALSE,
     -- operational extensions
     &no-user-modification      BOOLEAN DEFAULT FALSE,
     &usage                     AttributeUsage DEFAULT
                                               userApplications,
     &id                        OBJECT IDENTIFIER UNIQUE }
 WITH SYNTAX {
     [ SUBTYPE OF               &derivation ]
     [ WITH SYNTAX              &Type ]
     [ EQUALITY MATCHING RULE   &equality-match ]
     [ ORDERING MATCHING RULE   &ordering-match ]
     [ SUBSTRINGS MATCHING RULE &substrings-match ]
     [ SINGLE VALUE             &single-valued ]
     [ COLLECTIVE               &collective ]
     [ NO USER MODIFICATION     &no-user-modification ]
     [ USAGE                    &usage ]
     ID                         &id }

 MATCHING-RULE ::= CLASS {
     &AssertionType             OPTIONAL,
     &id                        OBJECT IDENTIFIER UNIQUE }
 WITH SYNTAX {
     [ SYNTAX                   &AssertionType ]
     ID                         &id }

 AttributeType ::= ATTRIBUTE.&id

 AttributeValue ::= ATTRIBUTE.&Type

 AttributeUsage ::= ENUMERATED {
   userApplications          (0),
   directoryOperation        (1),
   distributedOperation      (2),
   dSAOperation              (3) }

Each of the attributes used with this CMS profile has a single attribute value. Even though the syntax is defined as a SET OF AttributeValue, there MUST be exactly one instance of AttributeValue present.

The SignedAttributes syntax within signerInfo is defined as a SET OF Attribute. The SignedAttributes MUST include only one instance of any particular attribute. TAMP messages that violate this rule MUST be rejected as malformed.

The TAMP message originator MUST include the content-type and message-digest attributes. The TAMP message originator MAY also include the binary-signing-time signed attribute.

The TAMP message originator MAY include any other attribute that it deems appropriate. The intent is to allow additional signed attributes to be included if a future need is identified. This does not cause an interoperability concern because unrecognized signed attributes MUST be ignored.

The following summarizes the signed attribute requirements for TAMP messages:



 TOC 

2.2.3.1.  Content-Type Attribute

The TAMP message originator MUST include a content-type attribute; it is an object identifier that uniquely specifies the content type. Section 11.1 of [RFC3852] (Housley, R., “Cryptographic Message Syntax (CMS),” July 2004.) defines the content-type attribute. For TAMP, the value identifies the TAMP message. The list of TAMP message content types and their identifiers is provided in Section 4.

A content-type attribute MUST contain the same object identifier as the content type contained in the EncapsulatedContentInfo.



 TOC 

2.2.3.2.  Message-Digest Attribute

The TAMP message originator MUST include a message-digest attribute, having as its value the output of a one-way hash function computed on the TAMP message that is being signed. Section 11.2 of [RFC3852] (Housley, R., “Cryptographic Message Syntax (CMS),” July 2004.) defines the message-digest attribute.



 TOC 

2.2.3.3.  Content-Hints Attribute

Many applications find it useful to have information that describes the innermost content when multiple layers of encapsulation have been applied. Since this version of TAMP only has one layer of encapsulation, the encapContentInfo provides the content type of the innermost content. To accommodate future versions of TAMP that might include additional layers of encapsulation, the content-hints attribute MUST be included in every instance of SignedData that does not directly encapsulate a TAMP message. Section 2.9 of [RFC2634] (Hoffman, P., “Enhanced Security Services for S/MIME,” June 1999.) defines the content-hints attribute.

The content-hints attribute contains two fields: contentDescription and contentType. The contentType field MUST be present, and the contentDescription field MAY be present. The fields of the content-hints attribute are used as follows:



 TOC 

2.2.3.4.  Binary-Signing-Time Attribute

The TAMP message originator MAY include a binary-signing-time attribute, specifying the time at which the digital signature was applied to the TAMP message. The binary-signing-time attribute is defined in [RFC4049] (Housley, R., “BinaryTime: An Alternate Format for Representing Date and Time in ASN.1,” April 2005.).

No processing of the binary-signing-time attribute is REQUIRED of a TAMP message recipient; however, the binary-signing-time attribute MAY be included by the TAMP message originator as a form of message identifier.



 TOC 

2.2.4.  Unsigned Attributes

For TAMP, unsigned attributes are usually omitted. An unsigned attribute is present only in Apex Trust Anchor Update messages that are to be validated by the apex trust anchor contingency public key. In this case, the symmetric key to decrypt the previous contingency public key is provided in the contingency-public-key-decrypt-key unsigned attribute. This attribute MUST be supported, and it is described in Section 2.2.4.1.

The TAMP message originator SHOULD NOT include other unsigned attributes, and the cryptographic module MUST ignore unrecognized unsigned attributes.

The UnsignedAttributes syntax within signerInfo is defined as a SET OF Attribute. The UnsignedAttributes MUST include only one instance of any particular attribute. TAMP messages that violate this rule MUST be rejected as malformed.



 TOC 

2.2.4.1.  Contingency Public Key Decrypt Key Attribute

The contingency-public-key-decrypt-key attribute provides the plaintext symmetric key needed to decrypt the previously distributed apex trust anchor contingency public key. The symmetric key MUST be useable with the symmetric algorithm used to previously encrypt the contingency public key.

The contingency-public-key-decrypt-key attribute has the following syntax:


 contingency-public-key-decrypt-key ATTRIBUTE ::= {
   WITH SYNTAX PlaintextSymmetricKey
   SINGLE VALUE TRUE
   ID id-aa-TAMP-contingencyPublicKeyDecryptKey }

 id-aa-TAMP-contingencyPublicKeyDecryptKey
   OBJECT IDENTIFIER ::= { id-attributes 63 }

 PlaintextSymmetricKey ::= OCTET STRING



 TOC 

3.  Trust Anchor Information Syntax

An implementation MAY store trust anchor information in any format; however, a common syntax is used throughout the TAMP specification for trust anchor information. This section describes the TrustAnchorInfo ASN.1 type.


TrustAnchorInfo ::= SEQUENCE {
   version   [0] TAMPVersion DEFAULT v2,
   pubKey    PublicKeyInfo,
   keyId     KeyIdentifier,
   taType    TrustAnchorType,
   taTitle   TrustAnchorTitle OPTIONAL,
   certPath  CertPathControls OPTIONAL }

TAMPVersion ::= INTEGER { v1(1), v2(2) }

PublicKeyInfo ::= SEQUENCE {
   algorithm  AlgorithmIdentifier,
   publicKey  BIT STRING }

 KeyIdentifier ::= OCTET STRING

 TrustAnchorType ::= CHOICE {
   apex   [0] ApexTrustAnchorInfo,
   mgmt   [1] MgmtTrustAnchorInfo,
   ident  [2] NULL }

 ApexTrustAnchorInfo ::= SEQUENCE {
   continPubKey  ApexContingencyKey,
   seqNum        SeqNumber OPTIONAL }

 ApexContingencyKey ::= SEQUENCE {
   wrapAlgorithm        AlgorithmIdentifier,
   wrappedContinPubKey  OCTET STRING }

 SeqNumber ::= INTEGER (0..9223372036854775807)

 MgmtTrustAnchorInfo ::= SEQUENCE {
   taUsage  TrustAnchorUsage,
   seqNum   SeqNumber OPTIONAL }

 TrustAnchorUsage ::= CMSContentConstraints

 CMSContentConstraints ::= ContentTypeConstraintList

 ContentTypeConstraintList ::= SEQUENCE SIZE (1..MAX) OF
                           ContentTypeConstraint

 ContentTypeConstraint ::= SEQUENCE {
   contentType      ContentType,
   canSource        BOOLEAN DEFAULT TRUE,
   attrConstraints  AttrConstraintList OPTIONAL }

 ContentType ::= OBJECT IDENTIFIER

 AttrConstraintList ::= SEQUENCE SIZE (1..MAX) OF AttrConstraint

 AttrConstraint ::= SEQUENCE {
   attrType    AttributeType,
   attrValues  SET SIZE (1..MAX) OF AttributeValue }


 TrustAnchorTitle ::= UTF8String (SIZE (1..64))

 CertPathControls ::= SEQUENCE {
   taName           Name,
   selfSigned       [0] Certificate OPTIONAL,
   policySet        [1] CertificatePolicies OPTIONAL,
   policyFlags      [2] CertPolicyFlags OPTIONAL,
   clearanceConstr  [3] CAClearanceConstraints OPTIONAL,
   nameConstr       [4] NameConstraints OPTIONAL }

 CertificatePolicies ::= SEQUENCE SIZE (1..MAX) OF PolicyInformation

 PolicyInformation ::= SEQUENCE {
   policyIdentifier  CertPolicyId,
   policyQualifiers  SEQUENCE SIZE (1..MAX) OF
                           PolicyQualifierInfo OPTIONAL }

 CertPolicyId ::= OBJECT IDENTIFIER

 CertPolicyFlags ::= BIT STRING {
   inhibitPolicyMapping   (0),
   requireExplicitPolicy  (1),
   inhibitAnyPolicy       (2) }

 CAClearanceConstraints ::= SEQUENCE SIZE (1..MAX) OF Clearance

 Clearance ::= SEQUENCE {
   policyId           [0] OBJECT IDENTIFIER,
   classList          [1] ClassList DEFAULT {unclassified},
   securityCategories [2] SET OF SecurityCategory OPTIONAL }

 ClassList ::= BIT STRING {
   unmarked      (0),
   unclassified  (1),
   restricted    (2),
   confidential  (3),
   secret        (4),
   topSecret     (5) }

 SecurityCategory ::= SEQUENCE {
   type   [0] SECURITY-CATEGORY.&id({SecurityCategoriesTable}),
   value  [1] EXPLICIT SECURITY-CATEGORY.&Type
                   ({SecurityCategoriesTable}{@type}) }

 SECURITY-CATEGORY ::= TYPE-IDENTIFIER

 SecurityCategoriesTable SECURITY-CATEGORY ::= {...}

 NameConstraints ::= SEQUENCE {
   permittedSubtrees  [0] GeneralSubtrees OPTIONAL,
   excludedSubtrees   [1] GeneralSubtrees OPTIONAL }

 GeneralSubtrees ::= SEQUENCE SIZE (1..MAX) OF GeneralSubtree

 GeneralSubtree ::= SEQUENCE {
   base     GeneralName,
   minimum  [0] BaseDistance DEFAULT 0,
   maximum  [1] BaseDistance OPTIONAL }

BaseDistance ::= INTEGER (0..MAX)

The fields of TrustAnchorInfo are used as follows:

The fields of ApexTrustAnchorInfo are used as follows:

The fields of ApexContingencyKey are used as follows:

The fields of MgmtTrustAnchorInfo are used as follows:

The TrustAnchorUsage is defined using the CMSContentConstraints type defined in [CCC] (Housley, R. and C. Wallace, “Cryptographic Message Syntax (CMS) Content Signature Constraints X.509 Certificate Extension,” in progress.). The CMSContentConstraints is a list of permitted content types and associated constraints. The management trust anchor can be used to validate digital signatures on the permitted content types, including TAMP message content types.

The anyContentType object identifier can be used to indicate that the trust anchor is unconstrained. The apex trust anchor has an implicit CMSContentConstraints field with a single permitted content type of anyContentType.

The fields of ContentTypeConstraint are used as follows:

The AttrConstraintList contains a sequence of attributes, which is defined in [CCC] (Housley, R. and C. Wallace, “Cryptographic Message Syntax (CMS) Content Signature Constraints X.509 Certificate Extension,” in progress.) and repeated above. The fields of AttrConstraint are used as follows:

The fields of CertPathControls are used as follows:

When the trust anchor is used to validate a certification path, CertPathControls provides limitations on certification paths that will successfully validate. An application that is validating a certification path MUST NOT ignore these limitations, but the application can impose additional limitations to ensure that the validated certification path is appropriate for the intended application context. As input to the certification path validation algorithm, an application MAY:



 TOC 

4.  Trust Anchor Management Protocol Messages

TAMP makes use of signed and unsigned messages. The CMS is used in both cases. An object identifier is assigned to each TAMP message type, and this object identifier is used as a content type in the CMS.

TAMP specifies eleven message types. The following provides the content type identifier for each TAMP message type, and it indicates whether a digital signature is REQUIRED. If the following indicates that the TAMP message MUST be signed, then implementations MUST reject a message of that type that is not signed.

A typical interaction between a trust anchor manager and a cryptographic module will follow the message flow shown in Figure 4-1. Figure 4-1 does not illustrate a flow where an error occurs.


   +---------+                                +----------+
   |         |  Trust Anchor Status Query     |          |
   |         |------------------------------->|          |
   |         |                                |          |
   |         |  Trust Anchor Status Response  |          |
   | Trust   |<-------------------------------| Crypto   |
   | Anchor  |                                | Module   |
   | Manager |  Trust Anchor Update           |          |
   |         |------------------------------->|          |
   |         |                                |          |
   |         |  Trust Anchor Update Confirm   |          |
   |         |<-------------------------------|          |
   |         |                                |          |
   +---------+                                +----------+

            Figure 4-1: Typical TAMP Message Flow

Each TAMP query and update message include an indication of the type of response that is desired. The response can either be terse or verbose. All cryptographic modules MUST support both the terse and verbose responses.

Cryptographic modules MUST be able to process and properly act upon the valid payload of the TAMP Status Query message, the Trust Anchor Update message, the Apex Trust Anchor Update message, and the Sequence Number Adjust message. Cryptographic modules MAY also process and act upon the valid payload of the Community Update message.

Cryptographic modules MUST support generation of the TAMP Status Response message, the Trust Anchor Update Confirm message, the Apex Trust Anchor Update Confirm message, the Sequence Number Adjust Confirm message, and the TAMP Error message. If a cryptographic module supports the Community Update message, then the cryptographic module MUST also support generation of the Community Update Confirm message.



 TOC 

4.1.  TAMP Status Query

The TAMP Status Query message is used to request information about the trust anchors that are currently installed in a cryptographic module, and for the list of communities to which the cryptographic module belongs. The TAMP Status Query message MUST be signed. For the query message to be valid, the cryptographic module MUST be an intended recipient of the query, the sequence number checking described in Section 6 MUST be successful when the TAMP message source is a trust anchor, and the digital signature MUST be validated by the apex trust anchor operational public key, a management trust anchor authorized for the id-ct-TAMP-statusQuery content type, or via a valid X.509 certification path originating with such a trust anchor.

If the digital signature on the TAMP Status Query message is valid, sequence number checking is successful, the signer is authorized for the id-ct-TAMP-statusQuery content type, and the cryptographic module is an intended recipient of the TAMP message, then a TAMP Status Response message MUST be returned. If a TAMP Status Response message is not returned, then a TAMP Error message MUST be returned.

The TAMP Status Query content type has the following syntax:


 PKCS7-CONTENT-TYPE ::= TYPE-IDENTIFIER

 tamp-status-query PKCS7-CONTENT-TYPE ::=
    { TAMPStatusQuery IDENTIFIED BY id-ct-TAMP-statusQuery }

 id-ct-TAMP-statusQuery OBJECT IDENTIFIER ::= { id-tamp 1 }

 TAMPStatusQuery ::= SEQUENCE {
  Version  [0] TAMPVersion DEFAULT v2,
  terse    [1] TerseOrVerbose DEFAULT verbose,
  query    TAMPMsgRef }

 TerseOrVerbose ::= ENUMERATED { terse(1), verbose(2) }

 TAMPMsgRef ::= SEQUENCE {
   target  TargetIdentifier,
   seqNum  SeqNumber }

 TargetIdentifier ::= CHOICE {
   hwModules    [1] HardwareModuleIdentifierList,
   communities  [2] CommunityIdentifierList,
   allModules   [3] NULL }

 HardwareModuleIdentifierList ::= SEQUENCE SIZE (1..MAX) OF
                                  HardwareModules

 HardwareModules ::= SEQUENCE {
   hwType           OBJECT IDENTIFIER,
   hwSerialEntries  SEQUENCE SIZE (1..MAX) OF HardwareSerialEntry }

 HardwareSerialEntry ::= CHOICE {
   all     NULL,
   single  OCTET STRING,
   block   SEQUENCE {
     low    OCTET STRING,
     high   OCTET STRING } }

 CommunityIdentifierList ::= SEQUENCE SIZE (1..MAX) OF Community

 Community ::= OBJECT IDENTIFIER

The fields of TAMPStatusQuery are used as follows:

The fields of TAMPMsgRef are used as follows:

To determine whether a particular cryptographic module serial number is considered part of a specified block, all of the following conditions MUST be met. First, the cryptographic module serial number MUST be the same length as both the high and low octet strings. Second, the cryptographic module serial number MUST be greater than or equal to the low octet string. Third, the cryptographic module serial number MUST be less than or equal to the high octet string.

One octet string is equal to another if they are of the same length and are the same at each octet position. An octet string, S1, is greater than another, S2, where S1 and S2 have the same length, if and only if S1 and S2 have different octets in one or more positions, and in the first such position, the octet in S1 is greater than that in S2, considering the octets as unsigned binary numbers. Note that these octet string comparison definitions are consistent with those in clause 6 of [X.690] (, “ITU-T Recommendation X.690 Information Technology - ASN.1 encoding rules: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules (DER),” 1997.).



 TOC 

4.2.  TAMP Status Query Response

The TAMP Status Response message is a reply by a cryptographic module to a valid TAMP Status Query message. The TAMP Status Response message provides information about the trust anchors that are currently installed in the cryptographic module and the list of communities to which the cryptographic module belongs, if any. The TAMP Status Response message MAY be signed or unsigned. A TAMP Status Response message MUST be signed if the cryptographic module is capable of signing it.

The TAMP Status Response content type has the following syntax:


 tamp-status-response PKCS7-CONTENT-TYPE ::=
    { TAMPStatusResponse IDENTIFIED BY id-ct-TAMP-statusResponse }

 id-ct-TAMP-statusResponse OBJECT IDENTIFIER ::= { id-tamp 2 }

 TAMPStatusResponse ::= SEQUENCE {
   version   [0] TAMPVersion DEFAULT v2,
   query     TAMPMsgRef,
   response  StatusResponse }

 StatusResponse ::= CHOICE {
   terseResponse          [0] TerseStatusResponse,
   verboseResponse        [1] VerboseStatusResponse }

 TerseStatusResponse ::= SEQUENCE {
   taKeyIds               KeyIdentifiers,
   communities            CommunityIdentifierList OPTIONAL }

 KeyIdentifiers ::= SEQUENCE SIZE (1..MAX) OF KeyIdentifier

 VerboseStatusResponse ::= SEQUENCE {
   taInfo                 TrustAnchorInfoList,
   continPubKeyDecryptAlg AlgorithmIdentifier,
   communities            CommunityIdentifierList OPTIONAL }

 TrustAnchorInfoList ::= SEQUENCE SIZE (1..MAX) OF TrustAnchorInfo

The fields of TAMPStatusResponse are used as follows:

The fields of TerseStatusResponse are used as follows:

The fields of VerboseStatusResponse are used as follows:

The fields of TrustAnchorInfo are described in Section 3.



 TOC 

4.3.  Trust Anchor Update

The Trust Anchor Update message is used to add, remove, and change management and identity trust anchors. The Trust Anchor Update message cannot be used to update the apex trust anchor. The Trust Anchor Update message MUST be signed. For a Trust Anchor Update message to be valid, the cryptographic module MUST be an intended receipient of the update, the sequence number checking described in Section 6 MUST be successful when the TAMP message source is a trust anchor, and the digital signature MUST be validated using the apex trust anchor operational public key, a management trust anchor authorized for the id-ct-TAMP-update content type, or via an authorized X.509 certification path originating with such a trust anchor.

If the digital signature on the Trust Anchor Update message is valid, sequence number checking is successful, the signer is authorized for the id-ct-TAMP-update content type, and the cryptographic module is an intended recipient of the TAMP message, then the cryptographic module MUST perform the specified updates and return a Trust Anchor Update Confirm message. If a Trust Anchor Update Confirm message is not returned, then a TAMP Error message MUST be returned.

The Trust Anchor Update content type has the following syntax:


 tamp-update PKCS7-CONTENT-TYPE ::=
    { TAMPUpdate IDENTIFIED BY id-ct-TAMP-update }

 id-ct-TAMP-update OBJECT IDENTIFIER ::= { id-tamp 3 }

  TAMPUpdate ::= SEQUENCE {
    version  [0] TAMPVersion DEFAULT v2,
    terse    [1] TerseOrVerbose DEFAULT verbose,
    msgRef   TAMPMsgRef,
    updates  SEQUENCE SIZE (1..MAX) OF TrustAnchorUpdate }

 TrustAnchorUpdate ::= CHOICE {
   add     [1] EXPLICIT TrustAnchorInfo,
   remove  [2] PublicKeyInfo,
   change  [3] TrustAnchorChangeInfo }

 TrustAnchorChangeInfo ::= SEQUENCE {
   pubKey      PublicKeyInfo,
   keyId       KeyIdentifier OPTIONAL,
   mgmtTAType  [0] MgmtTrustAnchorInfo OPTIONAL,
   taTitle     [1] TrustAnchorTitle OPTIONAL,
   certPath    [2] CertPathControls OPTIONAL }

The fields of TAMPUpdate are used as follows:

The TrustAnchorUpdate is a choice of three structures, and each alternative represents one of the three possible actions: add, remove, and change. A description of the syntax associated with each of these actions follows:

The fields of TrustAnchorChangeInfo are used as follows:



 TOC 

4.4.  Trust Anchor Update Confirm

The Trust Anchor Update Confirm message is a reply by a cryptographic module to a valid Trust Anchor Update message. The Trust Anchor Update Confirm message provides success and failure information for each of the requested updates. The Trust Anchor Update Confirm message MAY be signed or unsigned. A Trust Anchor Update Confirm message MUST be signed if the cryptographic module is capable of signing it.

The Trust Anchor Update Confirm content type has the following syntax:


 tamp-update-confirm PKCS7-CONTENT-TYPE ::=
    { TAMPUpdateConfirm IDENTIFIED BY id-ct-TAMP-updateConfirm }

 id-ct-TAMP-updateConfirm OBJECT IDENTIFIER ::= { id-tamp 4 }

 TAMPUpdateConfirm ::= SEQUENCE {
   version  [0] TAMPVersion DEFAULT v2,
   update   TAMPMsgRef,
   confirm  UpdateConfirm }

 UpdateConfirm ::= CHOICE
   terseConfirm    [0] TerseUpdateConfirm,
   verboseConfirm  [1] VerboseUpdateConfirm }

 TerseUpdateConfirm ::= StatusCodeList

 StatusCodeList ::= SEQUENCE SIZE (1..MAX) OF StatusCode

 VerboseUpdateConfirm ::= SEQUENCE {
   status   StatusCodeList,
   taInfo   TrustAnchorInfoList }

The fields of TAMPUpdateConfirm are used as follows:

The TerseUpdateConfirm contains a sequence of status codes, one for each TrustAnchorUpdate structure in the Trust Anchor Update message. The status codes appear in the same order as the TrustAnchorUpdate structures to which they apply, and the number of elements in the status code list MUST be the same as the number of elements in the trust anchor update list. Each of the status codes is discussed in Section 5.

The fields of VerboseUpdateConfirm are used as follows:



 TOC 

4.5.  Apex Trust Anchor Update

The Apex Trust Anchor Update message replaces both the operational and the contingency public keys associated with the apex trust anchor. Each cryptographic module has exactly one apex trust anchor. Since the apex trust anchor represents the ultimate authority over the cryptographic module, no constraints are associated with the apex trust anchor. The public key identifier of the operational public key is used to identify the apex trust anchor in subsequent TAMP messages. The digital signature on the Apex Trust Anchor Update message is validated with either the current operational public key or the current contingency public key. For the Apex Trust Anchor Update message that is validated with the operational public key to be valid, the cryptographic module MUST be a target of the update, the sequence number MUST be larger than the most recently stored sequence number for the operational public key, and the digital signature MUST be validated directly with the operational public key. That is, no delegation via a certification path is permitted. For the Apex Trust Anchor Update message that is validated with the contingency public key to be valid, the cryptographic module MUST be a target of the update, the provided decryption key MUST properly decrypt the contingency public key, and the digital signature MUST be validated directly with the decrypted contingency public key. Again, no delegation via a certification path is permitted.

If the Apex Trust Anchor Update message is validated using the operational public key, then sequence number processing is handled normally, as described in Section 6. If the Apex Trust Anchor Update message is validated using the contingency public key, then the TAMPMsgRef sequence number MUST contain a zero value. A sequence number for subsequent messages that will be validated with the new operational public key can optionally be provided. If no value is provided, then the cryptographic module MUST be prepared to accept any sequence number in the next TAMP message validated with the newly-installed apex trust anchor operational public key. If the Apex Trust Anchor Update message is valid and the clearTrustAnchors flag is set to TRUE, then all of the management and identity trust anchors stored in the cryptographic module MUST be deleted. That is, the new apex trust anchor MUST be the only trust anchor remaining in the cryptographic module. If the Apex Trust Anchor Update message is valid and the clearCommunities flag is set to TRUE, then all community identifiers stored in the cryptographic module MUST be deleted.

The SignedData structure includes a sid value, and it identifies the apex trust anchor public key that will be used to validate the digital signature on this TAMP message. The public key identifier for the operational public key is known in advance, and it is stored as part of the apex trust anchor. The public key identifier for the contingency public key is not known in advance; however, the presence of the unsigned attribute containing the symmetric key needed to decrypt the contingency public key unambiguously indicates that the TAMP message signer used the contingency private key to sign the Apex Trust Anchor Update message.

If the digital signature on the Apex Trust Anchor Update message is valid using either the apex trust anchor operational public key or the apex trust anchor contingency public key, sequence number checking is successful, and the cryptographic module is an intended recipient of the TAMP message, then the cryptographic module MUST update the apex trust anchor and return an Apex Trust Anchor Update Confirm message. If an Apex Trust Anchor Update Confirm message is not returned, then a TAMP Error message MUST be returned. Note that the sequence number MUST be zero if the Apex Trust Anchor Update message is validated with the apex trust anchor contingency public key.

The Apex Trust Anchor Update content type has the following syntax:


 tamp-apex-update PKCS7-CONTENT-TYPE ::=
    { TAMPApexUpdate IDENTIFIED BY id-ct-TAMP-apexUpdate }

 id-ct-TAMP-apexUpdate OBJECT IDENTIFIER ::= { id-tamp 5 }

 TAMPApexUpdate ::= SEQUENCE {
   version            [0] TAMPVersion DEFAULT v2,
   terse              [1] TerseOrVerbose DEFAULT verbose,
   msgRef             TAMPMsgRef,
   clearTrustAnchors  BOOLEAN,
   clearCommunities   BOOLEAN,
   apexTA             TrustAnchorInfo }

The fields of TAMPApexUpdate are used as follows:



 TOC 

4.6.  Apex Trust Anchor Update Confirm

The Apex Trust Anchor Update Confirm message is a reply by a cryptographic module to a valid Apex Trust Anchor Update message. The Apex Trust Anchor Update Confirm message provides success or failure information for the apex trust anchor update. The Apex Trust Anchor Update Confirm message MAY be signed or unsigned. An Apex Trust Anchor Update Confirm message MUST be signed if the cryptographic module is capable of signing it.

The Apex Trust Anchor Update Confirm content type has the following syntax:


 tamp-apex-update-confirm PKCS7-CONTENT-TYPE ::=
    { TAMPApexUpdateConfirm IDENTIFIED BY
      id-ct-TAMP-apexUpdateConfirm }

 id-ct-TAMP-apexUpdateConfirm OBJECT IDENTIFIER ::= { id-tamp 6 }

 TAMPApexUpdateConfirm ::= SEQUENCE {
   version      [0] TAMPVersion DEFAULT v2,
   apexReplace  TAMPMsgRef,
   apexConfirm  ApexUpdateConfirm }

 ApexUpdateConfirm ::= CHOICE {
   terseApexConfirm    [0] TerseApexUpdateConfirm,
   verboseApexConfirm  [1] VerboseApexUpdateConfirm }

 TerseApexUpdateConfirm ::= StatusCode

 VerboseApexUpdateConfirm ::= SEQUENCE {
   status                  StatusCode,
   taInfo                  TrustAnchorInfoList,
   communities             CommunityIdentifierList OPTIONAL }

The fields of TAMPApexUpdateConfirm are used as follows:

The TerseApexUpdateConfirm contains a single status code, indicating the success or failure of the apex trust anchor update. If the apex trust anchor update failed, then the status code provides the reason for the failure. Each of the status codes is discussed in Section 5.

The fields of VerboseApexUpdateConfirm are used as follows:



 TOC 

4.7.  Community Update

The cryptographic module maintains a list of identifiers for the communities of which it is a member. The Community Update message can be used to remove or add community identifiers from this list. The Community Update message MUST be signed. For the Community Update message to be valid, the cryptographic module MUST be a target of the update, the sequence number checking described in Section 6 MUST be successful when the TAMP message source is a trust anchor, and the digital signature MUST be validated by the apex trust anchor operational public key, a management trust anchor authorized for the id-ct-TAMP-communityUpdate content type, or via an X.509 certification path originating with such a trust anchor.

If the cryptographic module supports the Community Update message, the digital signature on the Community Update message is valid, sequence number checking is successful, the signer is authorized for the id-ct-TAMP-communityUpdate content type, and the cryptographic module is an intended recipient of the TAMP message, then the cryptographic module MUST make the specified updates and return a Community Update Confirm message. If a Community Update Confirm message is not returned, then, a TAMP Error message MUST be returned.

The Community Update message contains a batch of updates, and all of the updates MUST be accepted for the cryptographic module to return a successful Community Update Confirm message. The remove updates, if present, MUST be processed before the add updates. This approach prevents community identifiers that are intended to be mutually exclusive from being installed by a successful addition and a failed removal.

The Community Update content type has the following syntax:


 tamp-community-update PKCS7-CONTENT-TYPE ::=
    { TAMPCommunityUpdate IDENTIFIED BY id-ct-TAMP-communityUpdate }

 id-ct-TAMP-communityUpdate OBJECT IDENTIFIER ::= { id-tamp 7 }

 TAMPCommunityUpdate ::= SEQUENCE {
   version  [0] TAMPVersion DEFAULT v2,
   terse    [1] TerseOrVerbose DEFAULT verbose,
   msgRef   TAMPMsgRef,
   updates  CommunityUpdates }

 CommunityUpdates ::= SEQUENCE {
   add     [1] CommunityIdentifierList OPTIONAL,
   remove  [2] CommunityIdentifierList OPTIONAL }
    -- At least one MUST be present

The fields of TAMPCommunityUpdate are used as follows:

The CommunityUpdates is a sequence of two OPTIONAL sequences, but at least one of these sequences MUST be present. The first sequence contains community identifiers to be removed, and if there are none, it is absent. The second sequence contains community identifiers to be added, and if there are none, it is absent. The remove updates, if present, MUST be processed before the add updates. An error is generated if any of the requested removals or additions cannot be accomplished. However, requests to remove community identifiers that are not present are treated as successful removals. Likewise, requests to add community identifiers that are already present are treated as successful additions. If an error is generated, the cryptographic module community list MUST NOT be changed.

A description of the syntax associated with each of these actions follows:



 TOC 

4.8.  Community Update Confirm

The Community Update Confirm message is a reply by a cryptographic module to a valid Community Update message. The Community Update Confirm message provides success or failure information for the requested updates. Success is returned only if the whole batch of updates is successfully processed. If any of the requested updates cannot be performed, then a failure is indicated, and the set of community identifiers stored in the cryptographic module is unchanged. The Community Update Confirm message MAY be signed or unsigned. A Community Update Confirm message MUST be signed if the cryptographic module is capable of signing it.

The Community Update Confirm content type has the following syntax:


 tamp-community-update-confirm PKCS7-CONTENT-TYPE ::=
    { TAMPCommunityUpdateConfirm IDENTIFIED BY
      id-ct-TAMP-communityUpdateConfirm }

 id-ct-TAMP-communityUpdateConfirm OBJECT IDENTIFIER ::=
    { id-tamp 8 }

 TAMPCommunityUpdateConfirm ::= SEQUENCE {
   version      [0] TAMPVersion DEFAULT v2,
   update       TAMPMsgRef,
   commConfirm  CommunityConfirm }

 CommunityConfirm ::= CHOICE {
   terseCommConfirm     [0] TerseCommunityConfirm,
   verboseCommConfirm  [1] VerboseCommunityConfirm }

 TerseCommunityConfirm ::= StatusCode

 VerboseCommunityConfirm ::= SEQUENCE {
   status       StatusCode,
   communities  CommunityIdentifierList OPTIONAL }

The fields of TAMPCommunityUpdateConfirm are used as follows:

The TerseCommunityConfirm contains a single status code, indicating the success or failure of the Community Update message has been processed. If the community update failed, then the status code indicates the reason for the failure. Each of the status codes is discussed in Section 5.

The fields of VerboseCommunityConfirm are used as follows:



 TOC 

4.9.  Sequence Number Adjust

The cryptographic module maintains the current sequence number for the apex trust anchor and each management trust anchor. Sequence number processing is discussed in Section 6. The Sequence Number Adjust message can be used provide the most recently used sequence number to one or more cryptographic modules, thereby reducing the possibility of replay. The Sequence Number Adjust message MUST be signed. For the Sequence Number Adjust message to be valid, the cryptographic module MUST be an intended recipient of the Sequence Number Adjust message, the sequence number MUST be equal to or larger than the most recently stored sequence number for the originating trust anchor, and the digital signature MUST be validated by the apex trust anchor operational public key or a management trust anchor that is authorized for the id-ct-TAMP-seqNumAdjust content type.

If the digital signature on the Sequence Number Adjust message is valid, the sequence number is equal to or larger than the most recently stored sequence number for the originating trust anchor, the signer is authorized for the id-ct-TAMP-seqNumAdjust content type, and the cryptographic module is an intended recipient of the TAMP message, then the cryptographic module MUST update the sequence number associated with the originating trust anchor and return a Sequence Number Adjust Confirm message. If a Sequence Number Adjust Confirm message is not returned, then a TAMP Error message MUST be returned.

The Sequence Number Adjust message contains an adjustment for the sequence number of the TAMP message signer.

The Sequence Number Adjust content type has the following syntax:


 tamp-sequence-number-adjust PKCS7-CONTENT-TYPE ::=
    { SequenceNumberAdjust IDENTIFIED BY id-ct-TAMP-seqNumAdjust }

 id-ct-TAMP-seqNumAdjust OBJECT IDENTIFIER ::= { id-tamp 10 }

 SequenceNumberAdjust ::= SEQUENCE {
   Version  [0] TAMPVersion DEFAULT v2,
   msgRef   TAMPMsgRef }

The fields of SequenceNumberAdjust are used as follows:



 TOC 

4.10.  Sequence Number Adjust Confirm

The Sequence Number Adjust Confirm message is a reply by a cryptographic module to a valid Sequence Number Adjust message. The Sequence Number Adjust Confirm message provides success or failure information. Success is returned only if the sequence number for the trust anchor that signed the Sequence Number Adjust message originator is adjusted. If the sequence number cannot be adjusted, then a failure is indicated, and the sequence number stored in the cryptographic module is unchanged. The Sequence Number Adjust Confirm message MAY be signed or unsigned. A Sequence Number Adjust Confirm message MUST be signed if the cryptographic module is capable of signing it.

The Sequence Number Adjust Confirm content type has the following syntax:


 tamp-sequence-number-adjust-confirm PKCS7-CONTENT-TYPE ::=
    { SequenceNumberAdjustConfirm IDENTIFIED BY
      id-ct-TAMP-seqNumAdjustConfirm }

 id-ct-TAMP-seqNumAdjustConfirm OBJECT IDENTIFIER ::=
    { id-tamp 11 }

 SequenceNumberAdjustConfirm ::= SEQUENCE {
   version  [0] TAMPVersion DEFAULT v2,
   adjust   TAMPMsgRef,
   status   StatusCode }

The fields of SequenceNumberAdjustConfirm are used as follows:



 TOC 

4.11.  TAMP Error

The TAMP Error message is a reply by a cryptographic module to any invalid TAMP message. The TAMP Error message provides an indication of the reason for the error. The TAMP Error message MAY be signed or unsigned. A TAMP Error message MUST be signed if the cryptographic module is capable of signing it.

The object identifier names the TAMP Error message content:


 tamp-error PKCS7-CONTENT-TYPE ::=
    { TAMPError IDENTIFIED BY id-ct-TAMP-error }

 id-ct-TAMP-error OBJECT IDENTIFIER ::= { id-tamp 9 }

 TAMPError ::= SEQUENCE {
   version  [0] TAMPVersion DEFAULT v2,
   msgType  OBJECT IDENTIFIER,
   status   StatusCode,
   msgRef   TAMPMsgRef OPTIONAL }

The fields of TAMPError are used as follows:



 TOC 

5.  Status Codes

The Trust Anchor Update Confirm, the Apex Trust Anchor Update Confirm, the Community Update Confirm, the Sequence Number Adjust Confirm, and the TAMP Error messages include status codes. The syntax for the status codes is:


  StatusCode ::= ENUMERATED {
   success                            (0),
   decodeFailure                      (1),
   badContentInfo                     (2),
   badSignedData                      (3),
   badEncapContent                    (4),
   badCertificate                     (5),
   badSignerInfo                      (6),
   badSignedAttrs                     (7),
   badUnsignedAttrs                   (8),
   missingContent                     (9),
   noTrustAnchor                     (10),
   notAuthorized                     (11),
   badDigestAlgorithm                (12),
   badSignatureAlgorithm             (13),
   unsupportedKeySize                (14),
   unsupportedParameters             (15),
   signatureFailure                  (16),
   insufficientMemory                (17),
   unsupportedTAMPMsgType            (18),
   apexTAMPAnchor                    (19),
   improperTAAddition                (20),
   seqNumFailure                     (21),
   contingencyPublicKeyDecrypt       (22),
   incorrectTarget                   (23),
   communityUpdateFailed             (24),
   trustAnchorNotFound               (25),
   unsupportedTAAlgorithm            (26),
   unsupportedTAKeySize              (27),
   unsupportedContinPubKeyDecryptAlg (28),
   missingSignature                  (29),
   resourcesBusy                     (30),
   versionNumberMismatch             (31),
   missingPolicySet                  (32),
   revokedCertificate                (33),
   other                            (127) }


The various values of StatusCode are used as follows:



 TOC 

6.  Sequence Number Processing

The sequence number processing facilities in TAMP represent a balance between replay protection, operational considerations, and cryptographic module memory management. The goal is to provide replay protection without making TAMP difficult to use, creating an environment where surprising error conditions occur on a regular basis, or imposing onerous memory management requirements on implementations. This balance is achieved by performing sequence number checking on TAMP messages that are signed directly by a trust anchor, and skipping these checks whenever the TAMP message originator is represented by a certificate.

The TAMP Status Query, Trust Anchor Update, Apex Trust Anchor Update, Community Update, and Sequence Number Adjust messages include a sequence number. This single-use identifier is used to match a TAMP message with the response to that TAMP message. When the TAMP message is signed directly by a trust anchor, the sequence number is also used to detect TAMP message replay.

To provide replay protection, each TAMP message originator MUST treat the sequence number as a monotonically increasing non-negative integer. The sequence number counter is associated with the signing operation performed by the private key. The cryptographic module MUST ensure that a newly received TAMP message that is validated directly by a trust anchor public key contains a sequence number that is greater than the most recent successfully processed TAMP message from that originator. Note that the Sequence Number Adjust message is considered valid if the sequence number is greater than or equal to the most recent successfully processed TAMP message from that originator. If the sequence number in a received TAMP message does not meet these conditions, then the cryptographic module MUST reject the TAMP message, returning a sequence number failure (seqNumFailure) error.

Whenever a trust anchor is authorized for TAMP messages, either as a newly installed trust anchor or as a modification to an existing trust anchor, if a sequence number value is not provided in the Trust Anchor Update message, memory MUST be allocated for the sequence number and set to zero. The first TAMP message signed by that trust anchor is not rejected based on sequence number checks, and the sequence number from that first TAMP message is stored. The sequence number for that trust anchor could also be updated by the OPTIONAL sequence number field of a Trust Anchor Update message that is received after the trust anchor is installed. The TAMP message recipient MUST maintain a database of the most recent sequence number from a successfully processed TAMP message from each trust anchor. The index for this database is the trust anchor public key. This could be the apex trust anchor operational public key or a management trust anchor public key. In the first case, the apex trust anchor operational public key is used directly to validate the TAMP message digital signature. In the second case, a management trust anchor public key is used directly to validate the TAMP message digital signature.

Sequence number values MUST be 64-bit non-negative integers. Since ASN.1 encoding of an INTEGER always includes a sign bit, a TAMP message signer can generate 9,223,372,036,854,775,807 TAMP messages before exhausting the 64-bit sequence number space, before which the TAMP message signer MUST transition to a different public/private key pair. The ability to reset a sequence number provided by the Trust Anchor Update and Sequence Number Adjust messages is not intended to avoid the transition to a different key pair; rather, it is intended to aid recovery from operational errors. A relatively small non-volatile storage requirement is imposed on the cryptographic module for the apex trust anchor and each management trust anchor.

When the apex trust anchor or a management trust anchor is replaced or removed from the cryptographic module, the associated sequence number storage SHOULD be reclaimed.



 TOC 

7.  Subordination Processing

The apex trust anchor is unconstrained, which means that subordination checking is not performed on Trust Anchor Update messages signed with the apex trust anchor operational public key. Subordination checking is performed as part of the validation process of all other Trust Anchor Update messages.

For a Trust Anchor Update message that is not signed with the apex trust anchor operational public key to be valid, the digital signature MUST be validated using a management trust anchor associated with the id-ct-TAMP-update content type, either directly or via an X.509 certification path originating with the apex trust anchor operational public key or such a management trust anchor. The following subordination checks MUST also be performed as part of validation.

Each Trust Anchor Update message contains one or more individual updates, each of which is used to add, modify or remove a trust anchor. For each individual update the privileges of the TAMP message signer MUST be greater than or equal to the privileges of the trust anchor in the update. The privileges of the TAMP message signer and the to-be-updated trust anchor are determined based on the applicable CMS Content Constraints. Specifically, the privileges of the TAMP message signer are determined as described in section 3 of [CCC] (Housley, R. and C. Wallace, “Cryptographic Message Syntax (CMS) Content Signature Constraints X.509 Certificate Extension,” in progress.) passing the special value anyContentType and an empty set of attributes as input; the privileges of the to-be-updated trust anchor are determined as described below. If the privileges of a trust anchor in an update exceed the privileges of the signer, that update MUST be rejected. Each update is considered and accepted or rejected individually without regard to other updates in the TAMP message. The privileges of the to-be-updated trust anchors are determined as follows:

The following steps can be used to determine if a Trust Anchor Update message signer is authorized to manage each to-be-updated trust anchor contained in a Trust Anchor Update message.

Once these steps are completed, if the update has not been rejected, then the message signer is authorized to manage the to-be-updated trust anchor.

Note that a management trust anchor that has only the id-ct-TAMP-update permitted content type is useful only for managing identity trust anchors. It can sign a Trust Anchor Update message, but it cannot impact a management trust anchor that is associated with any other content type.



 TOC 

8.  Implementation Considerations

A public key identifier is used to identify a TAMP message signer. Since there is no guarantee that the same public key identifier is not associated with more than one public key, implementations MUST be prepared for one or more trust anchor to have the same public key identifier. In practical terms, this means that when a digital signature validation fails, the implementation MUST see if there is another trust anchor with the same public key identifier that can be used to validate the digital signature. While duplicate public key identifiers are expected to be rare, implementations MUST NOT fail to find the correct trust anchor when they do occur.

An X.500 distinguished name is used to identify certificate issuers and certificate subjects. The same X.500 distinguished name can be associated with more than one trust anchor. However, the trust anchor public key will be different. The probability that two trust anchors will have the same X.500 distinguished name and the same public key identifier but a different public key is diminishingly small. Therefore, the authority key identifier certificate extension can be used to resolve X.500 distinguished name collisions.



 TOC 

9.  Security Considerations

The majority of this specification is devoted to the syntax and semantics of TAMP messages. It relies on other specifications, especially [RFC3852] (Housley, R., “Cryptographic Message Syntax (CMS),” July 2004.) and [RFC3280] (Housley, R., Polk, W., Ford, W., and D. Solo, “Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile,” April 2002.), for the syntax and semantics of CMS protecting content types and X.509 certificates, respectively. Since TAMP messages that change the trust anchor state of a cryptographic module are always signed by a Trust Anchor Manager, no further data integrity or data origin authentication mechanisms are needed; however, no confidentiality for these messages is provided. Similarly, certificates are digitally signed, and no additional data integrity or data origin authentication mechanisms are needed. Trust anchor configurations, Trust Anchor Manager certificates, and cryptographic module certificates are not intended to be sensitive. As a result, this specification does not provide for confidentiality of TAMP messages.

Security factors outside the scope of this specification greatly affect the assurance provided. The procedures used by certification authorities (CAs) to validate the binding of the subject identity to their public key greatly affect the assurance associated with the resulting certificate. This is particularly important when issuing certificates to other CAs. In the context of TAMP, the issuance of an end entity certificate under a management trust anchor is an act of delegation. However, such end entities cannot further delegate. On the other hand, issuance of a CA certificate under a management trust anchor is an act of delegation where the CA can perform further delegation. The scope of the delegation can be constrained by including a CMS content constraints certificate extension [CCC] (Housley, R. and C. Wallace, “Cryptographic Message Syntax (CMS) Content Signature Constraints X.509 Certificate Extension,” in progress.) in a CA certificate.

X.509 certification path construction involves comparison of X.500 distinguished names. Inconsistent application of name comparison rules can result in acceptance of invalid X.509 certification paths or rejection of valid ones. Name comparison can be extremely complex. To avoid imposing this complexity on cryptographic modules, any certificate profile used with TAMP SHOULD employ simple name structures and impose rigorous restrictions on acceptable distinguished names, including the way that they are encoded. The goal of that certificate profile should be to enable simple binary comparison. That is, case conversion, character set conversion, white space compression, and leading and trailing white space trimming SHOULD be avoided.

Some digital signature algorithms require the generation of random one-time values. For example, when generating a DSA digital signature, the signer MUST generate a random k value [DSS] (, “FIPS Pub 186: Digital Signature Standard,” May 1994.). Also, the generation of public/private key pairs relies on random numbers. The use of an inadequate random number generator (RNG) or an inadequate pseudo-random number generator (PRNG) to generate such cryptographic values can result in little or no security. An attacker may find it much easier to reproduce the random number generation environment, searching the resulting small set of possibilities, rather than brute force searching the whole space.

Compromise of an identity trust anchor private key permits unauthorized parties to issue certificates that will be acceptable to all cryptographic modules configured with the corresponding identity trust anchor. The unauthorized private key holder will be limited by the certification path controls associated with the identity trust anchor. For example, clearance constraints in the identity trust anchor will determine the clearances that will be accepted in certificates that are issued by the unauthorized private key holder.

Compromise of a management trust anchor private key permits unauthorized parties to generate signed messages that will be acceptable to all cryptographic modules configured with the corresponding management trust anchor. All devices that include the compromised management trust anchor can be configured as desired by the unauthorized private key holder within the limits of the subordination checks described in Section 7. If the management trust anchor is associated with content types other than TAMP, then the unauthorized private key holder can generate signed messages of that type. For example, if the management trust anchor is associated with firmware packages, then the unauthorized private key holder can install different firmware into the cryptographic module.

Compromise of the Apex Trust Anchor operational private key permits unauthorized parties to generate signed messages that will be acceptable to all cryptographic modules configured with the corresponding apex trust anchor. All devices that include that apex trust anchor can be configured as desired by the unauthorized private key holder, and the unauthorized private key holder can generate signed messages of any content type. The contingency private key offers a potential way to recover from such a compromise.

The compromise of a CA’s private key leads to the same type of problems as the compromise of an identity or a management trust anchor private key. The unauthorized private key holder will be limited by the certification path controls associated with the trust anchor. If the CA is subordinate to a management trust anchor, the scope of potential damage caused by a private key compromise is also limited by the CMS content constraints certificate extension [CCC] (Housley, R. and C. Wallace, “Cryptographic Message Syntax (CMS) Content Signature Constraints X.509 Certificate Extension,” in progress.) in the CA certificate, the CMS content constraints on any superior CA certificates, and the CMS content constraints on the parent management trust anchor.

The compromise of an end entity private key leads to the same type of problems as the compromise of an identity or a management trust anchor private key, except that the end entity is unable to issue any certificates. The unauthorized private key holder will be limited by the certification path controls associated with the trust anchor. If the certified public key is subordinate to a management trust anchor, the scope of potential damage caused by a private key compromise is also limited by the CMS content constraints certificate extension [CCC] (Housley, R. and C. Wallace, “Cryptographic Message Syntax (CMS) Content Signature Constraints X.509 Certificate Extension,” in progress.) in the end entity certificate, the CMS content constraints on any superior CA certificates, and the CMS content constraints on the parent management trust anchor.

Compromise of a cryptographic module’s digital signature private key permits unauthorized parties to generate signed TAMP response messages, masquerading as the cryptographic module.

Premature disclosure of the key-encryption key used to encrypt the apex trust anchor contingency public key may result in early exposure of the apex trust anchor contingency public key.

To implement TAMP, a cryptographic module needs to be able to parse messages and certificates. Care must be taken to ensure that there are no implementation defects in the TAMP message parser or the processing that acts on the message content. A validation suite is one way to increase confidence in the parsing of TAMP messages, CMS content types, signed attributes, and certificates.



 TOC 

10.  IANA Considerations

There are no IANA considerations. Please delete this section prior to RFC publication.



 TOC 

11.  References



 TOC 

11.1. Normative References

[CCC] Housley, R. and C. Wallace, “Cryptographic Message Syntax (CMS) Content Signature Constraints X.509 Certificate Extension,” in progress.
[ClearConstr] Turner, S., “Clearance and CA Clearance Constraints Certificate Extensions,” in progress.
[RFC2119] Bradner, S., “Key words for use in RFCs to Indicate Requirement Levels,” BCP 14, RFC 2119, March 1997 (TXT, HTML, XML).
[RFC2634] Hoffman, P., “Enhanced Security Services for S/MIME,” RFC 2634, June 1999 (TXT).
[RFC3280] Housley, R., Polk, W., Ford, W., and D. Solo, “Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile,” RFC 3280, April 2002 (TXT).
[RFC3629] Yergeau, F., “UTF-8, a transformation format of ISO 10646,” STD 63, RFC 3629, November 2003 (TXT).
[RFC3852] Housley, R., “Cryptographic Message Syntax (CMS),” RFC 3852, July 2004 (TXT).
[RFC4049] Housley, R., “BinaryTime: An Alternate Format for Representing Date and Time in ASN.1,” RFC 4049, April 2005 (TXT).
[X.680] “ITU-T Recommendation X.680: Information Technology - Abstract Syntax Notation One,” 1997.
[X.690] “ITU-T Recommendation X.690 Information Technology - ASN.1 encoding rules: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules (DER),” 1997.


 TOC 

11.2. Informative References

[DSS] “FIPS Pub 186: Digital Signature Standard,” May 1994.
[PKCS#6] “PKCS #6: Extended-Certificate Syntax Standard, Version 1.5,” November 1993.
[RFC3281] Farrell, S. and R. Housley, “An Internet Attribute Certificate Profile for Authorization,” RFC 3281, April 2002 (TXT).
[RFC4108] Housley, R., “Using Cryptographic Message Syntax (CMS) to Protect Firmware Packages,” RFC 4108, August 2005 (TXT).
[X.208] “ITU-T Recommendation X.208 - Specification of Abstract Syntax Notation One (ASN.1),” 1988.
[X.501] “ITU-T Recommendation X.501 - The Directory - Models,” 1993.
[X.509] “ITU-T Recommendation X.509 - The Directory - Authentication Framework,” 2000.


 TOC 

Appendix A.  ASN.1 Modules

Appendix A.1 provides the normative ASN.1 definitions for the structures described in this specification using ASN.1 as defined in [X.680] (, “ITU-T Recommendation X.680: Information Technology - Abstract Syntax Notation One,” 1997.). Appendix A.2 provides a module using ASN.1 as defined in [X.208] (, “ITU-T Recommendation X.208 - Specification of Abstract Syntax Notation One (ASN.1),” 1988.). The module in A.2 removes usage of newer ASN.1 features that provide support for limiting the types of elements that may appear in certain SEQUENCE and SET constructions. Otherwise, the modules are compatible in terms of encoded representation, i.e., the modules are bits-on-the-wire compatible aside from the limitations on SEQUENCE and SET constituents. A.2 is included as a courtesy to developers using ASN.1 compilers that do not support current ASN.1.



 TOC 

A.1.  ASN.1 Module Using 1993 Syntax


TrustAnchorManagementProtocolVersion2
    { joint-iso-ccitt(2) country(16) us(840) organization(1)
      gov(101) dod(2) infosec(1) modules(0) TBD }

DEFINITIONS IMPLICIT TAGS ::=
BEGIN

IMPORTS
    ATTRIBUTE, Attribute
      FROM InformationFramework -- from [X.501]
        { joint-iso-itu-t(2) ds(5) module(1)
          informationFramework(1) 4 }
    ContentType
      FROM CryptographicMessageSyntax2004 -- [RFC3852]
        { iso(1) member-body(2) us(840) rsadsi(113549)
          pkcs(1) pkcs-9(9) smime(16) modules(0) cms-2004(24) }
    AlgorithmIdentifier, Certificate, Name
      FROM PKIX1Explicit88 -- from [RFC3280]
        { iso(1) identified-organization(3) dod(6) internet(1)
          security(5) mechanisms(5) pkix(7) id-mod(0)
          id-pkix1-explicit(18) }
    CertificatePolicies, KeyIdentifier, NameConstraints
      FROM PKIX1Implicit88 -- from <xref target="RFC3280"/>
        { iso(1) identified-organization(3) dod(6) internet(1)
          security(5) mechanisms(5) pkix(7) id-mod(0)
          id-pkix1-implicit(19) }
    CMSContentConstraints
      FROM CMSContentConstraintsCertExtn-93 -- [CCC]
        { iso(1) identified-organization(3) dod(6) internet(1)
          security(5) mechanisms(5) pkix(7) id-mod(0)
          cmsContentConstraints-93(42) }
    CAClearanceConstraints
       FROM Clearance-CAClearanceConstraints93 -- from [ClearConstr]
        { joint-iso-ccitt(2) country(16) us(840) organization(1)
           gov(101) dod(2) infosec(1) modules(0) 9997 } ;
                 -- Placeholder for TBD

-- Trust Anchor Information

TrustAnchorInfo ::= SEQUENCE {
  version   [0] TAMPVersion DEFAULT v2,
  pubKey    PublicKeyInfo,
  keyId     KeyIdentifier,
  taType    TrustAnchorType,
  taTitle   TrustAnchorTitle OPTIONAL,
  certPath  CertPathControls OPTIONAL }

PublicKeyInfo ::= SEQUENCE {
  algorithm  AlgorithmIdentifier,
  publicKey  BIT STRING }

KeyIdentifier ::= OCTET STRING

TrustAnchorType ::= CHOICE {
  apex   [0] ApexTrustAnchorInfo,
  mgmt   [1] MgmtTrustAnchorInfo,
  ident  [2] NULL }

ApexTrustAnchorInfo ::= SEQUENCE {
  continPubKey  ApexContingencyKey,
  seqNum        SeqNumber OPTIONAL }

ApexContingencyKey ::= SEQUENCE {
  wrapAlgorithm        AlgorithmIdentifier,
  wrappedContinPubKey  OCTET STRING }

SeqNumber ::= INTEGER (0..9223372036854775807)

MgmtTrustAnchorInfo ::= SEQUENCE {
  taUsage  TrustAnchorUsage,
  seqNum   SeqNumber OPTIONAL }

TrustAnchorUsage ::= CMSContentConstraints

CMSContentConstraints ::= ContentTypeConstraintList

ContentTypeConstraintList ::= SEQUENCE SIZE (1..MAX) OF
                          ContentTypeConstraint

ContentTypeConstraint ::= SEQUENCE {
  contentType      ContentType,
  canSource        BOOLEAN DEFAULT TRUE,
  attrConstraints  AttrConstraintList OPTIONAL }

AttrConstraintList ::= SEQUENCE SIZE (1..MAX) OF AttrConstraint

AttrConstraint ::= SEQUENCE {
  attrType    AttributeType,
  attrValues  SET SIZE (1..MAX) OF AttributeValue }

ContentType ::= OBJECT IDENTIFIER

TrustAnchorTitle ::= UTF8String (SIZE (1..64))

CertPathControls ::= SEQUENCE {
  taName          Name,
  selfSigned      [0] Certificate OPTIONAL,
  policySet       [1] CertificatePolicies OPTIONAL,
  policyFlags     [2] CertPolicyFlags OPTIONAL,
  clearanceConstr [3] CAClearanceConstraints OPTIONAL,
  nameConstr      [4] NameConstraints OPTIONAL }

CertPolicyFlags ::= BIT STRING {
  inhibitPolicyMapping    (0),
  requireExplicitPolicy   (1),
  inhibitAnyPolicy        (2) }


-- Object Identifier Arc for TAMP Message Content Types

id-tamp OBJECT IDENTIFIER ::= {
joint-iso-ccitt(2) country(16) us(840) organization(1)
gov(101) dod(2) infosec(1) formats(2) 77 }


-- CMS Content Types

PKCS7-CONTENT-TYPE ::= TYPE-IDENTIFIER

TAMPContentTypes PKCS7-CONTENT-TYPE ::= {
  tamp-status-query |
  tamp-status-response |
  tamp-update |
  tamp-update-confirm |
  tamp-apex-update |
  tamp-apex-update-confirm |
  tamp-community-update |
  tamp-community-update-confirm |
  tamp-sequence-number-adjust |
  tamp-sequence-number-adjust-confirm |
  tamp-error,
  ... -- Expect additional content types --
  }


-- TAMP Status Query Message
tamp-status-query PKCS7-CONTENT-TYPE ::=
  { TAMPStatusQuery IDENTIFIED BY id-ct-TAMP-statusQuery }

id-ct-TAMP-statusQuery OBJECT IDENTIFIER ::= { id-tamp 1 }

TAMPStatusQuery ::= SEQUENCE {
  version         [0] TAMPVersion DEFAULT v2,
  terse           [1] TerseOrVerbose DEFAULT verbose,
  query           TAMPMsgRef }

TAMPVersion ::= INTEGER { v1(1), v2(2) }

TerseOrVerbose ::= ENUMERATED { terse(1), verbose(2) }

TAMPMsgRef ::= SEQUENCE {
  target          TargetIdentifier,
  seqNum          SeqNumber }

TargetIdentifier ::= CHOICE {
  hwModules       [1] HardwareModuleIdentifierList,
  communities     [2] CommunityIdentifierList,
  allModules      [3] NULL }

HardwareModuleIdentifierList ::= SEQUENCE SIZE (1..MAX) OF
                                  HardwareModules

HardwareModules ::= SEQUENCE {
  hwType          OBJECT IDENTIFIER,
  hwSerialEntries SEQUENCE SIZE (1..MAX) OF HardwareSerialEntry }

HardwareSerialEntry ::= CHOICE {
  all             NULL,
  single          OCTET STRING,
  block           SEQUENCE {
   low         OCTET STRING,
   high        OCTET STRING } }

CommunityIdentifierList ::= SEQUENCE SIZE (1..MAX) OF Community

Community ::= OBJECT IDENTIFIER


-- TAMP Status Response Message

tamp-status-response PKCS7-CONTENT-TYPE ::=
  { TAMPStatusResponse IDENTIFIED BY id-ct-TAMP-statusResponse }

id-ct-TAMP-statusResponse OBJECT IDENTIFIER ::= { id-tamp 2 }

TAMPStatusResponse ::= SEQUENCE {
  version               [0] TAMPVersion DEFAULT v2,
  query                 TAMPMsgRef,
  response              StatusResponse }

StatusResponse ::= CHOICE {
  terseResponse         [0] TerseStatusResponse,
  verboseResponse       [1] VerboseStatusResponse }

TerseStatusResponse ::= SEQUENCE {
  taKeyIds              KeyIdentifiers,
  communities           CommunityIdentifierList OPTIONAL }

KeyIdentifiers ::= SEQUENCE SIZE (1..MAX) OF KeyIdentifier

VerboseStatusResponse ::= SEQUENCE {
  taInfo                 TrustAnchorInfoList,
  continPubKeyDecryptAlg AlgorithmIdentifier,
  communities            CommunityIdentifierList OPTIONAL }

TrustAnchorInfoList ::= SEQUENCE SIZE (1..MAX) OF TrustAnchorInfo


-- Trust Anchor Update Message

tamp-update PKCS7-CONTENT-TYPE ::=
  { TAMPUpdate IDENTIFIED BY id-ct-TAMP-update }

id-ct-TAMP-update OBJECT IDENTIFIER ::= { id-tamp 3 }

TAMPUpdate ::= SEQUENCE {
  version         [0] TAMPVersion DEFAULT v2,
  terse           [1] TerseOrVerbose DEFAULT verbose,
  msgRef          TAMPMsgRef,
  updates         SEQUENCE SIZE (1..MAX) OF TrustAnchorUpdate }

TrustAnchorUpdate ::= CHOICE {
  add             [1] EXPLICIT TrustAnchorInfo,
  remove          [2] PublicKeyInfo,
  change          [3] TrustAnchorChangeInfo }

TrustAnchorChangeInfo ::= SEQUENCE {
  pubKey          PublicKeyInfo,
  keyId           KeyIdentifier OPTIONAL,
  taType          [0] TrustAnchorChangeType OPTIONAL,
  taTitle         [1] TrustAnchorTitle OPTIONAL,
  certPath        [2] CertPathControls OPTIONAL }

TrustAnchorChangeType ::= CHOICE {
  mgmt            [1] MgmtTrustAnchorInfo,
  ident           [2] NULL }


-- Trust Anchor Update Confirm Message

tamp-update-confirm PKCS7-CONTENT-TYPE ::=
  { TAMPUpdateConfirm IDENTIFIED BY id-ct-TAMP-updateConfirm }

id-ct-TAMP-updateConfirm OBJECT IDENTIFIER ::= { id-tamp 4 }

TAMPUpdateConfirm ::= SEQUENCE {
  version               [0] TAMPVersion DEFAULT v2,
  update                TAMPMsgRef,
  confirm               UpdateConfirm }

UpdateConfirm ::= CHOICE {
  terseConfirm          [0] TerseUpdateConfirm,
  verboseConfirm        [1] VerboseUpdateConfirm }

TerseUpdateConfirm ::= StatusCodeList

StatusCodeList ::= SEQUENCE SIZE (1..MAX) OF StatusCode

VerboseUpdateConfirm ::= SEQUENCE {
  status                StatusCodeList,
  taInfo                TrustAnchorInfoList }


-- Apex Trust Anchor Update Message

tamp-apex-update PKCS7-CONTENT-TYPE ::=
    { TAMPApexUpdate IDENTIFIED BY id-ct-TAMP-apexUpdate }

id-ct-TAMP-apexUpdate OBJECT IDENTIFIER ::= { id-tamp 5 }

TAMPApexUpdate ::= SEQUENCE {
  version             [0] TAMPVersion DEFAULT v2,
  terse               [1] TerseOrVerbose DEFAULT verbose,
  msgRef              TAMPMsgRef,
  clearTrustAnchors   BOOLEAN,
  clearCommunities    BOOLEAN,
  apexTA              TrustAnchorInfo }


-- Apex Trust Anchor Update Confirm Message

tamp-apex-update-confirm PKCS7-CONTENT-TYPE ::=
  { TAMPApexUpdateConfirm IDENTIFIED BY
      id-ct-TAMP-apexUpdateConfirm }

id-ct-TAMP-apexUpdateConfirm OBJECT IDENTIFIER ::= { id-tamp 6 }

TAMPApexUpdateConfirm ::= SEQUENCE {
  version               [0] TAMPVersion DEFAULT v2,
  apexReplace           TAMPMsgRef,
  apexConfirm           ApexUpdateConfirm }

ApexUpdateConfirm ::= CHOICE {
  terseApexConfirm      [0] TerseApexUpdateConfirm,
  verboseApexConfirm    [1] VerboseApexUpdateConfirm }

TerseApexUpdateConfirm ::= StatusCode

VerboseApexUpdateConfirm ::= SEQUENCE {
  status                 StatusCode,
  taInfo                 TrustAnchorInfoList,
  communities            CommunityIdentifierList OPTIONAL }


-- Community Update Message

tamp-community-update PKCS7-CONTENT-TYPE ::=
  { TAMPCommunityUpdate IDENTIFIED BY id-ct-TAMP-communityUpdate }

id-ct-TAMP-communityUpdate OBJECT IDENTIFIER ::= { id-tamp 7 }

TAMPCommunityUpdate ::= SEQUENCE {
  version         [0] TAMPVersion DEFAULT v2,
  terse           [1] TerseOrVerbose DEFAULT verbose,
  msgRef          TAMPMsgRef,
  updates         CommunityUpdates }

CommunityUpdates ::= SEQUENCE {
  add             [1] CommunityIdentifierList OPTIONAL,
  remove          [2] CommunityIdentifierList OPTIONAL }
  -- At least one must be present


-- Community Update Confirm Message

tamp-community-update-confirm PKCS7-CONTENT-TYPE ::=
  { TAMPCommunityUpdateConfirm IDENTIFIED BY
    id-ct-TAMP-communityUpdateConfirm }

id-ct-TAMP-communityUpdateConfirm OBJECT IDENTIFIER ::=
  { id-tamp 8 }

TAMPCommunityUpdateConfirm ::= SEQUENCE {
  version         [0] TAMPVersion DEFAULT v2,
  update          TAMPMsgRef,
  commConfirm     CommunityConfirm }

CommunityConfirm ::= CHOICE {
  terseCommConfirm      [0] TerseCommunityConfirm,
  verboseCommConfirm    [1] VerboseCommunityConfirm }

TerseCommunityConfirm ::= StatusCode

VerboseCommunityConfirm ::= SEQUENCE {
  status          StatusCode,
  communities     CommunityIdentifierList OPTIONAL }


-- Sequence Number Adjust Message

tamp-sequence-number-adjust PKCS7-CONTENT-TYPE ::=
  { SequenceNumberAdjust IDENTIFIED BY id-ct-TAMP-seqNumAdjust }

id-ct-TAMP-seqNumAdjust OBJECT IDENTIFIER ::= { id-tamp 10 }

SequenceNumberAdjust ::= SEQUENCE {
  version         [0] TAMPVersion DEFAULT v2,
  msgRef          TAMPMsgRef }


-- Sequence Number Adjust Message

tamp-sequence-number-adjust-confirm PKCS7-CONTENT-TYPE ::=
  { SequenceNumberAdjustConfirm IDENTIFIED BY
    id-ct-TAMP-seqNumAdjustConfirm }

id-ct-TAMP-seqNumAdjustConfirm OBJECT IDENTIFIER ::= { id-tamp 11 }

SequenceNumberAdjustConfirm ::= SEQUENCE {
  version         [0] TAMPVersion DEFAULT v2,
  adjust          TAMPMsgRef,
  status          StatusCode }


-- TAMP Error Message

tamp-error PKCS7-CONTENT-TYPE ::=
  { TAMPError IDENTIFIED BY id-ct-TAMP-error }

id-ct-TAMP-error OBJECT IDENTIFIER ::= { id-tamp 9 }

TAMPError ::= SEQUENCE {
  version         [0] TAMPVersion DEFAULT v2,
  msgType         OBJECT IDENTIFIER,
  status          StatusCode,
  msgRef          TAMPMsgRef OPTIONAL }


-- Status Codes

StatusCode ::= ENUMERATED {
  success                            (0),
  decodeFailure                      (1),
  badContentInfo                     (2),
  badSignedData                      (3),
  badEncapContent                    (4),
  badCertificate                     (5),
  badSignerInfo                      (6),
  badSignedAttrs                     (7),
  badUnsignedAttrs                   (8),
  missingContent                     (9),
  noTrustAnchor                     (10),
  notAuthorized                     (11),
  badDigestAlgorithm                (12),
  badSignatureAlgorithm             (13),
  unsupportedKeySize                (14),
  unsupportedParameters             (15),
  signatureFailure                  (16),
  insufficientMemory                (17),
  unsupportedTAMPMsgType            (18),
  apexTAMPAnchor                    (19),
  improperTAAddition                (20),
  seqNumFailure                     (21),
  contingencyPublicKeyDecrypt       (22),
  incorrectTarget                   (23),
  communityUpdateFailed             (24),
  trustAnchorNotFound               (25),
  unsupportedTAAlgorithm            (26),
  unsupportedTAKeySize              (27),
  unsupportedContinPubKeyDecryptAlg (28),
  missingSignature                  (29),
  resourcesBusy                     (30),
  versionNumberMismatch             (31),
  missingPolicySet                  (32),
  other                            (127) }


-- Object Identifier Arc for Attributes

id-attributes OBJECT IDENTIFIER ::= { joint-iso-ccitt(2) country(16)
  us(840) organization(1) gov(101) dod(2) infosec(1) 5 }


-- TAMP Unsigned Attributes

TAMPUnsignedAttributes ATTRIBUTE ::= {
  contingency-public-key-decrypt-key,
  ... -- Expect additional attributes --
  }


-- contingency-public-key-decrypt-key unsigned attribute

contingency-public-key-decrypt-key ATTRIBUTE ::= {
  WITH SYNTAX PlaintextSymmetricKey
  SINGLE VALUE TRUE
  ID id-aa-TAMP-contingencyPublicKeyDecryptKey }

id-aa-TAMP-contingencyPublicKeyDecryptKey OBJECT IDENTIFIER ::= {
  id-attributes 63 }

PlaintextSymmetricKey ::= OCTET STRING


END



 TOC 

A.2.  ASN.1 Module Using 1988 Syntax


TrustAnchorManagementProtocolVersion2_88
   { joint-iso-ccitt(2) country(16) us(840) organization(1)
     gov(101) dod(2) infosec(1) modules(0) 997 }
                 -- Placeholder for TBD

DEFINITIONS IMPLICIT TAGS ::=
BEGIN

IMPORTS
  ContentType
    FROM CryptographicMessageSyntax2004 -- [RFC3852]
      { iso(1) member-body(2) us(840) rsadsi(113549)
        pkcs(1) pkcs-9(9) smime(16) modules(0) cms-2004(24) }
  AlgorithmIdentifier, Certificate, Name, Attribute
    FROM PKIX1Explicit88 -- [RFC3280]
      { iso(1) identified-organization(3) dod(6) internet(1)
        security(5) mechanisms(5) pkix(7) id-mod(0)
        id-pkix1-explicit(18) }
  CertificatePolicies, KeyIdentifier, NameConstraints
    FROM PKIX1Implicit88 -- [RFC3280]
      { iso(1) identified-organization(3) dod(6) internet(1)
        security(5) mechanisms(5) pkix(7) id-mod(0)
        id-pkix1-implicit(19) }
  CMSContentConstraints
    FROM CMSContentConstraintsCertExtn-88 -- [CCC]
      { iso(1) identified-organization(3) dod(6) internet(1)
        security(5) mechanisms(5) pkix(7) id-mod(0)
        cmsContentConstr-88(41) }
  CAClearanceConstraints
    FROM Clearance-CAClearanceConstraints88 -- [ClearConstr]
      { joint-iso-ccitt(2) country(16) us(840) organization(1)
         gov(101) dod(2) infosec(1) modules(0) 9998 } ;
               -- Placeholder for TBD

-- Trust Anchor Information

TrustAnchorInfo ::= SEQUENCE {
  version         [0] TAMPVersion DEFAULT v2,
  pubKey          PublicKeyInfo,
  keyId           KeyIdentifier,
  taType          TrustAnchorType,
  taTitle         TrustAnchorTitle OPTIONAL,
  certPath        CertPathControls OPTIONAL }

PublicKeyInfo ::= SEQUENCE {
  algorithm       AlgorithmIdentifier,
  publicKey       BIT STRING }

TrustAnchorType ::= CHOICE {
  apex            [0] ApexTrustAnchorInfo,
  mgmt            [1] MgmtTrustAnchorInfo,
  ident           [2] NULL }

ApexTrustAnchorInfo ::= SEQUENCE {
  continPubKey    ApexContingencyKey,
  seqNum          SeqNumber OPTIONAL }

ApexContingencyKey ::= SEQUENCE {
  wrapAlgorithm       AlgorithmIdentifier,
  wrappedContinPubKey OCTET STRING }

SeqNumber ::= INTEGER (0.. 9223372036854775807)

MgmtTrustAnchorInfo ::= SEQUENCE {
  taUsage         TrustAnchorUsage,
  seqNum          SeqNumber OPTIONAL }

TrustAnchorUsage ::= CMSContentConstraints

TrustAnchorTitle ::= UTF8String (SIZE (1..64))

CertPathControls ::= SEQUENCE {
  taName          Name,
  selfSigned      [0] Certificate OPTIONAL,
  policySet       [1] CertificatePolicies OPTIONAL,
  policyFlags     [2] CertPolicyFlags OPTIONAL,
  clearanceConstr [3] CAClearanceConstraints OPTIONAL,
  nameConstr      [4] NameConstraints OPTIONAL }

CertPolicyFlags ::= BIT STRING {
  inhibitPolicyMapping    (0),
  requireExplicitPolicy   (1),
  inhibitAnyPolicy        (2) }


-- Object Identifier Arc for TAMP Message Content Types

id-tamp OBJECT IDENTIFIER ::= { joint-iso-ccitt(2) country(16) us(840)
organization(1) gov(101) dod(2) infosec(1) formats(2) 77 }


-- CMS Content Types

-- TAMP Status Query Message

id-ct-TAMP-statusQuery OBJECT IDENTIFIER ::= { id-tamp 1 }

TAMPStatusQuery ::= SEQUENCE {
  version         [0] TAMPVersion DEFAULT v2,
  terse           [1] TerseOrVerbose DEFAULT verbose,
  query           TAMPMsgRef }

TAMPVersion ::= INTEGER { v1(1), v2(2) }

TerseOrVerbose ::= ENUMERATED { terse(1), verbose(2) }

TAMPMsgRef ::= SEQUENCE {
  target          TargetIdentifier,
  seqNum          SeqNumber }

TargetIdentifier ::= CHOICE {
  hwModules       [1] HardwareModuleIdentifierList,
  communities     [2] CommunityIdentifierList,
  allModules      [3] NULL }

HardwareModuleIdentifierList ::= SEQUENCE SIZE (1..MAX) OF
                                  HardwareModules

HardwareModules ::= SEQUENCE {
  hwType          OBJECT IDENTIFIER,
  hwSerialEntries SEQUENCE SIZE (1..MAX) OF HardwareSerialEntry }

HardwareSerialEntry ::= CHOICE {
  all             NULL,
  single          OCTET STRING,
  block           SEQUENCE {
    low         OCTET STRING,
    high        OCTET STRING } }

CommunityIdentifierList ::= SEQUENCE SIZE (1..MAX) OF Community

Community ::= OBJECT IDENTIFIER


-- TAMP Status Response Message

id-ct-TAMP-statusResponse OBJECT IDENTIFIER ::= { id-tamp 2 }

TAMPStatusResponse ::= SEQUENCE {
  version               [0] TAMPVersion DEFAULT v2,
  query                 TAMPMsgRef,
  response              StatusResponse }

StatusResponse ::= CHOICE {
  terseResponse         [0] TerseStatusResponse,
  verboseResponse       [1] VerboseStatusResponse }

TerseStatusResponse ::= SEQUENCE {
  taKeyIds              KeyIdentifiers,
  communities           CommunityIdentifierList OPTIONAL }

KeyIdentifiers ::= SEQUENCE SIZE (1..MAX) OF KeyIdentifier

VerboseStatusResponse ::= SEQUENCE {
  taInfo                 TrustAnchorInfoList,
  continPubKeyDecryptAlg AlgorithmIdentifier,
  communities            CommunityIdentifierList OPTIONAL }

TrustAnchorInfoList ::= SEQUENCE SIZE (1..MAX) OF TrustAnchorInfo


-- Trust Anchor Update Message

id-ct-TAMP-update OBJECT IDENTIFIER ::= { id-tamp 3 }

TAMPUpdate ::= SEQUENCE {
  version         [0] TAMPVersion DEFAULT v2,
  terse           [1] TerseOrVerbose DEFAULT verbose,
  msgRef          TAMPMsgRef,
  updates         SEQUENCE SIZE (1..MAX) OF TrustAnchorUpdate }

TrustAnchorUpdate ::= CHOICE {
  add             [1] EXPLICIT TrustAnchorInfo,
  remove          [2] PublicKeyInfo,
  change          [3] TrustAnchorChangeInfo }

TrustAnchorChangeInfo ::= SEQUENCE {
  pubKey          PublicKeyInfo,
  keyId           KeyIdentifier OPTIONAL,
  mgmtTAType      [0] MgmtTrustAnchorInfo OPTIONAL,
  taTitle         [1] TrustAnchorTitle OPTIONAL,
  certPath        [2] CertPathControls OPTIONAL }


-- Trust Anchor Update Confirm Message

id-ct-TAMP-updateConfirm OBJECT IDENTIFIER ::= { id-tamp 4 }

TAMPUpdateConfirm ::= SEQUENCE {
  version               [0] TAMPVersion DEFAULT v2,
  update                TAMPMsgRef,
  confirm               UpdateConfirm }

UpdateConfirm ::= CHOICE {
  terseConfirm          [0] TerseUpdateConfirm,
  verboseConfirm        [1] VerboseUpdateConfirm }

TerseUpdateConfirm ::= StatusCodeList

StatusCodeList ::= SEQUENCE SIZE (1..MAX) OF StatusCode

VerboseUpdateConfirm ::= SEQUENCE {
  status                StatusCodeList,
  taInfo                TrustAnchorInfoList }


-- Apex Trust Anchor Update Message

id-ct-TAMP-apexUpdate OBJECT IDENTIFIER ::= { id-tamp 5 }

TAMPApexUpdate ::= SEQUENCE {
  version             [0] TAMPVersion DEFAULT v2,
  terse               [1] TerseOrVerbose DEFAULT verbose,
  msgRef              TAMPMsgRef,
  clearTrustAnchors   BOOLEAN,
  apexTA              TrustAnchorInfo }


-- Apex Trust Anchor Update Confirm Message

id-ct-TAMP-apexUpdateConfirm OBJECT IDENTIFIER ::= { id-tamp 6 }

TAMPApexUpdateConfirm ::= SEQUENCE {
  version               [0] TAMPVersion DEFAULT v2,
  apexReplace           TAMPMsgRef,
  apexConfirm           ApexUpdateConfirm }

ApexUpdateConfirm ::= CHOICE {
  terseApexConfirm      [0] TerseApexUpdateConfirm,
  verboseApexConfirm    [1] VerboseApexUpdateConfirm }

TerseApexUpdateConfirm ::= StatusCode

VerboseApexUpdateConfirm ::= SEQUENCE {
  status                 StatusCode,
  taInfo                 TrustAnchorInfoList,
  communities            CommunityIdentifierList OPTIONAL }

-- Community Update Message

id-ct-TAMP-communityUpdate OBJECT IDENTIFIER ::= { id-tamp 7 }

TAMPCommunityUpdate ::= SEQUENCE {
  version         [0] TAMPVersion DEFAULT v2,
  terse           [1] TerseOrVerbose DEFAULT verbose,
  msgRef          TAMPMsgRef,
  updates         CommunityUpdates }

CommunityUpdates ::= SEQUENCE {
  remove          [1] CommunityIdentifierList OPTIONAL,
  add             [2] CommunityIdentifierList OPTIONAL }
  -- At least one must be present


-- Community Update Confirm Message

id-ct-TAMP-communityUpdateConfirm OBJECT IDENTIFIER ::= { id-tamp 8 }

TAMPCommunityUpdateConfirm ::= SEQUENCE {
  version         [0] TAMPVersion DEFAULT v2,
  update          TAMPMsgRef,
  commConfirm     CommunityConfirm }

CommunityConfirm ::= CHOICE {
  terseCommConfirm      [0] TerseCommunityConfirm,
  verboseCommConfirm    [1] VerboseCommunityConfirm }

TerseCommunityConfirm ::= StatusCode

VerboseCommunityConfirm ::= SEQUENCE {
  status          StatusCode,
  communities     CommunityIdentifierList OPTIONAL }


-- Sequence Number Adjust Message

id-ct-TAMP-seqNumAdjust OBJECT IDENTIFIER ::= { id-tamp 10 }
-- Placeholder for TBD

SequenceNumberAdjust ::= SEQUENCE {
  version         [0] TAMPVersion DEFAULT v2,
  msgRef          TAMPMsgRef }


-- Sequence Number Adjust Message

id-ct-TAMP-seqNumAdjustConfirm OBJECT IDENTIFIER ::= { id-tamp 11 }
-- Placeholder for TBD

SequenceNumberAdjustConfirm ::= SEQUENCE {
  version         [0] TAMPVersion DEFAULT v2,
  adjust          TAMPMsgRef,
  status          StatusCode }


-- TAMP Error Message

id-ct-TAMP-error OBJECT IDENTIFIER ::= { id-tamp 9 }

TAMPError ::= SEQUENCE {
  version         [0] TAMPVersion DEFAULT v2,
  msgType         OBJECT IDENTIFIER,
  status          StatusCode,
  msgRef          TAMPMsgRef OPTIONAL }


-- Status Codes

StatusCode ::= ENUMERATED {
  success                            (0),
  decodeFailure                      (1),
  badContentInfo                     (2),
  badSignedData                      (3),
  badEncapContent                    (4),
  badCertificate                     (5),
  badSignerInfo                      (6),
  badSignedAttrs                     (7),
  badUnsignedAttrs                   (8),
  missingContent                     (9),
  noTrustAnchor                     (10),
  notAuthorized                     (11),
  badDigestAlgorithm                (12),
  badSignatureAlgorithm             (13),
  unsupportedKeySize                (14),
  unsupportedParameters             (15),
  signatureFailure                  (16),
  insufficientMemory                (17),
  unsupportedTAMPMsgType            (18),
  apexTAMPAnchor                    (19),
  improperTAAddition                (20),
  seqNumFailure                     (21),
  contingencyPublicKeyDecrypt       (22),
  incorrectTarget                   (23),
  communityUpdateFailed             (24),
  trustAnchorNotFound               (25),
  unsupportedTAAlgorithm            (26),
  unsupportedTAKeySize              (27),
  unsupportedContinPubKeyDecryptAlg (28),
  missingSignature                  (29),
  resourcesBusy                     (30),
  versionNumberMismatch             (31),
  missingPolicySet                  (32),
  other                            (127) }


-- Object Identifier Arc for Attributes

id-attributes OBJECT IDENTIFIER ::= { joint-iso-ccitt(2) country(16)
    us(840) organization(1) gov(101) dod(2) infosec(1) 5 }

-- id-aa-TAMP-contingencyPublicKeyDecryptKey uses
-- PlaintextSymmetricKey syntax
id-aa-TAMP-contingencyPublicKeyDecryptKey OBJECT IDENTIFIER ::= {
  id-attributes 63 }

PlaintextSymmetricKey ::= OCTET STRING

END



 TOC 

Authors' Addresses

  Russ Housley
  Vigil Security, LLC
  918 Spring Knoll Drive
  Herndon, VA 20170
Email:  housley@vigilsec.com
  
  Raksha Reddy
  National Security Agency
  Suite 6751
  9800 Savage Road
  Fort Meade, MD 20755
Email:  r.reddy@radium.ncsc.mil
  
  Carl Wallace
  Cygnacom Solutions
  Suite 5200
  7925 Jones Branch Drive
  McLean, VA 22102
Email:  cwallace@cygnacom.com


 TOC 

Full Copyright Statement

Intellectual Property