RFC 6160
Algorithms for Cryptographic Message Syntax (CMS) Protection of Symmetric Key Package Content Types
Algorithms for Cryptographic Message Syntax (CMS) Protection of Symmetric Key Package Content Types β¨
Okay bestie, this is RFC 6160 π¦, a Standards Track doc from April 2011 by Sean Turner at IECA π . It's an IETF document, so it's the official spec-level stuff that the Internet actually runs on π. It doesn't obsolete anything and doesn't update anything either, so it's a clean standalone drop π«Ά.
Abstract πΈ
Here's the tea: this doc is all about how to use a bunch of crypto algorithms with the Cryptographic Message Syntax (CMS) so you can protect the symmetric key package content type. The specific wrappers it covers are SignedData, EnvelopedData, EncryptedData, and AuthEnvelopedData πβ¨.
Status of This Memo π
This is an Internet Standards Track document π. It's a product of the IETF, it reflects the consensus of the IETF community π, got public review, and was approved for publication by the Internet Engineering Steering Group (IESG). If you want more on what Internet Standards even are, check Section 2 of RFC 5741 π.
For the current status, any errata, or to send feedback, head to http://www.rfc-editor.org/info/rfc6160 π.
Copyright Notice π·
Copyright (c) 2011 IETF Trust and the document authors, all rights reserved π. This doc is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) as of the publication date, so read them carefully, bestie π. Any Code Components pulled from this doc have to include the Simplified BSD License text (per Section 4.e of the Trust Legal Provisions) and come with no warranty, same as the Simplified BSD License says π .
1. Introduction β¨
So this doc describes how to use a few cryptographic algorithms with CMS [RFC5652] to protect the symmetric key package content type defined in [RFC6031] π. It covers SignedData [RFC5652], EnvelopedData [RFC5652], EncryptedData [RFC5652], and AuthEnvelopedData [RFC5083] π. You're expected to already know [RFC5083], [RFC5652], [RFC5753], and [RFC6031] π, no cap.
Also, it doesn't define any brand new algorithms π ββοΈ. It just points at ones that already exist π¦.
1.1. Terminology π
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 [RFC2119] π. Those are the official BCP 14 requirement words, so they're load-bearing, periodt π.
2. SignedData πΈ
If an implementation supports SignedData, then it MUST support the signature scheme RSA [RFC3370] π₯ and SHOULD support the signature schemes RSA Probabilistic Signature Scheme (RSASSA-PSS) [RFC4056] and Digital Signature Algorithm (DSA) [RFC3370] π«Ά. Additionally, implementations MUST support the hash function SHA-256 [RFC5754] in concert with these signature schemes π , and they SHOULD support the hash function SHA-1 [RFC3370] π. If an implementation supports SignedData, then it MAY support Elliptic Curve Digital Signature Algorithm (ECDSA) [RFC6090][RFC5753] β¨.
3. EnvelopedData π§
If an implementation supports EnvelopedData, then it MUST implement key transport, and it MAY implement key agreement π.
When key transport is used, RSA encryption [RFC3370] MUST be supported, and RSA Encryption Scheme - Optimal Asymmetric Encryption Padding (RSAES-OAEP) [RFC3560] SHOULD be supported π¦.
When key agreement is used, Diffie-Hellman (DH) ephemeral-static [RFC3370] MUST be supported. When key agreement is used, Elliptic Curve Diffie-Hellman (ECDH) [RFC6090][RFC5753] MAY be supported πΈ.
Regardless of the key management technique choice, implementations MUST support AES-128 Key Wrap with Padding [RFC5649] as the content-encryption algorithm π. Implementations SHOULD support AES-256 Key Wrap with Padding [RFC5649] as the content-encryption algorithm π.
When key agreement is used, the same key-wrap algorithm MUST be used for both key and content encryption. 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 [RFC5649]. 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 [RFC5649] π. Matching is non-negotiable, iykyk π.
4. EncryptedData π
If an implementation supports EncryptedData, then it MUST implement AES-128 Key Wrap with Padding [RFC5649] and SHOULD implement AES-256 Key Wrap with Padding [RFC5649] π.
NOTE: EncryptedData requires that keys be managed by other means; therefore, the only algorithm specified is the content-encryption algorithm. π
5. AuthEnvelopedData π¦
If an implementation supports AuthEnvelopedData, then it MUST implement the EnvelopedData recommendations except for the content-encryption algorithm, which, in this case, MUST be AES-GCM [RFC5084] π₯. The 128-bit version MUST be implemented, and the 256-bit version SHOULD be implemented π . Implementations MAY also support AES-CCM [RFC5084] β¨.
6. Public Key Sizes π
The easiest way to implement SignedData, EnvelopedData, and AuthEnvelopedData is with public key certificates [RFC5280] π«Ά. If an implementation supports RSA, RSASSA-PSS, DSA, RSAES-OAEP, or Diffie-Hellman, then it MUST support key lengths from 1024-bit to 2048-bit, inclusive π. If an implementation supports ECDSA or ECDH, then it MUST support keys on P-256 πΈ.
7. Security Considerations π
Okay, serious moment, bestie π. The security considerations from [RFC3370], [RFC3560], [RFC4056], [RFC5083], [RFC5084], [RFC5649], [RFC5652], [RFC5753], [RFC5754], and [RFC6031] all apply β οΈ.
The choice of content-encryption algorithms in this doc was based on [RFC5649]:
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 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 π.
[SP800-57] provides comparable bits of security for some algorithms and key sizes π. [SP800-57] also provides time frames during which certain numbers of bits of security are appropriate, and some environments may find these time frames useful π.
8. References π
8.1. Normative References β¨
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997.
[RFC3370] Housley, R., "Cryptographic Message Syntax (CMS) Algorithms", RFC 3370, August 2002.
[RFC3560] Housley, R., "Use of the RSAES-OAEP Key Transport Algorithm in Cryptographic Message Syntax (CMS)", RFC 3560, July 2003.
[RFC4056] Schaad, J., "Use of the RSASSA-PSS Signature Algorithm in Cryptographic Message Syntax (CMS)", RFC 4056, June 2005.
[RFC5083] Housley, R., "Cryptographic Message Syntax (CMS) Authenticated-Enveloped-Data Content Type", RFC 5083, November 2007.
[RFC5084] Housley, R., "Using AES-CCM and AES-GCM Authenticated Encryption in the Cryptographic Message Syntax (CMS)", RFC 5084, November 2007.
[RFC5280] 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", RFC 5280, May 2008.
[RFC5649] Housley, R. and M. Dworkin, "Advanced Encryption Standard (AES) Key Wrap with Padding Algorithm", RFC 5649, September 2009.
[RFC5652] Housley, R., "Cryptographic Message Syntax (CMS)", STD 70, RFC 5652, September 2009.
[RFC5753] Turner, S. and D. Brown, "Use of Elliptic Curve Cryptography (ECC) Algorithms in Cryptographic Message Syntax (CMS)", RFC 5753, January 2010.
[RFC5754] Turner, S., "Using SHA2 Algorithms with Cryptographic Message Syntax", RFC 5754, January 2010.
[RFC6031] Turner, S. and R. Housley, "Cryptographic Message Syntax (CMS) Symmetric Key Package Content Type", RFC 6031, December 2010.
[RFC6090] McGrew, D., Igoe, K., and M. Salter, "Fundamental Elliptic Curve Cryptography Algorithms", RFC 6090, February 2011.
8.2. Informative Reference π§
[SP800-57] 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: turners@ieca.com
π¦ where this page comes from
- ietf: rfc6160 2011-04
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms