<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
]>



<rfc xmlns:xi="http://www.w3.org/2001/XInclude" ipr="trust200902" docName="draft-housley-ers-asn1-modules-03" number="9169" obsoletes="" updates="" submissionType="IETF" category="info" consensus="true" xml:lang="en" tocInclude="true" sortRefs="true" symRefs="true" version="3">


  <front>
    <title abbrev="New ASN.1 Modules for the ERS">New ASN.1 Modules for the
    Evidence Record Syntax (ERS)</title>
    <seriesInfo name="RFC" value="9169"/>
    <author initials="R." surname="Housley" fullname="Russ Housley">
      <organization abbrev="Vigil Security">Vigil Security, LLC</organization>
      <address>
        <postal>
          <street>516 Dranesville Road</street>
          <city>Herndon</city>
	  <region>VA</region>
          <code>20170</code>
          <country>USA</country>
        </postal>
        <email>housley@vigilsec.com</email>
      </address>
    </author>
    <author initials="C." surname="Wallace" fullname="Carl Wallace">
      <organization abbrev="Red Hound Software">Red Hound Software, Inc.</organization>
      <address>
        <postal>
          <street>5112 27th St. N</street>
          <city>Arlington</city>
  	  <region>VA</region>
          <code>22207</code>
          <country>USA</country>
        </postal>
        <email>carl@redhoundsoftware.com</email>
      </address>
    </author>
    <date year="2021" month="December"/>

<keyword>LTANS
</keyword>
<keyword>long-term archive
</keyword>
    <abstract>
      <t>The Evidence Record Syntax (ERS) and the conventions for including these
evidence records in the Server-based Certificate Validation Protocol
(SCVP) are expressed using ASN.1.  This document offers alternative ASN.1
modules that conform to the 2002 version of ASN.1 and employ the
conventions adopted in RFCs 5911, 5912, and 6268.  There are no
bits-on-the-wire changes to any of the formats; this is simply a change
to the ASN.1 syntax.</t>
    </abstract>
  </front>
  <middle>
    <section anchor="intro" numbered="true" toc="default">
      <name>Introduction</name>
      <t>Some developers would like the IETF to use the latest version of ASN.1 in
its standards.  This document provides alternative ASN.1 modules to assist
in that goal.</t>
      <t>The Evidence Record Syntax (ERS) <xref target="RFC4998"
      format="default"/> provides two ASN.1 modules: one using the 1988 syntax
      <xref target="OLD-ASN1" format="default"/>, which has been deprecated by
      the ITU-T, and another one using the newer syntax <xref
      target="NEW-ASN1" format="default"/>, which continues to be maintained
      and enhanced.  This document provides an alternative ASN.1 module that
      follows the conventions established in <xref target="RFC5911"
      format="default"/>, <xref target="RFC5912" format="default"/>, and <xref
      target="RFC6268" format="default"/>.</t>
      <t>In addition, <xref target="RFC5276" format="default"/> specifies the
      mechanism for conveying evidence records in the Server-based Certificate
      Validation Protocol (SCVP) <xref target="RFC5055" format="default"/>.
      There is only one ASN.1 module in <xref target="RFC5276"
      format="default"/>, and it uses the 1988 syntax <xref target="OLD-ASN1"
      format="default"/>.  This document provides an alternative ASN.1 module
      using the newer syntax <xref target="NEW-ASN1" format="default"/> and
      follows the conventions established in <xref target="RFC5911"
      format="default"/>, <xref target="RFC5912" format="default"/>, and <xref
      target="RFC6268" format="default"/>.  Note that <xref target="RFC5912"
      format="default"/> already includes an alternative ASN.1 module for SCVP
      <xref target="RFC5055" format="default"/>.</t>
      <t>The original ASN.1 modules get some of their definitions from places
outside the RFC series.  Some of the referenced definitions are somewhat
difficult to find.  The alternative ASN.1 modules offered in this document
stand on their own when combined with the modules in <xref target="RFC5911" format="default"/>,
<xref target="RFC5912" format="default"/>, and <xref target="RFC6268" format="default"/>.</t>
      <t>The alternative ASN.1 modules produce the same bits on the wire as
      the original ones.</t>
      <t>The alternative ASN.1 modules are informative; the original ones
are normative.</t>
    </section>
    <section anchor="asn1-module-for-rfc-4998" numbered="true" toc="default">
      <name>ASN.1 Module for RFC 4998</name>
      <sourcecode name="" type="asn.1" markers="true"><![CDATA[
   ERS-2021
     { iso(1) identified-organization(3) dod(6) internet(1)
       security(5) mechanisms(5) ltans(11) id-mod(0)
       id-mod-ers(1) id-mod-ers-v2(2) }

   DEFINITIONS IMPLICIT TAGS ::=
   BEGIN

   EXPORTS ALL;

   IMPORTS

   ContentInfo
     FROM CryptographicMessageSyntax-2010 -- in [RFC6268]
       { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 
         pkcs-9(9) smime(16) modules(0) id-mod-cms-2009(58) }

   AlgorithmIdentifier{}, DIGEST-ALGORITHM
     FROM AlgorithmInformation-2009 -- in [RFC5912]
       { iso(1) identified-organization(3) dod(6) internet(1)
         security(5) mechanisms(5) pkix(7) id-mod(0)
         id-mod-algorithmInformation-02(58) }

   AttributeSet{}, ATTRIBUTE
     FROM PKIX-CommonTypes-2009 -- in [RFC5912]
       { iso(1) identified-organization(3) dod(6) internet(1)
         security(5) mechanisms(5) pkix(7) id-mod(0)
         id-mod-pkixCommon-02(57) }
   ;

   ltans OBJECT IDENTIFIER ::= { iso(1) identified-organization(3)
     dod(6) internet(1) security(5) mechanisms(5) ltans(11) }

   EvidenceRecord ::= SEQUENCE {
     version  INTEGER { v1(1) },
     digestAlgorithms  SEQUENCE OF AlgorithmIdentifier
                         {DIGEST-ALGORITHM, {...}},
     cryptoInfos  [0] CryptoInfos OPTIONAL,
     encryptionInfo  [1] EncryptionInfo OPTIONAL,
     archiveTimeStampSequence  ArchiveTimeStampSequence }

   CryptoInfos ::= SEQUENCE SIZE (1..MAX) OF Attribute

   ArchiveTimeStamp ::= SEQUENCE {
     digestAlgorithm [0] AlgorithmIdentifier
                           {DIGEST-ALGORITHM, {...}} OPTIONAL,
     attributes      [1] Attributes OPTIONAL,
     reducedHashtree [2] SEQUENCE OF PartialHashtree OPTIONAL,
     timeStamp       ContentInfo }

   PartialHashtree ::= SEQUENCE OF OCTET STRING

   Attributes ::= SET SIZE (1..MAX) OF Attribute

   ArchiveTimeStampChain ::= SEQUENCE OF ArchiveTimeStamp

   ArchiveTimeStampSequence ::= SEQUENCE OF ArchiveTimeStampChain

   EncryptionInfo ::= SEQUENCE {
     encryptionInfoType  ENCINFO-TYPE.&id
       ({SupportedEncryptionAlgorithms}),
     encryptionInfoValue  ENCINFO-TYPE.&Type
       ({SupportedEncryptionAlgorithms}{@encryptionInfoType}) }

   ENCINFO-TYPE ::= TYPE-IDENTIFIER

   SupportedEncryptionAlgorithms ENCINFO-TYPE ::= { ... }

   aa-er-internal ATTRIBUTE ::=
     { TYPE EvidenceRecord IDENTIFIED BY id-aa-er-internal }

   id-aa-er-internal  OBJECT IDENTIFIER ::= { iso(1) member-body(2)
     us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) id-aa(2) 49 }

   aa-er-external ATTRIBUTE ::=
     { TYPE EvidenceRecord IDENTIFIED BY id-aa-er-external }

   id-aa-er-external  OBJECT IDENTIFIER ::= { iso(1) member-body(2)
     us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) id-aa(2) 50 }

   ERSAttrSet ATTRIBUTE ::= { aa-er-internal | aa-er-external, ... }
   
   Attribute ::= AttributeSet {{ERSAttrSet}}

   END
]]></sourcecode>
    </section>
    <section anchor="asn1-module-for-rfc-5276" numbered="true" toc="default">
      <name>ASN.1 Module for RFC 5276</name>
      <sourcecode name="" type="asn.1" markers="true"><![CDATA[
   LTANS-SCVP-EXTENSION-2021
     { iso(1) identified-organization(3) dod(6) internet(1)
       security(5) mechanisms(5) ltans(11) id-mod(0)
       id-mod-ers-scvp(5) id-mod-ers-scvp-v2(2) }

   DEFINITIONS IMPLICIT TAGS ::=
   BEGIN
   
   EXPORTS ALL;
   
   IMPORTS

   id-swb, CertBundle, WANT-BACK, AllWantBacks
     FROM SCVP-2009 -- in [RFC5912]
       { iso(1) identified-organization(3) dod(6) internet(1)
         security(5) mechanisms(5) pkix(7) id-mod(0)
         id-mod-scvp-02(52) }
          
   EvidenceRecord
     FROM ERS-2021 -- in [RFC9169]
       { iso(1) identified-organization(3) dod(6) internet(1)
         security(5) mechanisms(5) ltans(11) id-mod(0)
         id-mod-ers(1) id-mod-ers-v2(2) }
  ;

   EvidenceRecordWantBack ::= SEQUENCE {
     targetWantBack  WANT-BACK.&id ({ExpandedWantBacks}),
     evidenceRecord  EvidenceRecord OPTIONAL }

   EvidenceRecordWantBacks ::= SEQUENCE SIZE (1..MAX) OF
                                 EvidenceRecordWantBack

   EvidenceRecords ::= SEQUENCE SIZE (1..MAX) OF EvidenceRecord

   ExpandedWantBacks WANT-BACK ::= { AllWantBacks |
                                     NewWantBacks |
                                     ERSWantBacks, ... }

   NewWantBacks WANT-BACK ::= { swb-partial-cert-path, ... }

   swb-partial-cert-path WANT-BACK ::=
     { CertBundle IDENTIFIED BY id-swb-partial-cert-path }

   id-swb-partial-cert-path OBJECT IDENTIFIER ::= { id-swb 15 }

   ERSWantBacks WANT-BACK ::= { swb-ers-pkc-cert |
                                swb-ers-best-cert-path |
                                swb-ers-partial-cert-path |
                                swb-ers-revocation-info |
                                swb-ers-all, ... }

   swb-ers-pkc-cert WANT-BACK ::=
     { EvidenceRecord IDENTIFIED BY id-swb-ers-pkc-cert }

   id-swb-ers-pkc-cert OBJECT IDENTIFIER ::= { id-swb 16 }

   swb-ers-best-cert-path WANT-BACK ::=
     { EvidenceRecord IDENTIFIED BY id-swb-ers-best-cert-path }

   id-swb-ers-best-cert-path OBJECT IDENTIFIER ::= { id-swb 17 }

   swb-ers-partial-cert-path WANT-BACK ::=
     { EvidenceRecord IDENTIFIED BY id-swb-ers-partial-cert-path }

   id-swb-ers-partial-cert-path OBJECT IDENTIFIER ::= { id-swb 18 }

   swb-ers-revocation-info WANT-BACK ::=
     { EvidenceRecords IDENTIFIED BY id-swb-ers-revocation-info }
      
   id-swb-ers-revocation-info OBJECT IDENTIFIER ::= { id-swb 19 }

   swb-ers-all WANT-BACK ::=
     { EvidenceRecordWantBacks IDENTIFIED BY id-swb-ers-all }

   id-swb-ers-all OBJECT IDENTIFIER ::= { id-swb 20 }

   END
]]></sourcecode>
    </section>
    <section anchor="iana-considerations" numbered="true" toc="default">
      <name>IANA Considerations</name>
      <t>IANA has assigned two object identifiers from the 
"SMI Security for LTANS Module Identifier" registry to identify
the two ASN.1 modules in this document.</t>
      <t>The following object identifiers have been assigned:</t>

<table anchor="iana"> 
  <name>IANA Object Identifiers</name>   

  <thead>
    <tr>
      <th>OID Value</th>
      <th>Description</th>
      <th>Reference</th>
    </tr>
  </thead>
  <tbody>         
    <tr>
      <td>1.3.6.1.5.5.11.0.1.2</td>
      <td>id-mod-ers-v2</td>
      <td>RFC 9169</td>
    </tr>
    <tr>
      <td>1.3.6.1.5.5.11.0.5.2</td>
      <td>id-mod-ers-scvp-v2</td>
      <td>RFC 9169</td>
    </tr>

  </tbody>
</table>

</section>
    <section anchor="security-considerations" numbered="true" toc="default">
      <name>Security Considerations</name>
      <t>Please see the security considerations in <xref target="RFC4998" format="default"/> and <xref target="RFC5276" format="default"/>.  This
document makes no changes to the security considerations in those
documents.  The ASN.1 modules in this document preserve bits on the wire
as the ASN.1 modules that they replace.</t>
    </section>
  </middle>
  <back>
    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.4998.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5276.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5055.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5911.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5912.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6268.xml"/>

<reference anchor="NEW-ASN1" target="https://www.itu.int/rec/T-REC-X.680">
          <front>
            <title>Information technology -- Abstract Syntax Notation One (ASN.1): Specification of basic notation</title>
            <author>
              <organization>ITU-T</organization>
            </author>
            <date year="2021" month="February"/>
          </front>
          <seriesInfo name="ITU-T Recommendation" value="X.680"/>
          <seriesInfo name="ISO/IEC" value="8824-1:2021"/>
        </reference>

      </references>

      <references>
        <name>Informative References</name>

        <reference anchor="OLD-ASN1" target="https://www.itu.int/rec/T-REC-X.208/en">
          <front>
            <title>
            Specification of Abstract Syntax Notation One (ASN.1)</title>
            <author>
              <organization>CCITT</organization>
            </author>
            <date year="1988" month="November"/>
	  </front>
          <refcontent>CCITT Recommendation X.208</refcontent>	 
        </reference>
	
      </references>
    </references>
  </back>
  
</rfc>
