<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
]>
<?xml-stylesheet type="text/xsl" href="rfc2629.xslt" ?>
<!-- generated by https://github.com/cabo/kramdown-rfc2629 version 1.5.26 (Ruby 2.3.7) -->
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" ipr="trust200902" docName="draft-housley-lamps-rfc5990bis-00" category="std" consensus="true" submissionType="IETF" obsoletes="5990" tocInclude="true" sortRefs="true" symRefs="true" version="3">
  <!-- xml2rfc v2v3 conversion 3.16.0 -->
  <front>
    <title abbrev="RSA-KEM with CMS KEMRecipientInfo">Use of the RSA-KEM Algorithm in the Cryptographic Message Syntax (CMS)</title>
    <seriesInfo name="Internet-Draft" value="draft-housley-lamps-rfc5990bis-00"/>
    <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, VA</city>
          <code>20170</code>
          <country>US</country>
        </postal>
        <email>housley@vigilsec.com</email>
      </address>
    </author>
    <author initials="S." surname="Turner" fullname="Sean Turner">
      <organization>sn3rd</organization>
      <address>
        <postal>
          <city>Washington, DC</city>
          <code>20002</code>
          <country>US</country>
        </postal>
        <email>sean@sn3rd.com</email>
      </address>
    </author>
    <date year="2023" month="February" day="14"/>
    <area>SEC</area>
    <workgroup>LAMPS Working Group</workgroup>
    <keyword>Key Encapsulation Mechanism (KEM)</keyword>
    <keyword>KEMRecipientInfo</keyword>
    <abstract>
      <t>The RSA Key Encapsulation Mechanism (RSA-KEM) Algorithm is a one-pass
(store-and-forward) cryptographic mechanism for an originator to securely
send keying material to a recipient using the recipient's RSA public key.
The RSA-KEM Algorithm is specified in Clause 11.5 of ISO/IEC: 18033-2:2006.
This document specifies the conventions for using the RSA-KEM Algorithm
with the Cryptographic Message Syntax (CMS) using KEMRecipientInfo as
specified in draft-housley-lamps-cms-kemri.</t>
    </abstract>
    <note removeInRFC="true">
      <name>About This Document</name>
      <t>
        Status information for this document may be found at <eref target="https://datatracker.ietf.org/doc/draft-housley-lamps-rfc5990bis/"/>.
      </t>
      <t>
        Discussion of this document takes place on the
        WG LAMPS mailing list (<eref target="mailto:spasm@ietf.org"/>),
        which is archived at <eref target="https://mailarchive.ietf.org/arch/browse/spasm/"/>.
      </t>
    </note>
  </front>
  <middle>
    <section anchor="introduction">
      <name>Introduction</name>
      <t>The RSA Key Encapsulation Mechanism (RSA-KEM) Algorithm is a one-pass
(store-and-forward) cryptographic mechanism for an originator to securely
send keying material to a recipient using the recipient's RSA public key.
The RSA-KEM Algorithm is specified in Clause 11.5 of <xref target="ISO18033-2"/>.</t>
      <t>The RSA-KEM Algorithm takes a different approach than other RSA key
transport mechanisms <xref target="RFC8017"/>, with the goal of providing higher
security assurance.  The RSA-KEM Algorithm encrypts a random integer
with the recipient's RSA public key, derives a key-encryption key from
the random integer, and wraps a symmetric content-encryption key with
the key-encryption key.  In this way, the originator and the recipient
end up with the same content-encryption key.   Given a
content-encryption key CEK, RSA-KEM can be summarized as:</t>
      <ol spacing="normal" type="1"><li>Generate a random integer z between 0 and n-1.</li>
        <li>
          <t>Encrypt the integer z with the recipient's RSA public key:  </t>
          <artwork><![CDATA[
    c = z^e mod n
]]></artwork>
        </li>
        <li>
          <t>Derive a key-encryption key KEK from the integer z:  </t>
          <artwork><![CDATA[
    KEK = KDF(z)
]]></artwork>
        </li>
        <li>
          <t>Wrap the CEK with the KEK to obtain wrapped keying material WK:  </t>
          <artwork><![CDATA[
    WK = WRAP(KEK, CEK)
]]></artwork>
        </li>
        <li>The originator sends c and WK to the recipient.</li>
      </ol>
      <t>This different approach provides higher security assurance for two
reasons.  First, the input to the underlying RSA operation is effectively
a random integer between 0 and n-1, where n is the RSA modulus, so it does
not have any structure that could be exploited by an adversary.  Second,
the input is independent of the keying material so the result of the
RSA decryption operation is not directly available to an adversary.
As a result, the RSA-KEM Algorithm enjoys a "tight" security proof in the
random oracle model.  (In other padding schemes, such as
PKCS #1 v1.5 <xref target="RFC8017"/>, the input has structure and/or depends on the
keying material, and the provable security assurances are not as
strong.)  The approach is also architecturally convenient because the
public-key operations are separate from the symmetric operations on the
keying material.  Another benefit is that the length of the keying material
is bounded only by the symmetric key-wrapping algorithm, not the size of
the RSA modulus.</t>
      <t>For completeness, a specification of the RSA-KEM Algorithm is given in
Appendix A of this document; ASN.1 syntax is given in Appendix B.</t>
      <section anchor="conventions-and-definitions">
        <name>Conventions and Definitions</name>
        <t>The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>", "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL
NOT</bcp14>", "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>", "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>",
"<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document are to be interpreted as
described in BCP 14 <xref target="RFC2119"/> <xref target="RFC8174"/> when, and only when, they
appear in all capitals, as shown here.</t>
      </section>
      <section anchor="asn1">
        <name>ASN.1</name>
        <t>CMS values are generated using ASN.1 <xref target="X.680"/>, which uses the Basic
Encoding Rules (BER) and the Distinguished Encoding Rules (DER) <xref target="X.690"/>.</t>
      </section>
      <section anchor="changes-since-rfc-5990">
        <name>Changes Since RFC 5990</name>
        <t>RFC 5990 <xref target="RFC5990"/> specified the conventions for using the RSA-KEM Algorithm
in CMS as a key transport algorithm.  That is, it used KeyTransRecipientInfo <xref target="RFC5652"/>
for each recipient.  This approach resulted in a very complex parameter
definition with the id-rsa-kem algorithm identifier.  Implementation
experience with many different algorithms has shown that complex
parameter structures cause interoperability issues.  Since the publication
of RFC 5990, a new KEMRecipientInfo structure <xref target="I-D.housley-lamps-cms-kemri"/>
has been defined to support KEM algorithms, and this new structure avoids the
complex parameters structure that was used in RFC 5990.  Likewise, when
the id-rsa-kem algorithm identifier appears in the SubjectPublicKeyInfo
field of a certificate, this document encourages the omission of any
parameters.</t>
        <t>RFC 5990 uses EK and the EncryptedKey, which the concatenation of
C and WK (C || WK).  The use of EK is necessary to align with the
KeyTransRecipientInfo structure.  In this document, C and WK are sent
in separate fields of new KEMRecipientInfo structure.  In particular,
C is carried in the kemct field, and WK is carried in the encryptedKey
field.</t>
        <t>RFC 5990 supports the future definition of additional KEM algorithms that
use RSA; this document supports only one, and it is identified by the
id-kem-rsa object identifier.</t>
        <t>RFC 5990 includes support for Camellia and Triple-DES block ciphers;
discussion of these block ciphers is removed from this document, but
the algorithm identifiers remain in the ASN.1 Module <xref target="app-asn1-module"/>.</t>
        <t>RFC 5990 includes support for SHA-1 hash function; discussion of this
hash function is removed from this document, but the algorithm identifier
remains in the ASN.1 module <xref target="app-asn1-module"/>.</t>
        <t>RFC 5990 required support for the KDF3 <xref target="ANS-X9.44"/> key-derivation
function; this document continues to require support for the KDF3
key-derivation function, but it requires support for SHA-256 <xref target="SHS"/> as
the hash function.</t>
        <t>RFC 5990 recommends support for alternatives to KDF3 and AES-Wrap-128;
this document simply states that other key-derivation functions and
key-encryption algorithms <bcp14>MAY</bcp14> be supported.</t>
        <t>RFC 5990 includes an ASN.1 module; this document provides an alternative
ASN.1 module that follows the conventions established in <xref target="RFC5911"/>,
<xref target="RFC5912"/>, and <xref target="RFC6268"/>. The new ASN.1 module <xref target="app-asn1-module"/>
produces the same bits-on-the-wire as the one in RFC 5990.</t>
      </section>
    </section>
    <section anchor="use-of-the-rsa-kem-algorithm-in-cms">
      <name>Use of the RSA-KEM Algorithm in CMS</name>
      <t>The RSA-KEM Algorithm <bcp14>MAY</bcp14> be employed for one or more recipients in the
CMS enveloped-data content type <xref target="RFC5652"/>, the CMS authenticated-data
content type <xref target="RFC5652"/>, or the CMS authenticated-enveloped-data
content type <xref target="RFC5083"/>.  In each case, the KEMRecipientInfo
<xref target="I-D.housley-lamps-cms-kemri"/> is used with with the RSA-KEM Algorithm
to securely transfer the content-encryption key from the originator to
the recipient.</t>
      <section anchor="underlying-components">
        <name>Underlying Components</name>
        <t>A CMS implementation that supports the RSA-KEM Algorithm <bcp14>MUST</bcp14> support at
least the following underlying components:</t>
        <ul spacing="normal">
          <li>For the key-derivation function, an implementation <bcp14>MUST</bcp14> support
KDF3 <xref target="ANS-X9.44"/> with SHA-256 <xref target="SHS"/>.</li>
          <li>For key-wrapping, an implementation <bcp14>MUST</bcp14> support the
AES-Wrap-128 <xref target="RFC3394"/> key-encryption algorithm.</li>
        </ul>
        <t>An implementation <bcp14>MAY</bcp14> also support other key-derivation functions and
key-encryption algorithms as well.</t>
      </section>
      <section anchor="recipientinfo-conventions">
        <name>RecipientInfo Conventions</name>
        <t>When the RSA-KEM Algorithm is employed for a recipient, the
RecipientInfo alternative for that recipient <bcp14>MUST</bcp14> be
OtherRecipientInfo using the KEMRecipientInfo structure
<xref target="I-D.housley-lamps-cms-kemri"/>.  The fields of the
KEMRecipientInfo <bcp14>MUST</bcp14> have the following values:</t>
        <ul empty="true">
          <li>
            <t>version is the syntax version number; it <bcp14>MUST</bcp14> be 0.</t>
          </li>
        </ul>
        <ul empty="true">
          <li>
            <t>rid identifies the recipient's certificate or public key.</t>
          </li>
        </ul>
        <ul empty="true">
          <li>
            <t>kem identifies the KEM algorithm; it <bcp14>MUST</bcp14> contain id-kem-rsa.</t>
          </li>
        </ul>
        <ul empty="true">
          <li>
            <t>kemct is the ciphertext produced for this recipient; it contains
C from steps 1 and 2 of Originator's Operations in <xref target="app-alg"/>.</t>
          </li>
        </ul>
        <ul empty="true">
          <li>
            <t>kdf identifies the key-derivation algorithm.</t>
          </li>
        </ul>
        <ul empty="true">
          <li>
            <t>kekLength is the size of the key-encryption key in octets.</t>
          </li>
        </ul>
        <ul empty="true">
          <li>
            <t>ukm is an optional random input to the key-derivation function.</t>
          </li>
        </ul>
        <ul empty="true">
          <li>
            <t>wrap identifies a key-encryption algorithm used to encrypt the
content-encryption key.</t>
          </li>
        </ul>
        <ul empty="true">
          <li>
            <t>encryptedKey is the result of encrypting the keying material with the
key-encryption key.  When used with the CMS enveloped-data content
type <xref target="RFC5652"/>, the keying material is a content-encryption key.  When
used with the CMS authenticated-data content type <xref target="RFC5652"/>, the
keying material is a message-authentication key.  When used with the
CMS authenticated-enveloped-data content type <xref target="RFC5083"/>, the
keying material is a content-authenticated-encryption key.</t>
          </li>
        </ul>
      </section>
      <section anchor="certificate-conventions">
        <name>Certificate Conventions</name>
        <t>The conventions specified in this section augment RFC 5280 <xref target="RFC5280"/>.</t>
        <t>A recipient who employs the RSA-KEM Algorithm <bcp14>MAY</bcp14> identify the public key
in a certificate by the same AlgorithmIdentifier as for the
PKCS #1 v1.5 algorithm, that is, using the rsaEncryption object
identifier <xref target="RFC8017"/>.  The fact that the recipient will accept RSA-KEM
with this public key is not indicated by the use of this object
identifier.  The willingness to accept the RSA-KEM Algorithm <bcp14>MAY</bcp14> be
signaled by the use of the appropriate SMIME Capabilities either in a
message or in the certificate.</t>
        <t>If the recipient wishes only to employ the RSA-KEM Algorithm with a given
public key, the recipient <bcp14>MUST</bcp14> identify the public key in the certificate
using the id-rsa-kem object identifier; see <xref target="app-asn1"/>.  When the
id-rsa-kem object identifier appears in the SubjectPublicKeyInfo algorithm
field of the certificate, the parameters field from AlgorithmIdentifier
<bcp14>SHOULD</bcp14> be absent.  That is, the AlgorithmIdentifier <bcp14>SHOULD</bcp14> be a SEQUENCE of
one component, the id-rsa-kem object identifier.</t>
        <t>When the AlgorithmIdentifier parameters are present, the
GenericHybridParameters <bcp14>MUST</bcp14> be used.  As described in the next
section, the GenericHybridParameters constrain the values that can
be used with the RSA public key for the kdf, kekLength, and wrap
fields of the KEMRecipientInfo structure.</t>
        <t>Regardless of the AlgorithmIdentifier used, the RSA public key <bcp14>MUST</bcp14> be
carried in the subjectPublicKey BIT STRING within the SubjectPublicKeyInfo
filed of the certificate using the RSAPublicKey type defined in <xref target="RFC8017"/>.</t>
        <t>The intended application for the public key <bcp14>MAY</bcp14> be indicated in the key
usage certificate extension as specified in <xref section="4.2.1.3" sectionFormat="of" target="RFC5280"/>.  If
the keyUsage extension is present in a certificate that conveys an RSA
public key with the id-rsa-kem object identifier as discussed above,
then the key usage extension <bcp14>MUST</bcp14> contain the following value:</t>
        <ul empty="true">
          <li>
            <t>keyEncipherment</t>
          </li>
        </ul>
        <t>The digitalSignatrure and dataEncipherment values <bcp14>SHOULD NOT</bcp14> be
present.  That is, a public key intended to be employed only with the
RSA-KEM Algorithm <bcp14>SHOULD NOT</bcp14> also be employed for data encryption or
for digital signatures.  Good cryptographic practice employs a given RSA
key pair in only one scheme.  This practice avoids the risk that vulnerability
in one scheme may compromise the security of the other, and may be
essential to maintain provable security.</t>
      </section>
      <section anchor="smimecapabilities-attribute-conventions">
        <name>SMIMECapabilities Attribute Conventions</name>
        <t><xref section="2.5.2" sectionFormat="of" target="RFC8551"/> defines the SMIMECapabilities signed
attribute (defined as a SEQUENCE of SMIMECapability SEQUENCEs) to
announce a partial list of algorithms that an S/MIME implementation
can support.  When constructing a CMS signed-data content type <xref target="RFC5652"/>,
a compliant implementation <bcp14>MAY</bcp14> include the SMIMECapabilities signed
attribute announcing that it supports the RSA-KEM Algorithm.</t>
        <t>The SMIMECapability SEQUENCE representing the RSA-KEM Algorithm <bcp14>MUST</bcp14>
include the id-rsa-kem object identifier in the capabilityID field;
see <xref target="app-asn1"/> for the object identifier value, and see <xref target="app-example"/>
for examples.  When the id-rsa-kem object identifier appears in the
capabilityID field and the parameters are present, then the parameters
field <bcp14>MUST</bcp14> use the GenericHybridParameters type.</t>
        <artwork><![CDATA[
  GenericHybridParameters ::= SEQUENCE {
    kem  KeyEncapsulationMechanism,
    dem  DataEncapsulationMechanism }
]]></artwork>
        <t>The fields of the GenericHybridParameters type have the following meanings:</t>
        <ul empty="true">
          <li>
            <t>kem is an AlgorithmIdentifer; the algorithm field <bcp14>MUST</bcp14> be set to id-kem-rsa;
the parameters field <bcp14>MUST</bcp14> be RsaKemParameters, which is a SEQUENCE of an
AlgorithmIdentifier that identifies the supported key-derivation function
and a positive INTEGER that identifies the length of the key-encryption
key in octets.  If the GenericHybridParameters are present, then the
provided kem value <bcp14>MUST</bcp14> be used as the key-derivation function in the
kdf field of KEMRecipientInfo, and the provided key length <bcp14>MUST</bcp14> be used
in the kekLength of KEMRecipientInfo.</t>
          </li>
        </ul>
        <ul empty="true">
          <li>
            <t>dem is an AlgorithmIdentifier; the algorithm field <bcp14>MUST</bcp14> be present, and it
identifies the key-encryption algorithm; parameters are optional.  If the
GenericHybridParameters are present, then the provided dem value <bcp14>MUST</bcp14> be 
used in the wrap field of KEMRecipientInfo.</t>
          </li>
        </ul>
      </section>
    </section>
    <section anchor="security-considerations">
      <name>Security Considerations</name>
      <t>The RSA-KEM Algorithm should be considered as a replacement for the
widely implemented PKCS #1 v1.5 <xref target="RFC8017"/> for new applications
that use CMS to avoid potential vulnerabilities to chosen-ciphertext
attacks and gain a tighter security proof; however, the RSA-KEM Algorithm
has the disadvantage of slightly longer encrypted keying material.</t>
      <t>The security of the RSA-KEM Algorithm can be shown to be tightly related
to the difficulty of either solving the RSA problem or breaking the
underlying symmetric key-encryption algorithm, if the underlying
key-derivation function is modeled as a random oracle, and assuming that
the symmetric key-encryption algorithm satisfies the properties of a
data encapsulation mechanism <xref target="SHOUP"/>.  While in practice a random-oracle
result does not provide an actual security proof for any particular
key-derivation function, the result does provide assurance that the general
construction is reasonable; a key-derivation function would need to be
particularly weak to lead to an attack that is not possible in the
random-oracle model.</t>
      <t>The RSA key size and the underlying components need to be selected
consistent with the desired security level.  Several security levels
have been identified in the NIST SP 800-57 Part 1 <xref target="NISTSP800-57pt1r5"/>.
To achieve 128-bit security, the RSA key size <bcp14>SHOULD</bcp14> be at least 3072 bits,
the key-derivation function <bcp14>SHOULD</bcp14> make use of SHA-256, and the symmetric
key-encryption algorithm <bcp14>SHOULD</bcp14> be AES Key Wrap with a 128-bit key.</t>
      <t>Implementations <bcp14>MUST</bcp14> protect the RSA private key, the key-encryption key,
the content-encryption key, the content-authenticated-encryption key.
Compromise of the RSA private key could result in the disclosure of all
messages protected with that key.  Compromise of the key-encryption key,
the content-encryption key, or content-authenticated-encryption key could
result in disclosure of the associated encrypted content.</t>
      <t>Additional considerations related to key management may be found in
<xref target="NISTSP800-57pt1r5"/>.</t>
      <t>The security of the RSA-KEM Algorithm also depends on the strength of the
random number generator, which <bcp14>SHOULD</bcp14> have a comparable security level.  For
further discussion on random number generation, see <xref target="RFC4086"/>.</t>
      <t>Implementations <bcp14>SHOULD NOT</bcp14> reveal information about intermediate
values or calculations, whether by timing or other "side channels",
otherwise an opponent may be able to determine information about
the keying data and/or the recipient's private key.  Although not all
intermediate information may be useful to an opponent, it is
preferable to conceal as much information as is practical, unless
analysis specifically indicates that the information would not be
useful to an opponent.</t>
      <t>Generally, good cryptographic practice employs a given RSA key pair
in only one scheme.  This practice avoids the risk that vulnerability
in one scheme may compromise the security of the other, and may be
essential to maintain provable security.  While RSA public keys have
often been employed for multiple purposes such as key transport and
digital signature without any known bad interactions, for increased
security assurance, such combined use of an RSA key pair is <bcp14>NOT
RECOMMENDED</bcp14> in the future (unless the different schemes are
specifically designed to be used together).</t>
      <t>Accordingly, an RSA key pair used for the RSA-KEM Algorithm <bcp14>SHOULD NOT</bcp14>
also be used for digital signatures.  Indeed, the Accredited Standards
Committee X9 (ASC X9) requires such a separation between key pairs used
for key establishment and key pairs used for digital signature
<xref target="ANS-X9.44"/>.  Continuing this principle of key separation, a key pair
used for the RSA-KEM Algorithm <bcp14>SHOULD NOT</bcp14> be used with other key
establishment schemes, or for data encryption, or with more
than one set of underlying algorithm components.</t>
      <t>Parties <bcp14>MAY</bcp14> gain assurance that implementations are correct through
formal implementation validation, such as the NIST Cryptographic
Module Validation Program (CMVP) <xref target="CMVP"/>.</t>
    </section>
    <section anchor="iana-considerations">
      <name>IANA Considerations</name>
      <t>For the ASN.1 Module in <xref target="app-asn1-module"/>, IANA is requested to assign an
object identifier (OID) for the module identifier. The OID for the module
should be allocated in the "SMI Security for S/MIME Module Identifier"
registry (1.2.840.113549.1.9.16.0).</t>
    </section>
  </middle>
  <back>
    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
        <reference anchor="I-D.housley-lamps-cms-kemri" xml:base="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.housley-lamps-cms-kemri.xml">
          <front>
            <title>Using Key Encapsulation Mechanism (KEM) Algorithms in the Cryptographic Message Syntax (CMS)</title>
            <author fullname="Russ Housley" initials="R." surname="Housley">
              <organization>Vigil Security, LLC</organization>
            </author>
            <author fullname="John Gray" initials="J." surname="Gray">
              <organization>Entrust</organization>
            </author>
            <author fullname="Tomofumi Okubo" initials="T." surname="Okubo">
              <organization>DigiCert, Inc.</organization>
            </author>
            <date day="1" month="February" year="2023"/>
            <abstract>
              <t>The Cryptographic Message Syntax (CMS) supports key transport and key agreement algorithms. In recent years, cryptographers have be specifying Key Encapsulation Mechanism (KEM) algorithms, including quantum-secure KEM algorithms. This document defines conventions for the use of KEM algorithms by the originator and recipients to encrypt CMS content.</t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-housley-lamps-cms-kemri-00"/>
        </reference>
        <reference anchor="RFC5083" target="https://www.rfc-editor.org/info/rfc5083">
          <front>
            <title>Cryptographic Message Syntax (CMS) Authenticated-Enveloped-Data Content Type</title>
            <author initials="R." surname="Housley" fullname="R. Housley">
              <organization/>
            </author>
            <date year="2007" month="November"/>
            <abstract>
              <t>This document describes an additional content type for the Cryptographic Message Syntax (CMS).  The authenticated-enveloped-data content type is intended for use with authenticated encryption modes. All of the various key management techniques that are supported in the CMS enveloped-data content type are also supported by the CMS authenticated-enveloped-data content type.  [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5083"/>
          <seriesInfo name="DOI" value="10.17487/RFC5083"/>
        </reference>
        <reference anchor="RFC5280" target="https://www.rfc-editor.org/info/rfc5280">
          <front>
            <title>Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile</title>
            <author initials="D." surname="Cooper" fullname="D. Cooper">
              <organization/>
            </author>
            <author initials="S." surname="Santesson" fullname="S. Santesson">
              <organization/>
            </author>
            <author initials="S." surname="Farrell" fullname="S. Farrell">
              <organization/>
            </author>
            <author initials="S." surname="Boeyen" fullname="S. Boeyen">
              <organization/>
            </author>
            <author initials="R." surname="Housley" fullname="R. Housley">
              <organization/>
            </author>
            <author initials="W." surname="Polk" fullname="W. Polk">
              <organization/>
            </author>
            <date year="2008" month="May"/>
            <abstract>
              <t>This memo profiles the X.509 v3 certificate and X.509 v2 certificate revocation list (CRL) for use in the Internet.  An overview of this approach and model is provided as an introduction.  The X.509 v3 certificate format is described in detail, with additional information regarding the format and semantics of Internet name forms.  Standard certificate extensions are described and two Internet-specific extensions are defined.  A set of required certificate extensions is specified.  The X.509 v2 CRL format is described in detail along with standard and Internet-specific extensions.  An algorithm for X.509 certification path validation is described.  An ASN.1 module and examples are provided in the appendices.  [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5280"/>
          <seriesInfo name="DOI" value="10.17487/RFC5280"/>
        </reference>
        <reference anchor="RFC5652" target="https://www.rfc-editor.org/info/rfc5652">
          <front>
            <title>Cryptographic Message Syntax (CMS)</title>
            <author initials="R." surname="Housley" fullname="R. Housley">
              <organization/>
            </author>
            <date year="2009" month="September"/>
            <abstract>
              <t>This document describes the Cryptographic Message Syntax (CMS).  This syntax is used to digitally sign, digest, authenticate, or encrypt arbitrary message content.  [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="70"/>
          <seriesInfo name="RFC" value="5652"/>
          <seriesInfo name="DOI" value="10.17487/RFC5652"/>
        </reference>
        <reference anchor="RFC5911" target="https://www.rfc-editor.org/info/rfc5911">
          <front>
            <title>New ASN.1 Modules for Cryptographic Message Syntax (CMS) and S/MIME</title>
            <author initials="P." surname="Hoffman" fullname="P. Hoffman">
              <organization/>
            </author>
            <author initials="J." surname="Schaad" fullname="J. Schaad">
              <organization/>
            </author>
            <date year="2010" month="June"/>
            <abstract>
              <t>The Cryptographic Message Syntax (CMS) format, and many associated formats, are expressed using ASN.1.  The current ASN.1 modules conform to the 1988 version of ASN.1.  This document updates those ASN.1 modules to conform to the 2002 version of ASN.1.  There are no bits-on-the-wire changes to any of the formats; this is simply a change to the syntax.  This document is not an Internet Standards Track  specification; it is published for informational purposes.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5911"/>
          <seriesInfo name="DOI" value="10.17487/RFC5911"/>
        </reference>
        <reference anchor="RFC5912" target="https://www.rfc-editor.org/info/rfc5912">
          <front>
            <title>New ASN.1 Modules for the Public Key Infrastructure Using X.509 (PKIX)</title>
            <author initials="P." surname="Hoffman" fullname="P. Hoffman">
              <organization/>
            </author>
            <author initials="J." surname="Schaad" fullname="J. Schaad">
              <organization/>
            </author>
            <date year="2010" month="June"/>
            <abstract>
              <t>The Public Key Infrastructure using X.509 (PKIX) certificate format, and many associated formats, are expressed using ASN.1.  The current ASN.1 modules conform to the 1988 version of ASN.1.  This document updates those ASN.1 modules to conform to the 2002 version of ASN.1. There are no bits-on-the-wire changes to any of the formats; this is simply a change to the syntax.  This document is not an Internet  Standards Track specification; it is published for informational  purposes.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5912"/>
          <seriesInfo name="DOI" value="10.17487/RFC5912"/>
        </reference>
        <reference anchor="RFC6268" target="https://www.rfc-editor.org/info/rfc6268">
          <front>
            <title>Additional New ASN.1 Modules for the Cryptographic Message Syntax (CMS) and the Public Key Infrastructure Using X.509 (PKIX)</title>
            <author initials="J." surname="Schaad" fullname="J. Schaad">
              <organization/>
            </author>
            <author initials="S." surname="Turner" fullname="S. Turner">
              <organization/>
            </author>
            <date year="2011" month="July"/>
            <abstract>
              <t>The Cryptographic Message Syntax (CMS) format, and many associated formats, are expressed using ASN.1.  The current ASN.1 modules conform to the 1988 version of ASN.1.  This document updates some auxiliary ASN.1 modules to conform to the 2008 version of ASN.1; the 1988 ASN.1 modules remain the normative version.  There are no bits- on-the-wire changes to any of the formats; this is simply a change to the syntax.  This document is not an Internet Standards Track  specification; it is published for informational purposes.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6268"/>
          <seriesInfo name="DOI" value="10.17487/RFC6268"/>
        </reference>
        <reference anchor="RFC8551" target="https://www.rfc-editor.org/info/rfc8551" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8551.xml">
          <front>
            <title>Secure/Multipurpose Internet Mail Extensions (S/MIME) Version 4.0 Message Specification</title>
            <author fullname="J. Schaad" initials="J." surname="Schaad"/>
            <author fullname="B. Ramsdell" initials="B." surname="Ramsdell"/>
            <author fullname="S. Turner" initials="S." surname="Turner"/>
            <date month="April" year="2019"/>
            <abstract>
              <t>This document defines Secure/Multipurpose Internet Mail Extensions (S/MIME) version 4.0.  S/MIME provides a consistent way to send and receive secure MIME data.  Digital signatures provide authentication, message integrity, and non-repudiation with proof of origin.  Encryption provides data confidentiality.  Compression can be used to reduce data size.  This document obsoletes RFC 5751.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8551"/>
          <seriesInfo name="DOI" value="10.17487/RFC8551"/>
        </reference>
        <reference anchor="SHS">
          <front>
            <title>Secure Hash Standard</title>
            <author>
              <organization>National Institute of Standards and Technology</organization>
            </author>
            <date year="2015" month="July"/>
          </front>
          <seriesInfo name="DOI" value="10.6028/nist.fips.180-4"/>
        </reference>
        <reference anchor="X.680" 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>
        <reference anchor="X.690" target="https://www.itu.int/rec/T-REC-X.680">
          <front>
            <title>Information technology -- ASN.1 encoding rules: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules (DER)</title>
            <author>
              <organization>ITU-T</organization>
            </author>
            <date year="2021" month="February"/>
          </front>
          <seriesInfo name="ITU-T Recommendation" value="X.690"/>
          <seriesInfo name="ISO/IEC" value="8825-1:2021"/>
        </reference>
        <reference anchor="ISO18033-2" target="https://www.iso.org/standard/37971.html">
          <front>
            <title>Information technology -- Security techniques -- Encryption algorithms -- Part 2: Asymmetric ciphers</title>
            <author>
              <organization>ISO/IEC JTC 1/SC 27</organization>
            </author>
            <date year="2006"/>
          </front>
          <seriesInfo name="ISO/IEC" value="18033-2:2006"/>
        </reference>
        <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <author initials="S." surname="Bradner" fullname="S. Bradner">
              <organization/>
            </author>
            <date year="1997" month="March"/>
            <abstract>
              <t>In many standards track documents several words are used to signify the requirements in the specification.  These words are often capitalized. This document defines these words as they should be interpreted in IETF documents.  This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="2119"/>
          <seriesInfo name="DOI" value="10.17487/RFC2119"/>
        </reference>
        <reference anchor="RFC8174" target="https://www.rfc-editor.org/info/rfc8174">
          <front>
            <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
            <author initials="B." surname="Leiba" fullname="B. Leiba">
              <organization/>
            </author>
            <date year="2017" month="May"/>
            <abstract>
              <t>RFC 2119 specifies common key words that may be used in protocol  specifications.  This document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the key words have the  defined special meanings.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="8174"/>
          <seriesInfo name="DOI" value="10.17487/RFC8174"/>
        </reference>
      </references>
      <references>
        <name>Informative References</name>
        <reference anchor="RFC3394" target="https://www.rfc-editor.org/info/rfc3394" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.3394.xml">
          <front>
            <title>Advanced Encryption Standard (AES) Key Wrap Algorithm</title>
            <author fullname="J. Schaad" initials="J." surname="Schaad"/>
            <author fullname="R. Housley" initials="R." surname="Housley"/>
            <date month="September" year="2002"/>
          </front>
          <seriesInfo name="RFC" value="3394"/>
          <seriesInfo name="DOI" value="10.17487/RFC3394"/>
        </reference>
        <reference anchor="RFC4086" target="https://www.rfc-editor.org/info/rfc4086">
          <front>
            <title>Randomness Requirements for Security</title>
            <author initials="D." surname="Eastlake 3rd" fullname="D. Eastlake 3rd">
              <organization/>
            </author>
            <author initials="J." surname="Schiller" fullname="J. Schiller">
              <organization/>
            </author>
            <author initials="S." surname="Crocker" fullname="S. Crocker">
              <organization/>
            </author>
            <date year="2005" month="June"/>
            <abstract>
              <t>Security systems are built on strong cryptographic algorithms that foil pattern analysis attempts.  However, the security of these systems is dependent on generating secret quantities for passwords, cryptographic keys, and similar quantities.  The use of pseudo-random processes to generate secret quantities can result in pseudo-security. A sophisticated attacker may find it easier to reproduce the environment that produced the secret quantities and to search the resulting small set of possibilities than to locate the quantities in the whole of the potential number space.</t>
              <t>Choosing random quantities to foil a resourceful and motivated adversary is surprisingly difficult.  This document points out many pitfalls in using poor entropy sources or traditional pseudo-random number generation techniques for generating such quantities.  It recommends the use of truly random hardware techniques and shows that the existing hardware on many systems can be used for this purpose. It provides suggestions to ameliorate the problem when a hardware solution is not available, and it gives examples of how large such quantities need to be for some applications.  This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="106"/>
          <seriesInfo name="RFC" value="4086"/>
          <seriesInfo name="DOI" value="10.17487/RFC4086"/>
        </reference>
        <reference anchor="RFC5990" target="https://www.rfc-editor.org/info/rfc5990" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.5990.xml">
          <front>
            <title>Use of the RSA-KEM Key Transport Algorithm in the Cryptographic Message Syntax (CMS)</title>
            <author fullname="J. Randall" initials="J." surname="Randall"/>
            <author fullname="B. Kaliski" initials="B." surname="Kaliski"/>
            <author fullname="J. Brainard" initials="J." surname="Brainard"/>
            <author fullname="S. Turner" initials="S." surname="Turner"/>
            <date month="September" year="2010"/>
            <abstract>
              <t>The RSA-KEM Key Transport Algorithm is a one-pass (store-and-forward) mechanism for transporting keying data to a recipient using the recipient's RSA public key. ("KEM" stands for "key encapsulation mechanism".) This document specifies the conventions for using the RSA-KEM Key Transport Algorithm with the Cryptographic Message Syntax (CMS).  The ASN.1 syntax is aligned with an expected forthcoming change to American National Standard (ANS) X9.44.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5990"/>
          <seriesInfo name="DOI" value="10.17487/RFC5990"/>
        </reference>
        <reference anchor="RFC6194" target="https://www.rfc-editor.org/info/rfc6194" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6194.xml">
          <front>
            <title>Security Considerations for the SHA-0 and SHA-1 Message-Digest Algorithms</title>
            <author fullname="T. Polk" initials="T." surname="Polk"/>
            <author fullname="L. Chen" initials="L." surname="Chen"/>
            <author fullname="S. Turner" initials="S." surname="Turner"/>
            <author fullname="P. Hoffman" initials="P." surname="Hoffman"/>
            <date month="March" year="2011"/>
            <abstract>
              <t>This document includes security considerations for the SHA-0 and SHA-1 message digest algorithm.  This document is not an Internet Standards Track specification; it is published for informational purposes.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6194"/>
          <seriesInfo name="DOI" value="10.17487/RFC6194"/>
        </reference>
        <reference anchor="RFC8017" target="https://www.rfc-editor.org/info/rfc8017" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8017.xml">
          <front>
            <title>PKCS #1: RSA Cryptography Specifications Version 2.2</title>
            <author fullname="K. Moriarty" initials="K." role="editor" surname="Moriarty"/>
            <author fullname="B. Kaliski" initials="B." surname="Kaliski"/>
            <author fullname="J. Jonsson" initials="J." surname="Jonsson"/>
            <author fullname="A. Rusch" initials="A." surname="Rusch"/>
            <date month="November" year="2016"/>
            <abstract>
              <t>This document provides recommendations for the implementation of public-key cryptography based on the RSA algorithm, covering cryptographic primitives, encryption schemes, signature schemes with appendix, and ASN.1 syntax for representing keys and for identifying the schemes.</t>
              <t>This document represents a republication of PKCS #1 v2.2 from RSA Laboratories' Public-Key Cryptography Standards (PKCS) series. By publishing this RFC, change control is transferred to the IETF.</t>
              <t>This document also obsoletes RFC 3447.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8017"/>
          <seriesInfo name="DOI" value="10.17487/RFC8017"/>
        </reference>
        <reference anchor="NISTSP800-57pt1r5" target="http://dx.doi.org/10.6028/nist.sp.800-57pt1r5" xml:base="https://bib.ietf.org/public/rfc/bibxml7/reference.DOI.10.6028/NIST.SP.800-57pt1r5.xml?anchor=NISTSP800-57pt1r5">
          <front>
            <title>Recommendation for key management:</title>
            <author fullname="Elaine Barker" surname="Barker"/>
            <author>
              <organization>National Institute of Standards and Technology</organization>
            </author>
            <date month="May" year="2020"/>
          </front>
          <seriesInfo name="DOI" value="10.6028/nist.sp.800-57pt1r5"/>
        </reference>
        <reference anchor="ANS-X9.44">
          <front>
            <title>Public Key Cryptography for the Financial Services Industry -- Key Establishment Using Integer Factorization Cryptography</title>
            <author>
              <organization>American National Standards Institute</organization>
            </author>
            <date year="2007"/>
          </front>
          <seriesInfo name="American National Standard" value="X9.44"/>
        </reference>
        <reference anchor="CMVP" target="https://csrc.nist.gov/projects/cryptographic-module-validation-program">
          <front>
            <title>Cryptographic Module Validation Program</title>
            <author>
              <organization>National Institute of Standards and Technology</organization>
            </author>
            <date year="2016"/>
          </front>
        </reference>
        <reference anchor="SHOUP" target="https://eprint.iacr.org/2001/112">
          <front>
            <title>A Proposal for an ISO Standard for Public Key Encryption</title>
            <author initials="V." surname="Shoup" fullname="Victor Shoup">
              <organization/>
            </author>
            <date year="2001"/>
          </front>
          <seriesInfo name="Cryptology ePrint Archive" value="Paper 2001/112"/>
        </reference>
      </references>
    </references>
    <section anchor="app-alg">
      <name>RSA-KEM Algorithm</name>
      <t>The RSA-KEM Algorithm is a one-pass (store-and-forward) cryptographic
mechanism for an originator to securely send keying material to a recipient
using the recipient's RSA public key.</t>
      <t>With this type of algorithm, an originator encrypts the keying material
using the recipient's public key, and then sends the resulting encrypted
keying material to the recipient.  The recipient decrypts the encrypted
keying material using the recipient's private key to recover the keying
material.</t>
      <section anchor="underlying-components-1">
        <name>Underlying Components</name>
        <t>The RSA-KEM Algorithm has the following underlying components:</t>
        <ul spacing="normal">
          <li>KDF, a key-derivation function, which derives key-encryption key of a
specified length from a shared secret value;</li>
          <li>Wrap, a symmetric key-encryption algorithm, which encrypts keying material
using key-encryption key that was produced by the KDF.</li>
        </ul>
        <t>The kekLen value denotes the length in bytes of the key-encryption key
for the underlying symmetric key-encryption algorithm.</t>
        <t>The length of the keying material <bcp14>MUST</bcp14> be among the lengths supported by
the underlying symmetric key-encryption algorithm.  For example, the
AES-Wrap key-encryption algorithm requires the kekLen to be 16, 24,
or 32 octets.  Usage and formatting of the keying material is outside
the scope of the RSA-KEM Algorithm.</t>
        <t>Many key-derivation functions support the inclusion of other information
in addition to the shared secret value in the input to the function.
Also, with some symmetric key-encryption algorithms, it is possible to
associate a label with the keying material.  Such uses are outside the scope
of this document, as they are not directly supported by CMS.</t>
      </section>
      <section anchor="originators-operations">
        <name>Originator's Operations</name>
        <t>Let (n,e) be the recipient's RSA public key; see <xref target="RFC8017"/> for details.</t>
        <t>Let K be the keying material to be securely transferred from the originator
to the recipient.</t>
        <t>Let nLen denote the length in bytes of the modulus n, i.e., the least
integer such that 2^(8*nLen) &gt; n.</t>
        <t>The originator performs the following operations:</t>
        <ol spacing="normal" type="1"><li>
            <t>Generate a random integer z between 0 and n-1 (see note), and
convert z to a byte string Z of length nLen, most significant byte
first:  </t>
            <artwork><![CDATA[
     z = RandomInteger (0, n-1)

     Z = IntegerToString (z, nLen)
]]></artwork>
          </li>
          <li>
            <t>Encrypt the random integer z using the recipient's RSA public key
(n,e), and convert the resulting integer c to a ciphertext C, a
byte string of length nLen:  </t>
            <artwork><![CDATA[
     c = z^e mod n

     C = IntegerToString (c, nLen)
]]></artwork>
          </li>
          <li>
            <t>Derive a symmetric key-encryption key KEK of length kekLen bytes
from the byte string Z using the underlying key-derivation function:  </t>
            <artwork><![CDATA[
     KEK = KDF (Z, kekLen)
]]></artwork>
          </li>
          <li>
            <t>Wrap the keying material K with the symmetric key-encryption key
KEK using the key-encryption algorithm to obtain wrapped keying
material WK:  </t>
            <artwork><![CDATA[
     WK = Wrap (KEK, K)
]]></artwork>
          </li>
          <li>Send the ciphertext C and the wrapped keying material WK to the recipient.</li>
        </ol>
        <t>NOTE: The random integer z <bcp14>MUST</bcp14> be generated independently at random
for different encryption operations, whether for the same or
different recipients.</t>
      </section>
      <section anchor="recipients-operations">
        <name>Recipient's Operations</name>
        <t>Let (n,d) be the recipient's RSA private key; see <xref target="RFC8017"/> for details,
but other private key formats are allowed.</t>
        <t>Let WK be the encrypted keying material.</t>
        <t>Let C be the ciphertext.</t>
        <t>Let nLen denote the length in bytes of the modulus n.</t>
        <t>The recipient performs the following operations:</t>
        <ol spacing="normal" type="1"><li>If the length of the encrypted keying material is less than nLen
bytes, output "decryption error", and stop.</li>
          <li>
            <t>Convert the ciphertext C to an integer c, most significant byte
first.  Decrypt the integer c using the recipient's private key
(n,d) to recover an integer z (see NOTE below):  </t>
            <artwork><![CDATA[
     c = StringToInteger (C)

     z = c^d mod n
]]></artwork>
            <t>
If the integer c is not between 0 and n-1, output "decryption
error", and stop.</t>
          </li>
          <li>
            <t>Convert the integer z to a byte string Z of length nLen, most
significant byte first (see NOTE below):  </t>
            <artwork><![CDATA[
     Z = IntegerToString (z, nLen)
]]></artwork>
          </li>
          <li>
            <t>Derive a symmetric key-encryption key KEK of length kekLen bytes from
the byte string Z using the key-derivation function (see NOTE below):  </t>
            <artwork><![CDATA[
     KEK = KDF (Z, kekLen)
]]></artwork>
          </li>
          <li>
            <t>Unwrap the wrapped keying material WK with the symmetric
key-encryption key KEK using the underlying key-encryption
algorithm to recover the keying material K:  </t>
            <artwork><![CDATA[
     K = Unwrap (KEK, WK)
]]></artwork>
            <t>
If the unwrapping operation outputs an error, output "decryption
error", and stop.</t>
          </li>
          <li>Output the keying material K.</li>
        </ol>
        <t>NOTE: Implementations <bcp14>SHOULD NOT</bcp14> reveal information about the
integer z, the string Z, or about the calculation of the
exponentiation in Step 2, the conversion in Step 3, or the key
derivation in Step 4, whether by timing or other "side channels".
The observable behavior of the implementation <bcp14>SHOULD</bcp14> be the same at
these steps for all ciphertexts C that are in range.  For example,
IntegerToString conversion should take the same amount of time
regardless of the actual value of the integer z.  The integer z, the
string Z, and other intermediate results <bcp14>MUST</bcp14> be securely deleted
when they are no longer needed.</t>
      </section>
    </section>
    <section anchor="app-asn1">
      <name>ASN.1 Syntax</name>
      <t>The ASN.1 syntax for identifying the RSA-KEM Algorithm
is an extension of the syntax for the "generic hybrid cipher" in
ANS X9.44 <xref target="ANS-X9.44"/>.</t>
      <t>The ASN.1 Module is unchanged from RFC 5990.  The id-rsa-kem
object identifier is used in a backward compatible manner
in certificates <xref target="RFC5280"/> and SMIMECapabilities <xref target="RFC8551"/>.
Of course, the use of the id-kem-rsa object identifier in the
new KEMRecipientInfo structure <xref target="I-D.housley-lamps-cms-kemri"/>
was not yet defined at the time that RFC 5990 was written.</t>
      <section anchor="app-asn1-intro">
        <name>Underlying Components</name>
        <t>Implementations that conform to this specification <bcp14>MUST</bcp14> support
the KDF3 <xref target="ANS-X9.44"/> key-derivation function using SHA-256 <xref target="SHS"/>.</t>
        <t>The object identifier for KDF3 is:</t>
        <artwork><![CDATA[
   id-kdf-kdf3 OBJECT IDENTIFIER ::= { x9-44-components kdf3(2) }
]]></artwork>
        <t>The KDF3 parameters identify the underlying hash function.  For
alignment with the ANS X9.44, the hash function <bcp14>MUST</bcp14> be an ASC X9-approved
hash function.  While the SHA-1 hash algorithm is included in the 
ASN.1 definitions, SHA-1 <bcp14>MUST NOT</bcp14> be used.  SHA-1 is considered
to be obsolete; see <xref target="RFC6194"/>.  SHA-1 remains in the ASN.1 module for
compatibility with RFC 5990.  In addition, other hash functions <bcp14>MAY</bcp14> be
used with CMS.</t>
        <artwork><![CDATA[
   kda-kdf3 KEY-DERIVATION ::= {
      IDENTIFIER id-kdf-kdf3
      PARAMS TYPE KDF3-HashFunction ARE required
      -- No S/MIME caps defined -- }

   KDF3-HashFunction ::=
      AlgorithmIdentifier { DIGEST-ALGORITHM, {KDF3-HashFunctions} }

   KDF3-HashFunctions DIGEST-ALGORITHM ::= { X9-HashFunctions, ... }

   X9-HashFunctions DIGEST-ALGORITHM ::= {
      mda-sha1 | mda-sha224 ! mda-sha256 ! mda-sha384 |
      mda-sha512, ... }
]]></artwork>
        <t>Implementations that conform to this specification <bcp14>MUST</bcp14> support
the AES Key Wrap <xref target="RFC3394"/> key-encryption algorithm with a 128-bit
key.  There are three object identifiers for the AES Key Wrap, one for
each permitted size of the key-encryption key.  There are three object
identifiers imported from <xref target="RFC5912"/>, and none of these algorithm
identifiers have associated parameters:</t>
        <artwork><![CDATA[
   kwa-aes128-wrap KEY-WRAP ::= {
       IDENTIFIER id-aes128-wrap
       PARAMS ARE absent
       SMIME-CAPS { IDENTIFIED BY id-aes128-wrap } }

   kwa-aes192-wrap KEY-WRAP ::= {
       IDENTIFIER id-aes192-wrap
       PARAMS ARE absent
       SMIME-CAPS { IDENTIFIED BY id-aes192-wrap } }

   kwa-aes256-wrap KEY-WRAP ::= {
       IDENTIFIER id-aes256-wrap
       PARAMS ARE absent
       SMIME-CAPS { IDENTIFIED BY id-aes256-wrap } }
]]></artwork>
      </section>
      <section anchor="app-asn1-module">
        <name>ASN.1 Module</name>
        <t>RFC EDITOR: Please replace TBD2 with the value assigned by IANA
during the publication of <xref target="I-D.housley-lamps-cms-kemri"/>.</t>
        <sourcecode type="asn.1" markers="true"><![CDATA[
CMS-RSA-KEM-2023
   { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)
     pkcs-9(9) smime(16) modules(0) cms-rsa-kem-2023(TBD1) }

DEFINITIONS ::= BEGIN

-- EXPORTS ALL

IMPORTS

  KEM-ALGORITHM
    FROM KEMAlgorithmInformation-2023  -- [I-D.housley-lamps-cms-kemri]
       { iso(1) identified-organization(3) dod(6) internet(1)
         security(5) mechanisms(5) pkix(7) id-mod(0)
         id-mod-kemAlgorithmInformation-2023(TBD3) }

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

  kwa-aes128-wrap, kwa-aes192-wrap, kwa-aes256-wrap
    FROM CMSAesRsaesOaep-2009  -- [RFC5911]
      { iso(1) member-body(2) us(840) rsadsi(113549)
        pkcs(1) pkcs-9(9) smime(16) modules(0)
        id-mod-cms-aes-02(38) }

  kwa-3DESWrap
    FROM CryptographicMessageSyntaxAlgorithms-2009  -- [RFC5911]
      { iso(1) member-body(2) us(840) rsadsi(113549)
        pkcs(1) pkcs-9(9) smime(16) modules(0)
        id-mod-cmsalg-2001-02(37) }

  id-camellia128-wrap, id-camellia192-wrap, id-camellia256-wrap
    FROM CamelliaEncryptionAlgorithmInCMS  -- [RFC3657]
      { iso(1) member-body(2) us(840) rsadsi(113549)
        pkcs(1) pkcs9(9) smime(16) modules(0)
        id-mod-cms-camellia(23) }

  mda-sha1, pk-rsa, RSAPublicKey
    FROM PKIXAlgs-2009  -- [RFC5912]
      { iso(1) identified-organization(3) dod(6) internet(1)
        security(5) mechanisms(5) pkix(7) id-mod(0)
        id-mod-pkix1-algorithms2008-02(56) }

  mda-sha224, mda-sha256, mda-sha384, mda-sha512
    FROM PKIX1-PSS-OAEP-Algorithms-2009  -- [RFC5912]
      { iso(1) identified-organization(3) dod(6) internet(1)
        security(5) mechanisms(5) pkix(7) id-mod(0)
        id-mod-pkix1-rsa-pkalgs-02(54) } ;


-- Useful types and definitions

OID ::= OBJECT IDENTIFIER  -- alias

NullParms ::= NULL

-- ISO/IEC 18033-2 arc

is18033-2 OID ::= { iso(1) standard(0) is18033(18033) part2(2) }

-- NIST algorithm arc

nistAlgorithm OID ::= { joint-iso-itu-t(2) country(16) us(840)
   organization(1) gov(101) csor(3) nistAlgorithm(4) }

-- PKCS #1 arc

pkcs-1 OID ::= { iso(1) member-body(2) us(840) rsadsi(113549)
   pkcs(1) pkcs-1(1) }

-- X9.44 arc

x9-44 OID ::= { iso(1) identified-organization(3) tc68(133)
   country(16) x9(840) x9Standards(9) x9-44(44) }

x9-44-components OID ::= { x9-44 components(1) }

-- RSA-KEM Algorithm

id-rsa-kem OID ::= { iso(1) member-body(2) us(840) rsadsi(113549)
   pkcs(1) pkcs-9(9) smime(16) alg(3) 14 }

GenericHybridParameters ::= SEQUENCE {
   kem  KeyEncapsulationMechanism,
   dem  DataEncapsulationMechanism }

KeyEncapsulationMechanism ::=
   AlgorithmIdentifier { KEM-ALGORITHM, {KEMAlgorithms} }

KEMAlgorithms KEM-ALGORITHM ::= { kema-kem-rsa, ... }

kema-kem-rsa KEM-ALGORITHM ::= {
   IDENTIFIER id-kem-rsa
   PARAMS TYPE RsaKemParameters ARE optional
   PUBLIC-KEYS { pk-rsa | pk-rsa-kem }
   UKM ARE optional
   SMIME-CAPS { TYPE GenericHybridParameters
      IDENTIFIED BY id-rsa-kem } }

id-kem-rsa OID ::= { is18033-2 key-encapsulation-mechanism(2)
   rsa(4) }

RsaKemParameters ::= SEQUENCE {
   keyDerivationFunction  KeyDerivationFunction,
   keyLength              KeyLength }

pk-rsa-kem PUBLIC-KEY ::= {
  IDENTIFIER id-rsa-kem
  KEY RSAPublicKey
  PARAMS TYPE GenericHybridParameters ARE preferredAbsent
  -- Private key format is not specified here --
  CERT-KEY-USAGE {keyEncipherment} }

KeyDerivationFunction ::=
   AlgorithmIdentifier { KEY-DERIVATION, {KDFAlgorithms} }

KDFAlgorithms KEY-DERIVATION ::= { kda-kdf2 | kda-kdf3, ... }

KeyLength ::= INTEGER (1..MAX)

DataEncapsulationMechanism ::=
   AlgorithmIdentifier { KEY-WRAP, {DEMAlgorithms} }

DEMAlgorithms KEY-WRAP ::= {
   X9-SymmetricKeyWrappingSchemes |
   Camellia-KeyWrappingSchemes, ... }

X9-SymmetricKeyWrappingSchemes KEY-WRAP ::= {
   kwa-aes128-wrap | kwa-aes192-wrap | kwa-aes256-wrap |
   kwa-3DESWrap, ... }

X9-SymmetricKeyWrappingScheme ::=
   AlgorithmIdentifier { KEY-WRAP, {X9-SymmetricKeyWrappingSchemes} }

Camellia-KeyWrappingSchemes KEY-WRAP ::= {
   kwa-camellia128-wrap | kwa-camellia192-wrap |
   kwa-camellia256-wrap, ... }

Camellia-KeyWrappingScheme ::=
   AlgorithmIdentifier { KEY-WRAP, {Camellia-KeyWrappingSchemes} }

kwa-camellia128-wrap KEY-WRAP ::= {
   IDENTIFIER id-camellia128-wrap
   PARAMS ARE absent
   SMIME-CAPS { IDENTIFIED BY id-camellia128-wrap } }
   
kwa-camellia192-wrap KEY-WRAP ::= {
   IDENTIFIER id-camellia192-wrap
   PARAMS ARE absent
   SMIME-CAPS { IDENTIFIED BY id-camellia192-wrap } }

kwa-camellia256-wrap KEY-WRAP ::= {
   IDENTIFIER id-camellia256-wrap
   PARAMS ARE absent
   SMIME-CAPS { IDENTIFIED BY id-camellia256-wrap } }

-- Key Derivation Functions

id-kdf-kdf2 OID ::= { x9-44-components kdf2(1) }

kda-kdf2 KEY-DERIVATION ::= {
   IDENTIFIER id-kdf-kdf2
   PARAMS TYPE KDF2-HashFunction ARE required
   -- No S/MIME caps defined -- }

KDF2-HashFunction ::=
   AlgorithmIdentifier { DIGEST-ALGORITHM, {KDF2-HashFunctions} }

KDF2-HashFunctions DIGEST-ALGORITHM ::= { X9-HashFunctions, ... }

id-kdf-kdf3 OID ::= { x9-44-components kdf3(2) }

kda-kdf3 KEY-DERIVATION ::= {
   IDENTIFIER id-kdf-kdf3
   PARAMS TYPE KDF3-HashFunction ARE required
   -- No S/MIME caps defined -- }

KDF3-HashFunction ::=
   AlgorithmIdentifier { DIGEST-ALGORITHM, {KDF3-HashFunctions} }

KDF3-HashFunctions DIGEST-ALGORITHM ::= { X9-HashFunctions, ... }

-- Hash Functions

X9-HashFunctions DIGEST-ALGORITHM ::= {
   mda-sha1 | mda-sha224 | mda-sha256 | mda-sha384 |
   mda-sha512, ... }

END
]]></sourcecode>
      </section>
    </section>
    <section anchor="app-example">
      <name>SMIMECapabilities Examples</name>
      <t>To indicate support for the RSA-KEM algorithm coupled with the KDF3
key-derivation function with SHA-256 and the AES Key Wrap symmetric
key-encryption algorithm 128-bit key-encryption key, the
SMIMECapabilities will include the following entry:</t>
      <artwork><![CDATA[
SEQUENCE {
   id-rsa-kem,                                -- RSA-KEM Algorithm
   SEQUENCE {                           -- GenericHybridParameters
      SEQUENCE {                    -- key encapsulation mechanism
         id-kem-rsa,                                    -- RSA-KEM
         SEQUENCE {                            -- RsaKemParameters
            SEQUENCE {                  -- key derivation function
               id-kdf-kdf3,                                -- KDF3
               SEQUENCE {                     -- KDF3-HashFunction
                  id-sha256  -- SHA-256; no parameters (preferred)
               },
            16                              -- KEK length in bytes
            },
      SEQUENCE {                   -- data encapsulation mechanism
         id-aes128-Wrap             -- AES-128 Wrap; no parameters
      }
   }
}
]]></artwork>
      <t>This SMIMECapability value has the following DER encoding (in hexadecimal):</t>
      <artwork><![CDATA[
30 47
  06 0b 2a 86 48 86 f7 0d 01 09 10 03 0e           -- id-rsa-kem
  30 38
     30 29
        06 07 28 81 8c 71 02 02 04                 -- id-kem-rsa
        30 1e
           30 19
              06 0a 2b 81 05 10 86 48 09 2c 01 02  -- id-kdf-kdf3
              30 0b
                 06 09 60 86 48 01 65 03 04 02 01  -- id-sha256
                 02 01 10                          -- 16 bytes
      30 0b
         06 09 60 86 48 01 65 03 04 01 05         -- id-aes128-Wrap
]]></artwork>
      <t>To indicate support for the RSA-KEM algorithm coupled with the KDF3
key-derivation function with SHA-384 and the AES Key Wrap symmetric
key-encryption algorithm 192-bit key-encryption key, the
SMIMECapabilities will include the following SMIMECapability value
(in hexadecimal):</t>
      <artwork><![CDATA[
  30 47 06 0b 2a 86 48 86 f7 0d 01 09 10 03 0e 30
  38 30 29 06 07 28 81 8c 71 02 02 04 30 1e 30 19
  06 0a 2b 81 05 10 86 48 09 2c 01 02 30 0b 06 09
  60 86 48 01 65 03 04 02 02 02 01 18 30 0b 06 09
  60 86 48 01 65 03 04 01 19
]]></artwork>
      <t>To indicate support for the RSA-KEM algorithm coupled with the KDF3
key-derivation function with SHA-512 and the AES Key Wrap symmetric
key-encryption algorithm 256-bit key-encryption key, the
SMIMECapabilities will include the following SMIMECapability value
(in hexadecimal):</t>
      <artwork><![CDATA[
  30 47 06 0b 2a 86 48 86 f7 0d 01 09 10 03 0e 30
  38 30 29 06 07 28 81 8c 71 02 02 04 30 1e 30 19
  06 0a 2b 81 05 10 86 48 09 2c 01 02 30 0b 06 09
  60 86 48 01 65 03 04 02 03 02 01 20 30 0b 06 09
  60 86 48 01 65 03 04 01 2d
]]></artwork>
    </section>
    <section numbered="false" anchor="acknowledgements">
      <name>Acknowledgements</name>
      <t>We thank James Randall, Burt Kaliski, and John Brainard as the
original authors of RFC 5990; this document is based on their work.</t>
      <t>We thank the members of the ASC X9F1 working group for their
contributions to drafts of ANS X9.44, which led to RFC 5990.</t>
      <t>We thank Blake Ramsdell, Jim Schaad, Magnus Nystrom, Bob Griffin,
and John Linn for helping bring RFC 5990 to fruition.</t>
    </section>
  </back>
  <!-- ##markdown-source:
H4sIAIuS62MAA+19e3PbRpL4//Mp5pQ/Ql0RNEk9LMmXraUl2lFsPU6U42Sv
bqtAYCRhBQI8DChZcbyf5T7L75P9unsemMGDopPc1l7VpXYTERzMd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