6033
PROPOSED STANDARD
Algorithms for Cryptographic Message Syntax (CMS) Encrypted Key Package Content Type
Authors: S. Turner
Date: December 2010
Working Group: NON WORKING GROUP
Stream: IETF
Updated by:
RFC 6161
Abstract
This document describes the conventions for using several cryptographic algorithms with the Cryptographic Message Syntax (CMS) encrypted key package content type. Specifically, it includes conventions necessary to implement EnvelopedData, EncryptedData, and AuthEnvelopedData. [STANDARDS-TRACK]
RFC 6033
PROPOSED STANDARD
Updated by: 6161
Internet Engineering Task Force (IETF) S. Turner
Request for Comments: 6033 IECA
Category: Standards Track December 2010
ISSN: 2070-1721
<span class="h1">Algorithms for Cryptographic Message Syntax (CMS)</span>
<span class="h1">Encrypted Key Package Content Type</span>
Abstract
This document describes the conventions for using several
cryptographic algorithms with the Cryptographic Message Syntax (CMS)
encrypted key package content type. Specifically, it includes
conventions necessary to implement EnvelopedData, EncryptedData, and
AuthEnvelopedData.
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 <a href="./rfc5741#section-2">Section 2 of RFC 5741</a>.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
<a href="https://www.rfc-editor.org/info/rfc6033">http://www.rfc-editor.org/info/rfc6033</a>.
Copyright Notice
Copyright (c) 2010 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents
(<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) 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.
<span class="grey">Turner Standards Track [Page 1]</span>
<span id="page-2" ></span>
<span class="grey"><a href="./rfc6033">RFC 6033</a> Algorithms for CMS Encrypted Key Packages December 2010</span>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
This document describes the conventions for using several
cryptographic algorithms with the Cryptographic Message Syntax (CMS)
encrypted key package content type [<a href="./rfc6032" title=""Cryptographic Message Syntax (CMS) Encrypted Key Package Content Type"">RFC6032</a>]. Specifically, it
includes conventions necessary to implement the following CMS content
types: EnvelopedData [<a href="./rfc5652" title=""Cryptographic Message Syntax (CMS)"">RFC5652</a>], EncryptedData [<a href="./rfc5652" title=""Cryptographic Message Syntax (CMS)"">RFC5652</a>], and
AuthEnvelopedData [<a href="./rfc5083" title=""Cryptographic Message Syntax (CMS) Authenticated-Enveloped-Data Content Type"">RFC5083</a>].
This document does not define any new algorithms; instead, it refers
to previously defined algorithms.
<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a>. Terminology</span>
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. EnvelopedData</span>
EnvelopedData [<a href="./rfc5652" title=""Cryptographic Message Syntax (CMS)"">RFC5652</a>] supports a number of key management
techniques. Implementations that claim conformance to this document
MUST support the key transport mechanisms and SHOULD support the key
agreement mechanisms as defined below. Other techniques MAY be
supported.
When key transport is used, RSA encryption [<a href="./rfc3370" title=""Cryptographic Message Syntax (CMS) Algorithms"">RFC3370</a>] MUST be
supported and RSA Encryption Scheme - Optimal Asymmetric Encryption
Padding (RSAES-OAEP) [<a href="./rfc3560" title=""Use of the RSAES-OAEP Key Transport Algorithm in Cryptographic Message Syntax (CMS)"">RFC3560</a>] SHOULD be supported.
When key agreement is used, Ephemeral-Static Diffie-Hellman (DH)
[<a href="./rfc3370" title=""Cryptographic Message Syntax (CMS) Algorithms"">RFC3370</a>] MUST be supported.
Since the content type is used to carry a cryptographic key and its
attributes, an algorithm that is traditionally used to encrypt one
key with another is employed. Regardless of the key management
technique choice, implementations MUST support AES-128 Key Wrap with
Padding [<a href="./rfc5649" title=""Advanced Encryption Standard (AES) Key Wrap with Padding Algorithm"">RFC5649</a>] as the content-encryption algorithm.
Implementations SHOULD support AES-256 Key Wrap with Padding
[<a href="./rfc5649" title=""Advanced Encryption Standard (AES) Key Wrap with Padding Algorithm"">RFC5649</a>] as the content-encryption algorithm.
When key agreement is used, a key wrap algorithm is also specified to
wrap the content-encryption key. If the content-encryption algorithm
is AES-128 Key Wrap with Padding, then the key wrap algorithm MUST be
AES-128 Key Wrap with Padding [<a href="./rfc5649" title=""Advanced Encryption Standard (AES) Key Wrap with Padding Algorithm"">RFC5649</a>]. If the content-encryption
algorithm is AES-256 Key Wrap with Padding, then the key wrap
algorithm MUST be AES-256 Key Wrap with Padding [<a href="./rfc5649" title=""Advanced Encryption Standard (AES) Key Wrap with Padding Algorithm"">RFC5649</a>].
<span class="grey">Turner Standards Track [Page 2]</span>
<span id="page-3" ></span>
<span class="grey"><a href="./rfc6033">RFC 6033</a> Algorithms for CMS Encrypted Key Packages December 2010</span>
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. EncryptedData</span>
EncryptedData [<a href="./rfc5652" title=""Cryptographic Message Syntax (CMS)"">RFC5652</a>] requires that keys be managed by other means;
therefore, the only algorithm specified is the content-encryption
algorithm. Since the content type is used to carry a cryptographic
key and its attributes, an algorithm that is traditionally used to
encrypt one key with another is employed. Implementations MUST
support AES-128 Key Wrap with Padding [<a href="./rfc5649" title=""Advanced Encryption Standard (AES) Key Wrap with Padding Algorithm"">RFC5649</a>]. Implementations
SHOULD support AES-256 Key Wrap with Padding [<a href="./rfc5649" title=""Advanced Encryption Standard (AES) Key Wrap with Padding Algorithm"">RFC5649</a>].
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. AuthEnvelopedData</span>
AuthEnvelopedData [<a href="./rfc5083" title=""Cryptographic Message Syntax (CMS) Authenticated-Enveloped-Data Content Type"">RFC5083</a>], like EnvelopedData, supports a number of
key management techniques. The key management requirements for
AuthEnvelopedData are the same as for EnvelopedData. The difference
is the content-encryption algorithm. Implementations MUST support
128-bit AES-Galois/Counter Mode (AES-GCM) [<a href="./rfc5084" title=""Using AES-CCM and AES-GCM Authenticated Encryption in the Cryptographic Message Syntax (CMS)"">RFC5084</a>] and SHOULD
support 256-bit AES-GCM [<a href="./rfc5084" title=""Using AES-CCM and AES-GCM Authenticated Encryption in the Cryptographic Message Syntax (CMS)"">RFC5084</a>]. Implementations MAY also support
AES-Counter with CBC-MAC (AES-CCM) [<a href="./rfc5084" title=""Using AES-CCM and AES-GCM Authenticated Encryption in the Cryptographic Message Syntax (CMS)"">RFC5084</a>].
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Signed Data</span>
Implementations of SignedData [<a href="./rfc5652" title=""Cryptographic Message Syntax (CMS)"">RFC5652</a>] MUST support the signature
scheme RSA [<a href="./rfc3370" title=""Cryptographic Message Syntax (CMS) Algorithms"">RFC3370</a>] [<a href="./rfc5754" title=""Using SHA2 Algorithms with Cryptographic Message Syntax"">RFC5754</a>] and SHOULD support the signature
schemes RSA Probabilistic Signature Scheme (RSASSA-PSS) [<a href="./rfc4056" title=""Use of the RSASSA-PSS Signature Algorithm in Cryptographic Message Syntax (CMS)"">RFC4056</a>] and
Digital Signature Algorithm (DSA) [<a href="./rfc3370" title=""Cryptographic Message Syntax (CMS) Algorithms"">RFC3370</a>] [<a href="./rfc5754" title=""Using SHA2 Algorithms with Cryptographic Message Syntax"">RFC5754</a>]. Additionally,
implementations MUST support in concert with these signature schemes
the hash function SHA-256 [<a href="./rfc5754" title=""Using SHA2 Algorithms with Cryptographic Message Syntax"">RFC5754</a>] and it SHOULD support the hash
function SHA-1 [<a href="./rfc3370" title=""Cryptographic Message Syntax (CMS) Algorithms"">RFC3370</a>].
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Public Key Sizes</span>
The easiest way to implement SignedData, EnvelopedData, and
AuthEnvelopedData is with public key certificates [<a href="./rfc5280" title=""Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile"">RFC5280</a>]. If an
implementation supports RSA, RSAES-OAEP, DH, RSASSA-PSS, or DSA, then
it MUST support key lengths from 1024 bits to 2048 bits, inclusive.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Security Considerations</span>
The security considerations from [<a href="./rfc3370" title=""Cryptographic Message Syntax (CMS) Algorithms"">RFC3370</a>], [<a href="./rfc3560" title=""Use of the RSAES-OAEP Key Transport Algorithm in Cryptographic Message Syntax (CMS)"">RFC3560</a>], [<a href="./rfc4056" title=""Use of the RSASSA-PSS Signature Algorithm in Cryptographic Message Syntax (CMS)"">RFC4056</a>],
[<a href="./rfc5083" title=""Cryptographic Message Syntax (CMS) Authenticated-Enveloped-Data Content Type"">RFC5083</a>], [<a href="./rfc5084" title=""Using AES-CCM and AES-GCM Authenticated Encryption in the Cryptographic Message Syntax (CMS)"">RFC5084</a>], [<a href="./rfc5649" title=""Advanced Encryption Standard (AES) Key Wrap with Padding Algorithm"">RFC5649</a>], [<a href="./rfc5652" title=""Cryptographic Message Syntax (CMS)"">RFC5652</a>], [<a href="./rfc5754" title=""Using SHA2 Algorithms with Cryptographic Message Syntax"">RFC5754</a>], and [<a href="./rfc6032" title=""Cryptographic Message Syntax (CMS) Encrypted Key Package Content Type"">RFC6032</a>]
apply.
The choice of content-encryption algorithms for this document was
based on [<a href="./rfc5649" title=""Advanced Encryption Standard (AES) Key Wrap with Padding Algorithm"">RFC5649</a>]: "In the design of some high assurance
cryptographic modules, it is desirable to segregate cryptographic
keying material from other data. The use of a specific cryptographic
mechanism solely for the protection of cryptographic keying material
<span class="grey">Turner Standards Track [Page 3]</span>
<span id="page-4" ></span>
<span class="grey"><a href="./rfc6033">RFC 6033</a> Algorithms for CMS Encrypted Key Packages December 2010</span>
can assist in this goal". Unfortunately, there is no AES-GCM or
AES-CCM mode that provides the same properties. If an AES-GCM and
AES-CCM mode that provides the same properties is defined, then this
document will be updated to adopt that algorithm.
[<a id="ref-SP800-57">SP800-57</a>] provides comparable bits of security for some algorithms
and key sizes. [<a href="#ref-SP800-57" title=" Special Publication 800-57: Recommendation for Key Management - Part 1 (Revised)">SP800-57</a>] also provides time frames during which
certain numbers of bits of security are appropriate, and some
environments may find these time frames useful.
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. References</span>
<span class="h3"><a class="selflink" id="section-8.1" href="#section-8.1">8.1</a>. Normative References</span>
[<a id="ref-RFC2119">RFC2119</a>] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
[<a id="ref-RFC3370">RFC3370</a>] Housley, R., "Cryptographic Message Syntax (CMS)
Algorithms", <a href="./rfc3370">RFC 3370</a>, August 2002.
[<a id="ref-RFC3560">RFC3560</a>] Housley, R., "Use of the RSAES-OAEP Key Transport
Algorithm in Cryptographic Message Syntax (CMS)", <a href="./rfc3560">RFC</a>
<a href="./rfc3560">3560</a>, July 2003.
[<a id="ref-RFC4056">RFC4056</a>] Schaad, J., "Use of the RSASSA-PSS Signature Algorithm in
Cryptographic Message Syntax (CMS)", <a href="./rfc4056">RFC 4056</a>, June 2005.
[<a id="ref-RFC5083">RFC5083</a>] Housley, R., "Cryptographic Message Syntax (CMS)
Authenticated-Enveloped-Data Content Type", <a href="./rfc5083">RFC 5083</a>,
November 2007.
[<a id="ref-RFC5084">RFC5084</a>] Housley, R., "Using AES-CCM and AES-GCM Authenticated
Encryption in the Cryptographic Message Syntax (CMS)",
<a href="./rfc5084">RFC 5084</a>, November 2007.
[<a id="ref-RFC5280">RFC5280</a>] Cooper, D., Santesson, S., Farrell, S., Boeyen, S.,
Housley, R., and W. Polk, "Internet X.509 Public Key
Infrastructure Certificate and Certificate Revocation
List (CRL) Profile", <a href="./rfc5280">RFC 5280</a>, May 2008.
[<a id="ref-RFC5649">RFC5649</a>] Housley, R. and M. Dworkin, "Advanced Encryption Standard
(AES) Key Wrap with Padding Algorithm", <a href="./rfc5649">RFC 5649</a>,
September 2009.
[<a id="ref-RFC5652">RFC5652</a>] Housley, R., "Cryptographic Message Syntax (CMS)", STD
70, <a href="./rfc5652">RFC 5652</a>, September 2009.
<span class="grey">Turner Standards Track [Page 4]</span>
<span id="page-5" ></span>
<span class="grey"><a href="./rfc6033">RFC 6033</a> Algorithms for CMS Encrypted Key Packages December 2010</span>
[<a id="ref-RFC5754">RFC5754</a>] Turner, S., "Using SHA2 Algorithms with Cryptographic
Message Syntax", <a href="./rfc5754">RFC 5754</a>, January 2010.
[<a id="ref-RFC6032">RFC6032</a>] Turner, S. and R. Housley, "Cryptographic Message Syntax
(CMS) Encrypted Key Package Content Type", <a href="./rfc6032">RFC 6032</a>,
December 2010.
<span class="h3"><a class="selflink" id="section-8.2" href="#section-8.2">8.2</a>. Informative References</span>
[<a id="ref-SP800-57">SP800-57</a>] National Institute of Standards and Technology (NIST),
Special Publication 800-57: Recommendation for Key
Management - Part 1 (Revised), March 2007.
Author's Address
Sean Turner
IECA, Inc.
3057 Nutley Street, Suite 106
Fairfax, VA 22031
USA
EMail: [email protected]
Turner Standards Track [Page 5]
Annotations
Select text to annotate