Movatterモバイル変換


[0]ホーム

URL:


RFC 9045CRMF Algorithm Requirements UpdateJune 2021
HousleyStandards Track[Page]
Stream:
Internet Engineering Task Force (IETF)
RFC:
9045
Updates:
4211
Category:
Standards Track
Published:
ISSN:
2070-1721
Author:
R. Housley
Vigil Security

RFC 9045

Algorithm Requirements Update to the Internet X.509 Public Key Infrastructure Certificate Request Message Format (CRMF)

Abstract

This document updates the cryptographic algorithm requirements for thePassword-Based Message Authentication Code in the Internet X.509 PublicKey Infrastructure Certificate Request Message Format (CRMF) specified inRFC 4211.

Status of This Memo

This is an Internet Standards Track document.

This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Further information on Internet Standards is available in Section 2 of RFC 7841.

Information about the current status of this document, any errata, and how to provide feedback on it may be obtained athttps://www.rfc-editor.org/info/rfc9045.

Copyright Notice

Copyright (c) 2021 IETF Trust and the persons identified as the document authors. All rights reserved.

This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.

This document may contain material from IETF Documents or IETF Contributions published or made publicly available before November 10, 2008. The person(s) controlling the copyright in some of this material may not have granted the IETF Trust the right to allow modifications of such material outside the IETF Standards Process. Without obtaining an adequate license from the person(s) controlling the copyright in such materials, this document may not be modified outside the IETF Standards Process, and derivative works of it may not be created outside the IETF Standards Process, except to format it for publication as an RFC or to translate it into languages other than English.

Table of Contents

1.Introduction

This document updates the cryptographic algorithm requirements for thePassword-Based Message Authentication Code (MAC) in the Internet X.509Public Key Infrastructure Certificate Request Message Format (CRMF)[RFC4211]. The algorithms specified in[RFC4211] were appropriate in2005; however, these algorithms are no longer considered the bestchoices:

This update specifies algorithms that are more appropriate today.

CRMF is defined using Abstract Syntax Notation One (ASN.1)[X680].

2.Terminology

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 14[RFC2119][RFC8174] when, and only when, they appear in all capitals, as shown here.

3.Signature Key POP

Section 4.1 of [RFC4211] specifies the proof-of-possession (POP)processing. This section is updated to explicitly allow the useof the PBMAC1 algorithm presented inSection 7.1 of [RFC8018].

OLD:

algId identifies the algorithm used to compute the MAC value. All implementationsMUST support id-PasswordBasedMAC. The details on this algorithm are presented in section4.4.

NEW:

algId identifies the algorithm used to compute the MAC value. All implementationsMUST support id-PasswordBasedMAC as presented inSection 4.4 of [RFC4211]. ImplementationsMAY also support PBMAC1 as presented inSection 7.1 of [RFC8018].

4.Password-Based Message Authentication Code

Section 4.4 of [RFC4211] specifies a Password-Based MAC that relies ona one-way function to compute a symmetric key from the password and a MACalgorithm. This section specifies algorithm requirements for the one-wayfunction and the MAC algorithm.

4.1.Introduction Paragraph

Add guidance about limiting the use of the password as follows:

OLD:

This MAC algorithm was designed to take a shared secret (a password) and use it to compute a check value over a piece of information. The assumption is that, without the password, the correct check value cannot be computed. The algorithm computes the one-way function multiple times in order to slow down any dictionary attacks against the password value.

NEW:

This MAC algorithm was designed to take a shared secret (a password) and use it to compute a check value over a piece of information. The assumption is that, without the password, the correct check value cannot be computed. The algorithm computes the one-way function multiple times in order to slow down any dictionary attacks against the password value. The password used to compute this MACSHOULD NOT be used for any other purpose.

4.2.One-Way Function

Change the paragraph describing the "owf" as follows:

OLD:

owf identifies the algorithm and associated parameters used to compute the key used in the MAC process. All implementationsMUST support SHA-1.

NEW:

owf identifies the algorithm and associated parameters used to compute the key used in the MAC process. All implementationsMUST support SHA-256[SHS].

4.3.Iteration Count

Update the guidance on appropriate iteration count values as follows:

OLD:

iterationCount identifies the number of times the hash is applied during the key computation process. The iterationCountMUST be a minimum of 100. Many people suggest using values as high as 1000 iterations as the minimum value. The trade off here is between protection of the password from attacks and the time spent by the server processing all of the different iterations in deriving passwords. Hashing is generally considered a cheap operation but this may not be true with all hash functions in the future.

NEW:

iterationCount identifies the number of times the hash is applied during the key computation process. The iterationCountMUST be a minimum of 100; however, the iterationCountSHOULD be as large as server performance will allow, typically at least 10,000[DIGALM]. There is a trade-off between protection of the password from attacks and the time spent by the server processing the iterations. As part of that trade-off, an iteration count smaller than 10,000 can be used when automated generation produces shared secrets with high entropy.

4.4.MAC Algorithm

Change the paragraph describing the "mac" as follows:

OLD:

mac identifies the algorithm and associated parameters of the MAC function to be used. All implementationsMUST support HMAC-SHA1[HMAC]. All implementationsSHOULD support DES-MAC and Triple-DES-MAC[PKCS11].

NEW:

mac identifies the algorithm and associated parameters of the MAC function to be used. All implementationsMUST support HMAC-SHA256[HMAC]. All implementationsSHOULD support AES-GMAC[AES][GMAC] with a 128-bit key.

For convenience, the identifiers for these two algorithms arerepeated here.

The ASN.1 algorithm identifier for HMAC-SHA256 is defined in[RFC4231]:

   id-hmacWithSHA256 OBJECT IDENTIFIER ::= { iso(1) member-body(2)      us(840) rsadsi(113549) digestAlgorithm(2) 9 }

When this object identifier is used in the ASN.1 algorithm identifier, theparametersSHOULD be present. When present, the parametersMUST contain atype of NULL as specified in[RFC4231].

The ASN.1 algorithm identifier for AES-GMAC[AES][GMAC] with a 128-bitkey is defined in[RFC9044]:

   id-aes128-GMAC OBJECT IDENTIFIER ::= { joint-iso-itu-t(2)      country(16) us(840) organization(1) gov(101) csor(3)      nistAlgorithm(4) aes(1) 9 }

When this object identifier is used in the ASN.1 algorithm identifier, theparametersMUST be present, and the parametersMUST contain theGMACParameters structure as follows:

   GMACParameters ::= SEQUENCE {      nonce        OCTET STRING,      length       MACLength DEFAULT 12 }   MACLength ::= INTEGER (12 | 13 | 14 | 15 | 16)

The GMACParameters nonce parameter is the GMAC initialization vector. Thenonce may have any number of bits between 8 and (2^64)-1, but itMUST be amultiple of 8 bits. Within the scope of any GMAC key, the nonce valueMUST be unique. A nonce value of 12 octets can be processed moreefficiently, so that length for the nonce value isRECOMMENDED.

The GMACParameters length parameter field tells the size of themessage authentication code in octets. GMAC supports lengths between12 and 16 octets, inclusive. However, for use with CRMF, the maximumlength of 16 octetsMUST be used.

5.IANA Considerations

This document has no IANA actions.

6.Security Considerations

The security of the Password-Based MAC relies on the number of times thehash function is applied as well as the entropy of the shared secret (thepassword). Hardware support for hash calculation is available at very lowcost[PHS], which reduces the protection provided by a high iterationCountvalue. Therefore, the entropy of the password is crucial for the security ofthe Password-Based MAC function. In 2010, researchers showed that about halfof the real-world passwords in a leaked corpus can be broken with less than150 million trials, indicating a median entropy of only 27 bits[DMR]. Higherentropy can be achieved by using randomly generated strings. For example,assuming an alphabet of 60 characters, a randomly chosen password with 10 charactersoffers 59 bits of entropy, and 20 characters offers 118 bits of entropy. Usinga one-time password also increases the security of the MAC, assuming that theintegrity-protected transaction will complete before the attacker is able tolearn the password with an offline attack.

Please see[RFC8018] for security considerations related to PBMAC1.

Please see[HMAC] and[SHS] for security considerations related to HMAC-SHA256.

Please see[AES] and[GMAC] for security considerations related to AES-GMAC.

Cryptographic algorithms age; they become weaker with time. As newcryptanalysis techniques are developed and computing capabilitiesimprove, the work required to break a particular cryptographicalgorithm will reduce, making an attack on the algorithm morefeasible for more attackers. While it is unknown how cryptanalyticattacks will evolve, it is certain that they will get better. It isunknown how much better they will become or when the advances willhappen. For this reason, the algorithm requirements for CRMF areupdated by this specification.

When a Password-Based MAC is used, implementations must protect thepassword and the MAC key. Compromise of either the password or the MACkey may result in the ability of an attacker to undermine authentication.

7.References

7.1.Normative References

[AES]
National Institute of Standards and Technology,"Advanced Encryption Standard (AES)",FIPS PUB 197,DOI 10.6028/NIST.FIPS.197,,<https://doi.org/10.6028/NIST.FIPS.197>.
[GMAC]
Dworkin, M.,"Recommendation for Block Cipher Modes of Operation: Galois/Counter Mode (GCM) and GMAC",NIST Special Publication 800-38D,DOI 10.6028/NIST.SP.800-38D,,<https://doi.org/10.6028/NIST.SP.800-38D>.
[HMAC]
Krawczyk, H.,Bellare, M., andR. Canetti,"HMAC: Keyed-Hashing for Message Authentication",RFC 2104,DOI 10.17487/RFC2104,,<https://www.rfc-editor.org/info/rfc2104>.
[RFC2119]
Bradner, S.,"Key words for use in RFCs to Indicate Requirement Levels",BCP 14,RFC 2119,DOI 10.17487/RFC2119,,<https://www.rfc-editor.org/info/rfc2119>.
[RFC4211]
Schaad, J.,"Internet X.509 Public Key Infrastructure Certificate Request Message Format (CRMF)",RFC 4211,DOI 10.17487/RFC4211,,<https://www.rfc-editor.org/info/rfc4211>.
[RFC8018]
Moriarty, K., Ed.,Kaliski, B., andA. Rusch,"PKCS #5: Password-Based Cryptography Specification Version 2.1",RFC 8018,DOI 10.17487/RFC8018,,<https://www.rfc-editor.org/info/rfc8018>.
[RFC8174]
Leiba, B.,"Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words",BCP 14,RFC 8174,DOI 10.17487/RFC8174,,<https://www.rfc-editor.org/info/rfc8174>.
[RFC9044]
Housley, R.,"Using the AES-GMAC Algorithm with the Cryptographic Message Syntax (CMS)",RFC 9044,DOI 10.17487/RFC9044,,<https://www.rfc-editor.org/info/rfc9044>.
[SHS]
National Institute of Standards and Technology,"Secure Hash Standard (SHS)",FIPS PUB 180-4,DOI 10.6028/NIST.FIPS.180-4,,<https://doi.org/10.6028/NIST.FIPS.180-4>.
[X680]
ITU-T,"Information technology -- Abstract Syntax Notation One (ASN.1): Specification of basic notation",ITU-T Recommendation X.680,.

7.2.Informative References

[DIGALM]
National Institute of Standards and Technology,"Digital Identity Guidelines: Authentication and Lifecycle Management",NIST Special Publication 800-63B,DOI 10.6028/NIST.SP.800-63B,,<https://doi.org/10.6028/NIST.SP.800-63B>.
[DMR]
Dell'Amico, M.,Michiardi, P., andY. Roudier,"Password Strength: An Empirical Analysis",DOI 10.1109/INFCOM.2010.5461951,,<https://doi.org/10.1109/INFCOM.2010.5461951>.
[PHS]
Pathirana, A.,Halgamuge, M., andA. Syed,"Energy Efficient Bitcoin Mining to Maximize the Mining Profit: Using Data from 119 Bitcoin Mining Hardware Setups",International Conference on Advances in Business Management and Information Technology, pp. 1-14,.
[PKCS11]
RSA Laboratories,"PKCS #11 v2.11: Cryptographic Token Interface Standard",.
[RFC4231]
Nystrom, M.,"Identifiers and Test Vectors for HMAC-SHA-224, HMAC-SHA-256, HMAC-SHA-384, and HMAC-SHA-512",RFC 4231,DOI 10.17487/RFC4231,,<https://www.rfc-editor.org/info/rfc4231>.
[RFC6194]
Polk, T.,Chen, L.,Turner, S., andP. Hoffman,"Security Considerations for the SHA-0 and SHA-1 Message-Digest Algorithms",RFC 6194,DOI 10.17487/RFC6194,,<https://www.rfc-editor.org/info/rfc6194>.
[TRANSIT]
National Institute of Standards and Technology,"Transitioning the Use of Cryptographic Algorithms and Key Lengths",NIST Special Publication 800-131Ar2,DOI 10.6028/NIST.SP.800-131Ar2,,<https://doi.org/10.6028/NIST.SP.800-131Ar2>.
[WITHDRAW]
National Institute of Standards and Technology,"NIST Withdraws Outdated Data Encryption Standard",,<https://www.nist.gov/news-events/news/2005/06/nist-withdraws-outdated-data-encryption-standard>.

Acknowledgements

Many thanks toHans Aschauer,Hendrik Brockhaus,Quynh Dang,Roman Danyliw,Lars Eggert,Tomas Gustavsson,Jonathan Hammell,Tim Hollebeek,Ben Kaduk,Erik Kline,Lijun Liao,Mike Ounsworth,Francesca Palombini,Tim Polk,Ines Robles,Mike StJohns, andSean Turnerfor their careful review and improvements.

Author's Address

Russ Housley
Vigil Security, LLC
516 Dranesville Road
Herndon,VA20170
United States of America
Email:housley@vigilsec.com

[8]ページ先頭

©2009-2025 Movatter.jp