<?xml version='1.0' encoding='US-ASCII'?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
<!ENTITY RFC2119 SYSTEM "https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml">
<!ENTITY RFC5652 SYSTEM "https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5652.xml">
<!ENTITY RFC5869 SYSTEM "https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5869.xml">
<!ENTITY RFC8174 SYSTEM "https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml">
<!ENTITY RFC5911 SYSTEM "https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5911.xml">
<!ENTITY RFC5912 SYSTEM "https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5912.xml">
]>
<rfc number="8619" submissionType="IETF"  category="std" consensus="yes" ipr="trust200902">

	<?rfc compact="yes"?>
	<?rfc text-list-symbols="o*+-"?>
	<?rfc subcompact="no"?>
	<?rfc sortrefs="no"?>
	<?rfc symrefs="yes"?>
	<?rfc strict="yes"?>
	<?rfc toc="yes"?>
	<front>
	  
	  <title abbrev="HKDF OIDs">Algorithm Identifiers for the HMAC-based Extract-and-Expand Key Derivation Function (HKDF)</title>
	  
	<author fullname="Russell Housley" initials="R." surname="Housley">
	<organization abbrev="Vigil Security">Vigil Security, LLC</organization>
	<address><postal><street>515 Dranesville Road</street>
	<street>Herndon, VA 20170</street>
	<street>United States of America</street>
	</postal>
	<email>housley@vigilsec.com</email>
	</address>
	</author>

	<date month="June" year="2019"/>

<keyword>HKDF, Algorithm Identifier</keyword>

	<abstract><t>
   RFC 5869 specifies the HMAC-based Extract-and-Expand Key Derivation
   Function (HKDF) algorithm.  This document assigns algorithm
   identifiers to the HKDF algorithm when used with three common one-way
   hash functions.</t>

	</abstract>
	</front>

	<middle>
	<section title="Introduction" anchor="section-1"><t>
   The HKDF algorithm <xref target="RFC5869"/> is a key derivation function based on
   the Hashed Message Authentication Code (HMAC).  This document assigns
   algorithm identifiers to the HKDF algorithm when used with three
   common one-way hash functions.  These algorithm identifiers are
   needed to make use of the HKDF in some security protocols, such as
   the Cryptographic Message Syntax (CMS) <xref target="RFC5652"/>.</t>

	<section title="Terminology" anchor="section-1.1"><t>
   
       
    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL
    NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED",
    "MAY", and "OPTIONAL" in this document are to be interpreted as
    described in BCP&nbsp;14 <xref target="RFC2119"/> <xref target="RFC8174"/> 
    when, and only when, they appear in all capitals, as shown here.
        </t>
	</section>

	<section title="ASN.1" anchor="section-1.2"><t>
   In this specification, values are generated using ASN.1 <xref target="X.680"/> using
   the Basic Encoding Rules (BER) and the Distinguished Encoding Rules
   (DER) <xref target="X.690"/>.</t>

	</section>

	</section>

	<section title="HKDF Algorithm Identifiers" anchor="section-2"><t>
   This section assigns three algorithm identifiers to HKDF <xref target="RFC5869"/> used with
   three common one-way hash functions that are specified in <xref target="SHS"/>:
   SHA-256, SHA-384, and SHA-512.  When any of these three object
   identifiers appear within the ASN.1 type AlgorithmIdentifier, the
   parameters component of that type SHALL be absent.</t>

	<t>
   The specification of AlgorithmIdentifier is available in <xref target="RFC5911"/>,
   which evolved from the original definition in X.509
   <xref target="X.509-88"/>.</t>

	<t>
   The assigned object identifiers are:</t>

	<figure><artwork><![CDATA[
id-alg-hkdf-with-sha256 OBJECT IDENTIFIER ::= { iso(1) member-body(2)
    us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) alg(3) 28 }

id-alg-hkdf-with-sha384 OBJECT IDENTIFIER ::= { iso(1) member-body(2)
    us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) alg(3) 29 }

id-alg-hkdf-with-sha512 OBJECT IDENTIFIER ::= { iso(1) member-body(2)
    us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) alg(3) 30 }
]]></artwork>
	</figure>
	</section>

	<section title="ASN.1 Module" anchor="section-3"><t>
   This section contains the ASN.1 module for the HKDF algorithm
   identifiers.  This module imports types from other ASN.1 modules that
   are defined in <xref target="RFC5912"/>.</t>

	<figure><artwork><![CDATA[
HKDF-OID-2019
  { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9)
    smime(16) modules(0) id-mod-hkdf-oid-2019(68) }

DEFINITIONS IMPLICIT TAGS ::=
BEGIN

-- EXPORTS All

IMPORTS

AlgorithmIdentifier{}, KEY-DERIVATION
  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) } ;

--
-- Object Identifiers
--

id-alg-hkdf-with-sha256 OBJECT IDENTIFIER ::= { iso(1) member-body(2)
    us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) alg(3) 28 }

id-alg-hkdf-with-sha384 OBJECT IDENTIFIER ::= { iso(1) member-body(2)
    us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) alg(3) 29 }

id-alg-hkdf-with-sha512 OBJECT IDENTIFIER ::= { iso(1) member-body(2)
    us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) alg(3) 30 }

--
-- Key Derivation Algorithm Identifiers
--

KeyDevAlgs KEY-DERIVATION ::= {
  kda-hkdf-with-sha256 |
  kda-hkdf-with-sha384 |
  kda-hkdf-with-sha512,
  ... }

kda-hkdf-with-sha256 KEY-DERIVATION ::= {
    IDENTIFIER id-alg-hkdf-with-sha256
    PARAMS ARE absent
    SMIME-CAPS { IDENTIFIED BY id-alg-hkdf-with-sha256 } }

kda-hkdf-with-sha384 KEY-DERIVATION ::= {
    IDENTIFIER id-alg-hkdf-with-sha384
    PARAMS ARE absent
    SMIME-CAPS { IDENTIFIED BY id-alg-hkdf-with-sha384 } }

kda-hkdf-with-sha512 KEY-DERIVATION ::= {
    IDENTIFIER id-alg-hkdf-with-sha512
    PARAMS ARE absent
    SMIME-CAPS { IDENTIFIED BY id-alg-hkdf-with-sha512 } }

END
]]></artwork>
	</figure>
	</section>

	<section title="Security Considerations" anchor="section-4"><t>
   Despite the simplicity of HKDF, there are many security
   considerations that have been taken into account in the design and
   analysis of this construction.  An exposition of all of these aspects
   is well beyond the scope of this document.  Please refer to <xref target="EPRINT"/>
   for detailed information, including rationale for the HKDF design.</t>

	</section>

	<section title="IANA Considerations" anchor="section-5"><t>
   One object identifier for the ASN.1 module in <xref target="section-3"/> was
   assigned in the "SMI Security for S/MIME Module Identifiers
   (1.2.840.113549.1.9.16.0)" registry <xref target="IANA-MOD"/>:</t>

	<figure><artwork><![CDATA[
id-mod-hkdf-oid-2019 OBJECT IDENTIFIER ::= {
   iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)
   pkcs-9(9) smime(16) mod(0) 68 }
]]></artwork>
	</figure>
	<t>
   Three object identifiers for the HKDF algorithm identifiers were
   assigned in the "SMI Security for S/MIME Algorithms
   (1.2.840.113549.1.9.16.3)" registry <xref target="IANA-ALG"/>:</t>

	<figure><artwork><![CDATA[
id-alg-hkdf-with-sha256 OBJECT IDENTIFIER ::= { iso(1) member-body(2)
    us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) alg(3) 28 }

id-alg-hkdf-with-sha384 OBJECT IDENTIFIER ::= { iso(1) member-body(2)
    us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) alg(3) 29 }

id-alg-hkdf-with-sha512 OBJECT IDENTIFIER ::= { iso(1) member-body(2)
    us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) alg(3) 30 }
]]></artwork>
	</figure>
	</section>

	</middle>

	<back>
	<references title="Normative References">
	<reference anchor="SHS"><front>
	<title>Secure Hash Standard (SHS)</title>
	<author>
	<organization>National Institute of Standards and Technology (NIST)</organization>
	</author>

	<date month="August" year="2015"/>
	</front>

	<seriesInfo name="FIPS" value="PUB 180-4"/>
<seriesInfo name="DOI" value="10.6028/NIST.FIPS.180-4"/>
	</reference>
	&RFC2119;
	&RFC5652;
	&RFC5869;
	&RFC8174;
	<reference anchor="X.680"><front>
	<title>Information technology -- Abstract Syntax Notation One (ASN.1): Specification of basic notation</title>
	<author>
	<organization>ITU-T</organization>
	</author>

	<date month="August" year="2015"/>
	</front>

	<seriesInfo name="ITU-T" value="Recommendation X.680"/>
	<seriesInfo name="ISO/IEC" value="8824-1:2015"/>
	</reference>
	<reference anchor="X.690"><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 month="August" year="2015"/>
	</front>

	<seriesInfo name="ITU-T" value="Recommendation X.690"/>
	<seriesInfo name="ISO/IEC" value="8825-1:2015"/>
	</reference>
	</references>
	<references title="Informative References">
	<reference anchor="EPRINT" target="https://eprint.iacr.org/2010/264.pdf"><front>
	<title>Cryptographic Extraction and Key Derivation: The HKDF Scheme</title>
	<author fullname="H. Krawczyk" initials="H." surname="Krawczyk">
	</author>

	<date month="August" year="2010"/>
	</front>

	<seriesInfo name="Proceedings" value="of CRYPTO 2010"/>
	</reference>
	<reference anchor="IANA-ALG" target="https://www.iana.org/assignments/smi-numbers/"><front>
	<title>SMI Security for S/MIME Algorithms (1.2.840.113549.1.9.16.3)</title>
	<author>
	<organization>IANA</organization>
	</author>

	<date/>
	</front>

	</reference>
	<reference anchor="IANA-MOD" target="https://www.iana.org/assignments/smi-numbers/"><front>
	<title>SMI Security for S/MIME Module Identifier (1.2.840.113549.1.9.16.0)</title>
	<author>
	<organization>IANA</organization>
	</author>

	<date/>
	</front>

	</reference>
	&RFC5911;
	&RFC5912;
	<reference anchor="X.509-88"><front>
	<title>Recommendation X.509: The Directory - Authentication Framework</title>
	<author>
	<organization>CCITT</organization>
	</author>

	<date year="1988"/>
	</front>

	</reference>
	</references>
	</back>

	</rfc>
	
