<?xml version="1.0" encoding="US-ASCII"?> version='1.0' encoding='utf-8'?>

<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
  <!ENTITY RFC2104 SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.2104.xml"> nbsp    "&#160;">
  <!ENTITY RFC2119 SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"> zwsp   "&#8203;">
  <!ENTITY RFC6194 SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.6194.xml"> nbhy   "&#8209;">
  <!ENTITY RFC7292 SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.7292.xml">
<!ENTITY RFC7914 SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.7914.xml">
<!ENTITY RFC8018 SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8018.xml">
<!ENTITY RFC8174 SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"> wj     "&#8288;">
]>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<?rfc strict="yes" ?>
<?rfc toc="yes"?>
<?rfc tocdepth="4"?>
<?rfc symrefs="yes"?>
<!-- use symbolic references tags, i.e, [RFC2119] instead of [1] -->
<?rfc sortrefs="yes" ?>
<!-- control vertical white space
     (using these PIs as follows is recommended by the RFC Editor) -->
<?rfc compact="yes" ?>
<!-- do not start each main section on a new page -->
<?rfc subcompact="no" ?>
<!-- keep one blank line between list items -->
<!-- end of list of popular I-D processing instructions -->

<rfc xmlns:xi="http://www.w3.org/2001/XInclude" category="info" docName="draft-ietf-lamps-pkcs12-pbmac1-08" number="9579" ipr="trust200902" updates="7292, 8018">
  <!-- ***** FRONT MATTER ***** --> 8018" obsoletes="" submissionType="IETF" xml:lang="en" consensus="true" tocInclude="true" tocDepth="4" symRefs="true" sortRefs="true" version="3">

  <front>
    <title abbrev="PBMAC1 in PKCS#12">Use PKCS #12">Use of Password Based Password-Based Message
    Authentication Code 1 (PBMAC1) in PKCS #12 Syntax</title>
    <seriesInfo name="RFC" value="9579"/>
    <author fullname="Hubert Kario" initials="H." role="editor" surname="Kario">
      <organization>Red Hat, Inc.</organization>
      <address>
        <postal>
          <street>Purkynova 115</street>
          <city>Brno</city>

          <region></region>
          <code>61200</code>
          <country>Czech Republic</country>
        </postal>

        <phone></phone>
        <email>hkario@redhat.com</email>
      </address>
    </author>
    <date day="22" month="February" year="2024" />

    <area>General</area>

    <workgroup>Internet Engineering Task Force</workgroup>

    <keyword>pbmac1, pkcs12, pbkdf2</keyword> month="May" year="2024"/>

    <area>SEC</area>
    <workgroup>lamps</workgroup>

    <keyword>pbmac1</keyword>
    <keyword>pkcs12</keyword>
    <keyword>pbkdf2</keyword>

    <abstract>
      <t>This document specifies additions and amendments to
            RFCs 7292 and 8018. It defines a way to use
            the Password Based Password-Based Message Authentication Code 1, 1 (PBMAC1), defined
            in RFC 8018, inside the PKCS #12
            syntax. The purpose of this specification is to permit the use of more
            modern Password-Based Key Derivation Functions (PBKDFs)
            and allow for regulatory compliance.
      </t>
    </abstract>
  </front>
  <middle>
    <section title="Introduction"> numbered="true" toc="default">
      <name>Introduction</name>

<t>The <xref target="RFC7292">PKCS #12</xref> PKCS #12 format <xref target="RFC7292" format="default"/> is widely used
        for the interoperable transfer of certificate, key, and other
        miscellaneous secrets between machines, applications, browsers, etc.
        Unfortunately, the original specification <xref target="RFC7292" format="default"/> mandates the use
        of a PKCS #12 specific password based password-based key derivation function, the PBKDF1,
        allowing function
        that only allows for change of the underlying message digest function.</t>
    </section>
    <section title="Rationale"> numbered="true" toc="default">
      <name>Rationale</name>

      <t>Due to security concerns with PBKDF1 the key derivation function from
      <xref target="RFC7292"/> and the much higher
      extensibility of PBMAC1 <xref target="RFC8018"/>, target="RFC8018" format="default"/>, we
      propose the use of PBMAC1 for integrity protection of PKCS #12
      structures. The new syntax is designed to allow legacy applications to
      still be able to decrypt the key material, even if they are unable to
      interpret the new integrity protection, provided that they can ignore
      failures in MAC Message Authentication Code (MAC) verification.  This change
      allows for the use of PBKDF2 <xref target="RFC8018"/> target="RFC8018" format="default"/>
      or scrypt PBKDFs <xref target="RFC7914"/>
        KDFs target="RFC7914" format="default"/> for
      derivation of MAC keys and future extensibility.  Use of the extensible
      PBMAC1 mechanism also allows for greater flexibility and alignment to with
      different government regulations, for example, in environments where
      PBKDF2 is the only allowed password-based key derivation function.
      </t>

      <t>As the recommended methods for key protection require both encryption
        and integrity protection, we've we decided to amend the PKCS #12 format
        to support different key derivation functions rather than extending the
        PKCS #5 format by a new field allowing that allows integrity protection.
      </t>

<t>We have included an ASN.1 module <xref target="x680"/> target="x680"
      format="default"/> <xref target="x681"/><xref target="x682"/><xref target="x683"/> target="x681" format="default"/> <xref target="x690"/>
      target="x682" format="default"/> <xref target="x683" format="default"/>
      <xref target="x690" format="default"/> that can be combined with the
      ASN.1 module modules in <xref target="RFC8018"/> target="RFC7292" format="default"/> and <xref
      target="RFC8018" format="default"/> to incorporate additional MAC
      algorithms.</t>
    </section>
    <section title="Requirements Language">
      <t>The numbered="true" toc="default">
      <name>Requirements Language</name>
        <t>
    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
      "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", "<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 "OPTIONAL" "<bcp14>OPTIONAL</bcp14>" in this document are to be
    interpreted as described in BCP&nbsp;14 <xref target="RFC2119"/> <xref target="RFC2119">BCP 14</xref><xref
    target="RFC8174"/> when, and only when, they appear in all capitabls, capitals, as
    shown here.</t> here.
        </t>
    </section>

    <!-- This PI places the pagebreak correctly (before the section title) in the text output. -->

    <?rfc needLines="8" ?>

    <section title="Embedding numbered="true" toc="default">
      <name>Embedding PBMAC1 in PKCS #12"> #12</name>

<t>The MacData structure in the PFX
      object, as described in
            <xref target="RFC7292">bullet item #3 in section 4 of RFC 7292</xref>, <xref target="RFC7292"
      sectionFormat="of" section="4"/>, is updated to include this additional the following PBMAC1-specific
      guidance:
        <list style="numbers">
            <t>the
      </t>
<blockquote>
      <ol spacing="normal" type="a">
        <li>
          The id-PBMAC1 object identifier is permitted as a valid type for the
          DigestAlgorithmIdentifier inside the DigestInfo object.  If the
          algorithm field of the DigestAlgorithmIdentifier is id-PBMAC1, then
          the parameters field MUST <bcp14>MUST</bcp14> be present and have
                the a
          value consistent with PBMAC1-params</t>
            <t>if PBMAC1-params parameters.
        </li>
        <li>
          If the PBMAC1 algorithm is used, the digest value of the DigestInfo
          object MUST <bcp14>MUST</bcp14> be the result of the PBMAC1 calculation
          over the authSafe field using the PBMAC1-params parameters</t>
            <t>if parameters.
        </li>
        <li>
          If the PBMAC1 algorithm is used, the macSalt value MUST
          <bcp14>MUST</bcp14> be
                ignored, for ignored. For backwards compatibility compatibility, it SHOULD NOT
          <bcp14>SHOULD NOT</bcp14> be empty</t>
            <t>if empty.
        </li>
        <li>
          If the PBMAC1 algorithm is used, the iterations value MUST
          <bcp14>MUST</bcp14> be
                ignored, for ignored. For backwards compatibility compatibility, it SHOULD
          <bcp14>SHOULD</bcp14> have a non-zero positive value</t>
        </list>
        </t> value.
        </li>
      </ol>
</blockquote>
    </section>
    <section title="Recommended parameters"> numbered="true" toc="default">
      <name>Recommended Parameters</name>

      <t>To provide interoperability between different implementations, all
      implementations of this specification MUST <bcp14>MUST</bcp14> support the PBKDF2 key derivation function
      paired with SHA-256 HMAC <xref target="SHA2"/> target="SHA2" format="default"/> <xref target="RFC2104"/>
      target="RFC2104" format="default"/> for both integrity check and as the
      PBKDF2 pseudorandom function (PRF). It's RECOMMENDED <bcp14>RECOMMENDED</bcp14> for
      implementations to support other SHA-2 based SHA-2-based HMACs.  Implementations MAY
      <bcp14>MAY</bcp14> use other hash functions, like the SHA-3 family of
      hash functions <xref target="SHA3">SHA-3</xref>. target="SHA3" format="default"/>.  Implementations MAY
      <bcp14>MAY</bcp14> use other KDF methods, like the scrypt PBKDF <xref target="RFC7914"/>.
      target="RFC7914" format="default"/>.
      </t>

      <t>The length of the key generated by the used KDF MUST <bcp14>MUST</bcp14> be encoded
        explicitly in the parameters field and SHOULD <bcp14>SHOULD</bcp14> be the same size as the
        HMAC function output size. That This means that PBMAC1-params specifying
        SHA-256 HMAC should also include KDF parameters that generate 32 octet
        long a 32-octet key. In particular, when using the PBKDF2, the implementations
        MUST
        <bcp14>MUST</bcp14> include the keyLen keyLength field in the encoded PBKDF2-params.
        Implementations MUST NOT <bcp14>MUST NOT</bcp14> accept PBKDF2 KDF with PBKDF2-params that
        omit the keyLen keyLength field.
      </t>
    </section>
    <section title="Password encoding"> numbered="true" toc="default">
      <name>Password Encoding</name>
      <t>As documented in <xref target="RFC7292">Appendix B.1 of RFC
        7292</xref> target="RFC7292" sectionFormat="of"
      section="B.1"/>, the handling of password encoding in the underlying
      standards is underspecified. However, just as with
      PBES1 and PBES2 when used in the context of PKCS#12
      PKCS #12 objects, all passwords used with PBMAC1 MUST <bcp14>MUST</bcp14> be
      created from BMPStrings with a NULL terminator.
      </t>
    </section>
    <section title="Deprecated Algorithms"> numbered="true" toc="default">
      <name>Deprecated Algorithms</name>

      <t>While attacks against SHA-1 HMACs are not considered practical
            <xref target="RFC6194"/> target="RFC6194" format="default"/> to limit the number of algorithms needed
            for interoperatbility, interoperability, implementations of this specification
            SHOULD NOT
            <bcp14>SHOULD NOT</bcp14> use PBKDF2 with the SHA-1 HMAC. Additionally
            the implementation MUST NOT In addition,
            implementations <bcp14>MUST NOT</bcp14> use any other message digest functions
            with an output of 160 bits or smaller.</t> less.</t>
    </section>

    <!-- Possibly a 'Contributors' section ... -->

    <section anchor="IANA" title="IANA Considerations"> numbered="true" toc="default">
      <name>IANA Considerations</name>
      <t>IANA is requested to assign an has registered the following object identifier from in the
         SMI
         "SMI Security for S/MIME Module Identifier registry (1.2.840.113549.1.9.16.0)" registry. See <xref target="asn1-module"/> for the ASN.1 module found in Appendix B.</t> module. </t>

<table anchor="iana-table">
  <name></name>
  <thead>
    <tr>
      <th>Decimal</th>
      <th>Description</th>
      <th>Reference</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>76</td>
      <td>id-pkcs12-pbmac1-2023</td>
      <td>RFC 9579</td>
    </tr>
  </tbody>
</table>

    </section>
    <section anchor="Security" title="Security Considerations"> numbered="true" toc="default">
      <name>Security Considerations</name>
      <t>Except for the use of different key derivation functions, this document
        doesn't change how the integrity protection on PKCS #12 objects is
        computed; therefore therefore, all the original security considerations from
        <xref target="RFC7292">RFC 7292</xref> target="RFC7292" format="default"/> apply.
      </t>
      <t>Use of PBMAC1 and PBKDF2 is unchanged from <xref target="RFC8018">
        RFC 8018</xref>; therefore target="RFC8018"
      format="default"/>; therefore, all the original security considerations from
      <xref target="RFC8018" format="default"/> apply.
      </t>
      <t>The KDFs generally don't have a lower limit for the generated
      key size, allowing specifying the specification of very small key sizes (of 1 octet), which
      can facilitate brute-force attacks on the HMAC.
      Since the KDF parameters are not cryptographically protected and
      HMACs accept arbitrary key sizes,
      implementations MAY <bcp14>MAY</bcp14> refuse to process KDF parameters that specify small
      key output sizes or weak parameters. It's RECOMMENDED <bcp14>RECOMMENDED</bcp14> to reject any KDF
      parameters that specify key lengths below less than 20 octets.
      </t>
    </section>
  </middle>

  <!--  *****BACK MATTER ***** -->

  <back>
    <!-- References split into informative and normative -->

    <references title="Normative References">
      &RFC2104;

      &RFC2119;

      &RFC6194;

      &RFC7292;

      &RFC8018;

      &RFC8174;

    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2104.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6194.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.7292.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8018.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"/>

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

        <reference anchor="x681" target="https://www.itu.int/rec/T-REC-X.681">
          <front>
            <title>Information Technology technology - Abstract Syntax
                 Notation One (ASN.1): Information object
                 specification</title>
            <author>
              <organization>ITU-T
              </organization>
            </author>
            <date month="February" year="2021"/>
          </front>
          <seriesInfo name="ITU-T Recommendation" value="X.681"/>
	  <seriesInfo name="ISO/IEC" value="8824-2:2021"/> value="8824-2:2021" />
        </reference>

        <reference anchor="x682" target="https://www.itu.int/rec/T-REC-X.682">
          <front>
            <title>Information Technology technology - Abstract Syntax
                 Notation One (ASN.1): Constraint specification</title>
            <author>
              <organization>ITU-T
              </organization>
            </author>
            <date month="February" year="2021"/>
          </front>
          <seriesInfo name="ITU-T Recommendation" value="X.682"/>
          <seriesInfo name="ISO/IEC" value="8824-3:2021"/> value="8824-3:2021" />
        </reference>

        <reference anchor="x683" target="https://www.itu.int/rec/T-REC-X.683">
        <front> <title>Information Technology technology - Abstract Syntax Notation One
        (ASN.1): Parameterization of ASN.1 specifications</title>
            <author>
              <organization>ITU-T
              </organization>
            </author>
            <date month="February" year="2021"/>
          </front>
          <seriesInfo name="ITU-T Recommendation" value="X.683"/>
          <seriesInfo name="ISO/IEC" value="8824-4:2021"/> value="8824-4:2021" />
        </reference>

        <reference anchor="x690" target="https://www.itu.int/rec/T-REC-X.690">
          <front>
            <title>Information Technology 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="February" year="2021"/>
          </front>
          <seriesInfo name="ITU-T Recommendation" value="X.690"/>
          <seriesInfo name="ISO/IEC" value="8825-1:2021"/> value="8825-1:2021" />
        </reference>

        <reference anchor="SHA2"
                 target="https://doi.org/10.6028/NIST.FIPS.180-4 "> target="https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf">
          <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 PUB" value="180-4"/>
	  <seriesInfo name="DOI" value="10.6028/NIST.FIPS.180-4"/>
        </reference>
      </references>

    <references title="Informative References">

      &RFC7914;

      <references>
        <name>Informative References</name>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.7914.xml"/>

        <reference anchor="SHA3"
                 target="https://doi.org/10.6028/NIST.FIPS.202"> target="https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf">
          <front>
            <title>SHA-3 Standard: Permutation-Based Hash and Extendable-Output
              Functions</title>
            <author>
              <organization>National Institute of Standards and Technology (NIST)
              </organization>
            </author>
            <date month="August" year="2015"/>
          </front>
	  <seriesInfo name="FIPS PUB" value="202"/>
	  <seriesInfo name="DOI" value="10.6028/NIST.FIPS.202"/>
        </reference>
      </references>
    </references>

    <section anchor="test-vectors" title="Test Vectors"> numbered="true" toc="default">
      <name>Test Vectors</name>
      <t>All test vectors use "1234" as the password for both encryption
        and integrity protection.</t>
      <section title="Valid PKCS#12 file numbered="true" toc="default">
        <name>Valid PKCS #12 File with SHA-256 HMAC and PRF"> PRF</name>
        <t>The following base64 encoded PKCS#12 base64-encoded PKCS #12 file MUST <bcp14>MUST</bcp14> be readable by
        implementations following this RFC.
        <artwork>
        </t>

<sourcecode type="test-vectors"><![CDATA[
MIIKigIBAzCCCgUGCSqGSIb3DQEHAaCCCfYEggnyMIIJ7jCCBGIGCSqGSIb3DQEH
BqCCBFMwggRPAgEAMIIESAYJKoZIhvcNAQcBMFcGCSqGSIb3DQEFDTBKMCkGCSqG
SIb3DQEFDDAcBAg9pxXxY2yscwICCAAwDAYIKoZIhvcNAgkFADAdBglghkgBZQME
ASoEEK7yYaFQDi1pYwWzm9F/fs+AggPgFIT2XapyaFgDppdvLkdvaF3HXw+zjzKb
7xFC76DtVPhVTWVHD+kIss+jsj+XyvMwY0aCuAhAG/Dig+vzWomnsqB5ssw5/kTb
+TMQ5PXLkNeoBmB6ArKeGc/QmCBQvQG/a6b+nXSWmxNpP+71772dmWmB8gcSJ0kF
Fj75NrIbmNiDMCb71Q8gOzBMFf6BpXf/3xWAJtxyic+tSNETfOJa8zTZb0+lV0w9
5eUmDrPUpuxEVbb0KJtIc63gRkcfrPtDd6Ii4Zzbzj2Evr4/S4hnrQBsiryVzJWy
IEjaD0y6+DmG0JwMgRuGi1wBoGowi37GMrDCOyOZWC4n5wHLtYyhR6JaElxbrhxP
H46z2USLKmZoF+YgEQgYcSBXMgP0t36+XQocFWYi2N5niy02TnctwF430FYsQlhJ
Suma4I33E808dJuMv8T/soF66HsD4Zj46hOf4nWmas7IaoSAbGKXgIa7KhGRJvij
xM3WOX0aqNi/8bhnxSA7fCmIy/7opyx5UYJFWGBSmHP1pBHBVmx7Ad8SAsB9MSsh
nbGjGiUk4h0QcOi29/M9WwFlo4urePyI8PK2qtVAmpD3rTLlsmgzguZ69L0Q/CFU
fbtqsMF0bgEuh8cfivd1DYFABEt1gypuwCUtCqQ7AXK2nQqOjsQCxVz9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MD/0Q
qniZjKzSZepxlZq+J792u8vtMnuzzChxu0Bf3PhIXcJNcVhwUtr0yKe/N+NvC0tm
p8wyik/BlndxN9eKbdTOi2wIi64h2QG8nOk66wQ/PSIJYwZl6eDNEQSzH/1mGCfU
QnUT17UC/p+Qgenf6Auap2GWlvsJrB7u/pytz65rtjt/ouo6Ih6EwWqwVVpGXZD0
7gVWH0Ke/Vr6aPGNvkLcmftPuDZsn9jiig3guhdeyRVf10Ox369kKWcG75q77hxE
IzSzDyUlBNbnom9SIjut3r+qVYmWONatC6q/4D0I42Lnjd3dEyZx7jmH3g/S2ASM
FzWr9pvXc61dsYOkdZ4PYa9XPUZxXFagZsoS3F1sU799+IJVU0tC0MExJTAjBgkq
hkiG9w0BCRUxFgQUwWO5DorvVWYF3BWUmAw0rUEajScwfDBtMEkGCSqGSIb3DQEF
DjA8MCwGCSqGSIb3DQEFDDAfBAhvRzw4sC4xcwICCAACASAwDAYIKoZIhvcNAgkF
ADAMBggqhkiG9w0CCQUABCB6pW2FOdcCNj87zS64NUXG36K5aXDnFHctIk5Bf4kG
3QQITk9UIFVTRUQCAQE=
        </artwork></t>
]]></sourcecode>
      </section>
      <section title="Valid PKCS#12 file numbered="true" toc="default">
        <name>Valid PKCS #12 File with SHA-256 HMAC and SHA-512 PRF"> PRF</name>
        <t>The following base64 encoded PKCS#12 base64-encoded PKCS #12 file SHOULD <bcp14>SHOULD</bcp14> be readable by
          implementations following this RFC.
          <artwork>
        </t>
<sourcecode type="test-vectors"><![CDATA[
MIIKigIBAzCCCgUGCSqGSIb3DQEHAaCCCfYEggnyMIIJ7jCCBGIGCSqGSIb3DQEH
BqCCBFMwggRPAgEAMIIESAYJKoZIhvcNAQcBMFcGCSqGSIb3DQEFDTBKMCkGCSqG
SIb3DQEFDDAcBAi4j6UBBY2iOgICCAAwDAYIKoZIhvcNAgkFADAdBglghkgBZQME
ASoEEFpHSS5zrk/9pkDo1JRbtE6AggPgtbMLGoFd5KLpVXMdcxLrT129L7/v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SqGSIb3DQEF
DjA8MCwGCSqGSIb3DQEFDDAfBAgUr2yP+/DBrgICCAACASAwDAYIKoZIhvcNAgsF
ADAMBggqhkiG9w0CCQUABCA5zFL93jw8ItGlcbHKhqkNwbgpp6layuOuxSju4/Vd
6QQITk9UIFVTRUQCAQE=
          </artwork></t>
]]></sourcecode>
      </section>
      <section title="Valid PKCS#12 file numbered="true" toc="default">
        <name>Valid PKCS #12 File with SHA-512 HMAC and PRF"> PRF</name>
        <t>The following base64 encoded PKCS#12 base64-encoded PKCS #12 file SHOULD <bcp14>SHOULD</bcp14> be readable by
          implementations following this RFC.
          <artwork>
        </t>
<sourcecode type="test-vectors"><![CDATA[
MIIKrAIBAzCCCgUGCSqGSIb3DQEHAaCCCfYEggnyMIIJ7jCCBGIGCSqGSIb3DQEH
BqCCBFMwggRPAgEAMIIESAYJKoZIhvcNAQcBMFcGCSqGSIb3DQEFDTBKMCkGCSqG
SIb3DQEFDDAcBAisrqL8obSBaQICCAAwDAYIKoZIhvcNAgkFADAdBglghkgBZQME
ASoEECjXYYca0pwsgn1Imb9WqFGAggPgT7RcF5YzEJANZU9G3tSdpCHnyWatTlhm
iCEcBGgwI5gz0+GoX+JCojgYY4g+KxeqznyCu+6GeD00T4Em7SWme9nzAfBFzng0
3lYCSnahSEKfgHerbzAtq9kgXkclPVk0Liy92/buf0Mqotjjs/5o78AqP86Pwbj8
xYNuXOU1ivO0JiW2c2HefKYvUvMYlOh99LCoZPLHPkaaZ4scAwDjFeTICU8oowVk
LKvslrg1pHbfmXHMFJ4yqub37hRtj2CoJNy4+UA2hBYlBi9WnuAJIsjv0qS3kpLe
4+J2DGe31GNG8pD01XD0l69OlailK1ykh4ap2u0KeD2z357+trCFbpWMMXQcSUCO
OcVjxYqgv/l1++9huOHoPSt224x4wZfJ7cO2zbAAx/K2CPhdvi4CBaDHADsRq/c8
SAi+LX5SCocGT51zL5KQD6pnr2ExaVum+U8a3nMPPMv9R2MfFUksYNGgFvS+lcZf
R3qk/G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B44xeZuYyvlwoD19lqcim0TSa2Tw7D1W/yu47dKrVP2
VKxRqomuAQOpoZiuSfq1/7ysrV8U4hIlIU2vnrSVJ8EtPQKsoBW5l70dQGwXyxBk
BUTHqfJ4LG/kPGRMOtUzgqFw2DjJtbym1q1MZgp2ycMon4vp7DeQLGs2XfEANB+Y
nRwtjpevqAnIuK6K3Y02LY4FXTNQpC37Xb04bmdIQAcE0MaoP4/hY87aS82PQ68g
3bI79uKo4we2g+WaEJlEzQ7147ZzV2wbDq89W69x1MWTfaDwlEtd4UaacYchAv7B
TVaaVFiRAUywWaHGePpZG2WV1feH/zd+temxWR9qMFgBZySg1jipBPVciwl0LqlW
s/raIBYmLmAaMMgM3759UkNVznDoFHrY4z2EADXp0RHHVzJS1x+yYvp/9I+AcW55
oN0UP/3uQ6eyz/ix22sovQwhMJ8rmgR6CfyRPKmXu1RPK3puNv7mbFTfTXpYN2vX
vhEZReXY8hJF/9o4G3UrJ1F0MgUHMCG86cw1z0bhPSaXVoufOnx/fRoxJTAjBgkq
hkiG9w0BCRUxFgQUwWO5DorvVWYF3BWUmAw0rUEajScwgZ0wgY0wSQYJKoZIhvcN
AQUOMDwwLAYJKoZIhvcNAQUMMB8ECFDaXOUaOcUPAgIIAAIBQDAMBggqhkiG9w0C
CwUAMAwGCCqGSIb3DQILBQAEQHIAM8C9OAsHUCj9CmOJioqf7YwD4O/b3UiZ3Wqo
F6OmQIRDc68SdkZJ6024l4nWlnhTE7a4lb2Tru4k3NOTa1oECE5PVCBVU0VEAgEB
          </artwork>
          </t>
]]></sourcecode>
      </section>
      <section title="Invalid PKCS#12 file numbered="true" toc="default">
        <name>Invalid PKCS #12 File with incorrect iteration count"> Incorrect Iteration Count</name>
        <t>The following base64 encoded PKCS#12 base64-encoded PKCS #12 file MUST NOT <bcp14>MUST NOT</bcp14> be readable
          by an implementation following this RFC when it is verifying
          itegrity
          integrity protection.
          <artwork>
        </t>
<sourcecode type="test-vectors"><![CDATA[
MIIKiwIBAzCCC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6EwWqwVVpGXZD0
7gVWH0Ke/Vr6aPGNvkLcmftPuDZsn9jiig3guhdeyRVf10Ox369kKWcG75q77hxE
IzSzDyUlBNbnom9SIjut3r+qVYmWONatC6q/4D0I42Lnjd3dEyZx7jmH3g/S2ASM
FzWr9pvXc61dsYOkdZ4PYa9XPUZxXFagZsoS3F1sU799+IJVU0tC0MExJTAjBgkq
hkiG9w0BCRUxFgQUwWO5DorvVWYF3BWUmAw0rUEajScwfTBtMEkGCSqGSIb3DQEF
DjA8MCwGCSqGSIb3DQEFDDAfBAhvRzw4sC4xcwICCAECASAwDAYIKoZIhvcNAgkF
ADAMBggqhkiG9w0CCQUABCB6pW2FOdcCNj87zS64NUXG36K5aXDnFHctIk5Bf4kG
3QQITk9UIFVTRUQCAggA
          </artwork>
          </t>
]]></sourcecode>
      </section>
      <section title="Invalid PKCS#12 file numbered="true" toc="default">
        <name>Invalid PKCS #12 File with incorrect salt"> Incorrect Salt</name>
        <t>The following base64 encoded PKCS#12 base64-encoded PKCS #12 file MUST NOT <bcp14>MUST NOT</bcp14> be readable
          by an implementation following this RFC when it is verifying
          itegrity
          integrity protection.
          <artwork>
        </t>
<sourcecode type="test-vectors"><![CDATA[
MIIKigIBAzCCCgUGCSqGSIb3DQEHAaCCCfYEggnyMIIJ7jCCBGIGCSqGSIb3DQEH
BqCCBFMwggRPAgEAMIIESAYJKoZIhvcNAQcBMFcGCSqGSIb3DQEFDTBKMCkGCSqG
SIb3DQEFDDAcBAg9pxXxY2yscwICCAAwDAYIKoZIhvcNAgkFADAdBglghkgBZQME
ASoEEK7yYaFQDi1pYwWzm9F/fs+AggPgFIT2XapyaFgDppdvLkdvaF3HXw+zjzKb
7xFC76DtVPhVTWVHD+kIss+jsj+XyvMwY0aCuAhAG/Dig+vzWomnsqB5ssw5/kTb
+TMQ5PXLkNeoBmB6ArKeGc/QmCBQvQG/a6b+nXSWmxNpP+71772dmWmB8gcSJ0kF
Fj75NrIbmNiDMCb71Q8gOzBMFf6BpX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uMXMCAQE=
          </artwork>
          </t>
]]></sourcecode>
      </section>
      <section title="Invalid PKCS#12 file numbered="true" toc="default">
        <name>Invalid PKCS #12 File with missing key length"> Missing Key Length</name>
        <t>The following base64 encoded PKCS#12 base64-encoded PKCS #12 file MUST NOT <bcp14>MUST NOT</bcp14> be readable
          by an implementation following this RFC when it is verifying
          itegrity
          integrity protection.
          <artwork>
        </t>
<sourcecode type="test-vectors"><![CDATA[
MIIKiAIBAzCCCgUGCSqGSIb3DQEHAaCCCfYEggnyMIIJ7jCCBGIGCSqGSIb3DQEH
BqCCBFMwggRPAgEAMIIESAYJKoZIhvcNAQcBMFcGCSqGSIb3DQEFDTBKMCkGCSqG
SIb3DQEFDDAcBAg9pxXxY2yscwICCAAwDAYIKoZIhvcNAgkFADAdBglghkgBZQME
ASoEEK7yYaFQDi1pYwWzm9F/fs+AggPgFIT2XapyaFgDppdvLkdvaF3HXw+zjzKb
7xFC76DtVPhVTWVHD+kIss+jsj+XyvMwY0aCuAhAG/Dig+vzWomnsqB5ssw5/kTb
+TMQ5PXLkNeoBmB6ArKeGc/QmCBQvQG/a6b+nXSWmxNpP+71772dmWmB8gcSJ0kF
Fj75NrIbmNiDMCb71Q8gOzBMFf6BpXf/3xWAJtxyic+tSNETfOJa8zTZb0+lV0w9
5eUmDrPUpuxEVbb0KJtIc63gRkcfrPtDd6Ii4Zzbzj2Evr4/S4hnrQBsiryVzJWy
IEjaD0y6+DmG0JwMgRuGi1wBoGowi37GMrDCOyOZWC4n5wHLtYyhR6JaElxbrhxP
H46z2USLKmZoF+YgEQgYcSBXMgP0t36+XQocFWYi2N5niy02TnctwF430FYsQlhJ
Suma4I33E808dJuMv8T/soF66HsD4Zj46hOf4nWmas7IaoSAbGKXgIa7KhGRJvij
xM3WOX0aqNi/8bhnxSA7fCmIy/7opyx5UYJFWGBSmHP1pBHBVmx7Ad8SAsB9MSsh
nbGjGiUk4h0QcOi29/M9WwFlo4urePyI8PK2qtVAmpD3rTLlsmgzguZ69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VclLhwl9ps/
O841pIsNLJWXwvxG6B+3LN/kw4QjwN194PopiOD7+oDm5mhttO78CrBrRxHMD/0Q
qniZjKzSZepxlZq+J792u8vtMnuzzChxu0Bf3PhIXcJNcVhwUtr0yKe/N+NvC0tm
p8wyik/BlndxN9eKbdTOi2wIi64h2QG8nOk66wQ/PSIJYwZl6eDNEQSzH/1mGCfU
QnUT17UC/p+Qgenf6Auap2GWlvsJrB7u/pytz65rtjt/ouo6Ih6EwWqwVVpGXZD0
7gVWH0Ke/Vr6aPGNvkLcmftPuDZsn9jiig3guhdeyRVf10Ox369kKWcG75q77hxE
IzSzDyUlBNbnom9SIjut3r+qVYmWONatC6q/4D0I42Lnjd3dEyZx7jmH3g/S2ASM
FzWr9pvXc61dsYOkdZ4PYa9XPUZxXFagZsoS3F1sU799+IJVU0tC0MExJTAjBgkq
hkiG9w0BCRUxFgQUwWO5DorvVWYF3BWUmAw0rUEajScwejBqMEYGCSqGSIb3DQEF
DjA5MCkGCSqGSIb3DQEFDDAcBAhvRzw4sC4xcwICCAAwDAYIKoZIhvcNAgkFADAM
BggqhkiG9w0CCQUABCB6pW2FOdcCNj87zS64NUXG36K5aXDnFHctIk5Bf4kG3QQI
b0c8OLAuMXMCAggA
          </artwork>
          </t>
]]></sourcecode>
      </section>
    </section>
    <section anchor="asn1-module" title="ASN.1 Module">
      <t>Note to RFC Editor: please change the TBD value below with the value
         assigned by IANA</t> numbered="true" toc="default">
      <name>ASN.1 Module</name>
      <t>This appendix documents ASN.1 <xref target="x680"/> target="x680"
      format="default"/> <xref target="x681" format="default"/> <xref target="x681"/><xref target="x682"/><xref target="x683"/>
      target="x682" format="default"/> <xref target="x690"/> target="x683"
      format="default"/> <xref target="x690" format="default"/> types, values,
      and object sets for this specification.  It does so by providing an
      ASN.1 module called PKCS12-PBMAC1-2023.</t>

<t>Combine this module with the PKCS-12 ASN.1 module found in Appendix
         D of <xref target="RFC8018"/>
      target="RFC7292" sectionFormat="of" section="D"/> and the pkcs5v2-1 ASN.1
      module in <xref
      target="RFC8018" sectionFormat="of" section="C"/> to add SHA-2 based SHA-2-based
      HMACs by replacing the PBKDF2-PRFs class found therein.</t>
      <artwork> referenced from
      <xref target="RFC7292"/>.</t>

<sourcecode type="asn.1"><![CDATA[
PKCS12-PBMAC1-2023
  { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
    smime(16) id-mod(0) pbkc12-pbamc1-2023(TBD) id-pkcs12-pbmac1-2023(76) }

DEFINITIONS EXPLICIT TAGS ::=
BEGIN

IMPORTS

AlgorithmIdentifier, ALGORITHM-IDENTIFIER, rsadsi
  FROM PKCS5v2-1 -- From [RFC8018]
   { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-5(5)
     modules(16) pkcs5v2-1(2) }
;

-- object identifier arcs

pkcs OBJECT IDENTIFIER ::= { rsadsi 1 }

pkcs-5 OBJECT IDENTIFIER ::= { pkcs 5 }

digestAlgorithm OBJECT IDENTIFIER ::= { rsadsi 2 }

-- HMAC object identifiers

id-hmacWithSHA1 OBJECT IDENTIFIER ::= { digestAlgorithm 7 }

id-hmacWithSHA224 OBJECT IDENTIFIER ::= { digestAlgorithm 8 }

id-hmacWithSHA256 OBJECT IDENTIFIER ::= { digestAlgorithm 9 }

id-hmacWithSHA384 OBJECT IDENTIFIER ::= { digestAlgorithm 10 }

id-hmacWithSHA512 OBJECT IDENTIFIER ::= { digestAlgorithm 11 }

id-hmacWithSHA512-224 OBJECT IDENTIFIER ::= { digestAlgorithm 12 }

id-hmacWithSHA512-256 OBJECT IDENTIFIER ::= { digestAlgorithm 13 }

-- PBKDF2-PRF algorithm identifiers

PBKDF2-PRFs ALGORITHM-IDENTIFIER ::= {
  { NULL IDENTIFIED BY id-hmacWithSHA1 }       |
  { NULL IDENTIFIED BY id-hmacWithSHA224 }     |
  { NULL IDENTIFIED BY id-hmacWithSHA256 }     |
  { NULL IDENTIFIED BY id-hmacWithSHA384 }     |
  { NULL IDENTIFIED BY id-hmacWithSHA512 }     |
  { NULL IDENTIFIED BY id-hmacWithSHA512-224 } |
  { NULL IDENTIFIED BY id-hmacWithSHA512-256 },
  ...
  }

-- HMAC algorithm identifiers

algid-hmacWithSHA1 AlgorithmIdentifier {{PBKDF2-PRFs}} ::=
  { algorithm id-hmacWithSHA1, parameters NULL : NULL }

algid-hmacWithSHA224 AlgorithmIdentifier {{PBKDF2-PRFs}} ::=
  { algorithm id-hmacWithSHA224, parameters NULL : NULL }

algid-hmacWithSHA256 AlgorithmIdentifier {{PBKDF2-PRFs}} ::=
  { algorithm id-hmacWithSHA256, parameters NULL : NULL }

algid-hmacWithSHA384 AlgorithmIdentifier {{PBKDF2-PRFs}} ::=
  { algorithm id-hmacWithSHA384, parameters NULL : NULL }

algid-hmacWithSHA512 AlgorithmIdentifier {{PBKDF2-PRFs}} ::=
  { algorithm id-hmacWithSHA512, parameters NULL : NULL }

algid-hmacWithSHA512-224 AlgorithmIdentifier {{PBKDF2-PRFs}} ::=
  { algorithm id-hmacWithSHA512-224, parameters NULL : NULL }

algid-hmacWithSHA512-256 AlgorithmIdentifier {{PBKDF2-PRFs}} ::=
  { algorithm id-hmacWithSHA512-256, parameters NULL : NULL }

-- PBMAC1-params

PBMAC1-params ::=  SEQUENCE {
  keyDerivationFunc AlgorithmIdentifier {{PBMAC1-KDFs}},
  messageAuthScheme AlgorithmIdentifier {{PBMAC1-MACs}} }

PBMAC1-KDFs ALGORITHM-IDENTIFIER ::= {
  { PBKDF2-params IDENTIFIED BY id-PBKDF2},
  ...
}

PBMAC1-MACs ALGORITHM-IDENTIFIER ::= { ... }

id-PBKDF2 OBJECT IDENTIFIER ::= { pkcs-5 12 }

PBKDF2-params ::= SEQUENCE {
  salt CHOICE {
    specified OCTET STRING,
    otherSource AlgorithmIdentifier {{PBKDF2-SaltSources}}
  },
  iterationCount INTEGER (1..MAX),
  keyLength INTEGER (1..MAX) OPTIONAL,
  prf AlgorithmIdentifier {{PBKDF2-PRFs}} DEFAULT algid-hmacWithSHA1
}

PBKDF2-SaltSources ALGORITHM-IDENTIFIER ::= { ... }

END
      </artwork>
]]></sourcecode>
    </section>
  </back>

</rfc>