RFC 3565

Use of the Advanced Encryption Standard (AES) Encryption Algorithm in Cryptographic Message Syntax (CMS)

๐Ÿ“… published July 2003, from ietf

RFC 3565: Use of the Advanced Encryption Standard (AES) Encryption Algorithm in Cryptographic Message Syntax (CMS) ๐ŸŽ€

Okay bestie, the header says this one is by J. Schaad from Soaring Hawk Consulting ๐Ÿฆ…, dated July 2003, and it's a Standards Track doc, so it's an actual Internet standard and not just a vibe ๐Ÿ’…. The header doesn't list any Obsoletes or Updates, so nothing is replaced or changed by it ๐ŸŒธ.


Status of this Memo โœจ

This document is an Internet standards track protocol spec for the Internet community, and it's asking for discussion and suggestions for improvements ๐Ÿ’ฌ. For the standardization state and status of this protocol, check the current edition of the "Internet Official Protocol Standards" (STD 1) ๐Ÿ“–. Distribution of this memo is unlimited ๐ŸŒˆ.

Copyright (C) The Internet Society (2003). All Rights Reserved. ๐Ÿ”’

Abstract

This doc lays out how to use the Advanced Encryption Standard (AES) algorithm for encryption with the Cryptographic Message Syntax (CMS) ๐Ÿ”. It's giving "here's the recipe, follow it" energy ๐Ÿ“.

Conventions used in this document

Okay so the key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be read as described in BCP 14, RFC 2119 [MUSTSHOULD] ๐Ÿง . Those capital words are the serious ones, so pay attention to them ๐Ÿ‘‘.

1. Overview ๐Ÿฆ‹

Here's the main idea: this doc is about using the Advanced Encryption Standard (AES) content encryption algorithm with the Cryptographic Message Syntax [CMS] enveloped-data and encrypted-data content types ๐Ÿ’œ.

CMS values are generated using ASN.1 [X.208-88], using the Basic Encoding Rules (BER) [X.209-88] and the Distinguished Encoding Rules (DER) [X.509-88] ๐Ÿงš.

1.1. AES โœจ

AES [AES] was made to replace DES [DES] ๐Ÿ’…. The AES Federal Information Processing Standard (FIPS) Publication describes a cryptographic algorithm for use by U.S. Government organizations ๐Ÿ‡บ๐Ÿ‡ธ. Honestly though, AES is also going to be used widely by organizations, institutions, and individuals outside of the U.S. Government, so it's not just a government thing ๐ŸŒ.

Two researchers who developed and submitted the Rijndael algorithm for consideration are both cryptographers from Belgium ๐Ÿ‡ง๐Ÿ‡ช: Dr. Joan Daemen of Proton World International, and Dr. Vincent Rijmen, a postdoctoral researcher in the Electrical Engineering Department of Katholieke Universiteit Leuven ๐ŸŽ“.

The National Institute of Standards and technology (NIST) picked the Rijndael algorithm for AES because it has a combination of security, performance, efficiency, ease of implementation, and flexibility ๐Ÿ”ฅ. Rijndael seems to be consistently a very good performer in both hardware and software across a wide range of computing environments, no matter whether it's used in feedback or non-feedback modes ๐Ÿ’–. Its key setup time is excellent, and its key agility is good โญ. Its very low memory requirements make it super well suited for restricted-space environments, and it also shows excellent performance there ๐Ÿงš. The Rijndael algorithm operations are among the easiest to defend against power and timing attacks ๐Ÿ›ก๏ธ. Also, it looks like some defense can be provided against those attacks without really hurting the algorithm's performance ๐Ÿซถ. Finally, the algorithm's internal round structure seems to have good potential to benefit from instruction-level parallelism ๐ŸŒˆ.

The AES specifies three key sizes: 128, 192 and 256 bits ๐Ÿ”‘.

2. Enveloped-data Conventions ๐Ÿ’–

The CMS enveloped-data content type is made of encrypted content and wrapped content-encryption keys for one or more recipients ๐ŸŽ€. The AES algorithm is used to encrypt the content ๐Ÿ”.

Compliant software MUST meet the requirements for constructing an enveloped-data content type stated in [CMS] Section 6, "Enveloped-data Content Type" ๐Ÿ“‹.

The AES content-encryption key MUST be randomly generated for each instance of an enveloped-data content type ๐ŸŽฒ. The content-encryption key (CEK) is what's used to encrypt the content ๐Ÿ—๏ธ.

AES can be used with the enveloped-data content type using any of the following key management techniques defined in [CMS] Section 6 ๐ŸŒธ:

  1. Key Transport: The AES CEK is uniquely wrapped for each recipient using the recipient's public RSA key and other values. Section 2.2 provides additional details ๐Ÿ’Œ.
  2. Key Agreement: The AES CEK is uniquely wrapped for each recipient using a pairwise symmetric key-encryption key (KEK). That KEK is generated using an originator's randomly generated private key (ES-DH [DH]) or previously generated private key (SS-DH [DH]), the recipient's public DH key, and other values. Section 2.3 provides additional details ๐Ÿค.
  3. Previously Distributed Symmetric KEK: The AES CEK is wrapped using a previously distributed symmetric KEK (such as a Mail List Key). The methods by which the symmetric KEK is generated and distributed are beyond the scope of this document. Section 2.4 provides additional details ๐Ÿ“ฌ.
  4. Password Encryption: The AES CEK is wrapped using a KEK derived from a password or other shared secret. Section 2.5 provides additional details ๐Ÿ”‘.

Documents that define the use of the Other Recipient Info structure will need to define the proper use for the AES algorithm, if they want it ๐Ÿ“.

2.1. EnvelopedData Fields ๐Ÿงฉ

The enveloped-data content type is ASN.1 encoded using the EnvelopedData syntax ๐Ÿงพ. The fields of the EnvelopedData syntax MUST be populated as follows:

The EnvelopedData version is determined based on a number of factors ๐Ÿ”ข.

See [CMS] section 6.1 for the algorithm to determine this value ๐Ÿงฎ.

The EnvelopedData recipientInfos CHOICE depends on the key management technique used. Section 2.2, 2.3, 2.4 and 2.5 provide additional information ๐Ÿ’….

The EnvelopedData encryptedContentInfo contentEncryptionAlgorithm field MUST specify a symmetric encryption algorithm. Implementations MUST support content encryption with AES, but implementations MAY support other algorithms as well ๐ŸŒŸ.

The EnvelopedData unprotectedAttrs MAY be present ๐ŸŽˆ.

2.2. KeyTransRecipientInfo Fields ๐Ÿ—๏ธ

The enveloped-data content type is ASN.1 encoded using the EnvelopedData syntax ๐Ÿงพ. The fields of the EnvelopedData syntax MUST be populated as follows:

The KeyTransRecipientInfo version MUST be either 0 or 2. If the RecipientIdentifier is the CHOICE issuerAndSerialNumber, then the version MUST be 0. If the RecipientIdentifier is subjectKeyIdentifier, then the version MUST be 2 ๐Ÿ”€.

The KeyTransRecipientInfo RecipientIdentifier gives two options for specifying the recipient's certificate, and therefore the recipient's public key ๐Ÿ“œ. The recipient's certificate MUST contain an RSA public key ๐Ÿ”“. The CEK is encrypted with the recipient's RSA public key ๐Ÿ”. The issuerAndSerialNumber option identifies the recipient's certificate by the issuer's distinguished name and the certificate serial number ๐Ÿชช. The subjectKeyIdentifier option identifies the recipient's certificate by the X.509 subjectKeyIdentifier extension value ๐Ÿ†”.

The KeyTransRecipientInfo keyEncryptionAlgorithm field specifies the key transport algorithm (i.e., RSAES-OAEP [RSA-OAEP]), and the associated parameters used to encrypt the CEK for the recipient ๐Ÿšš.

The KeyTransRecipientInfo encryptedKey is the result of encrypting the CEK with the recipient's RSA public key ๐ŸŽ.

2.3. KeyAgreeRecipientInfo Fields ๐Ÿค

This section describes the conventions for using ES-DH or SS-DH and AES with the CMS enveloped-data content type to support key agreement ๐ŸŒท. When key agreement is used, then the RecipientInfo keyAgreeRecipientInfo CHOICE MUST be used ๐Ÿ’ซ.

The KeyAgreeRecipient version MUST be 3 ๐Ÿ”ข.

The EnvelopedData originatorInfo field MUST be the originatorKey alternative. The originatorKey algorithm fields MUST contain the dh-public-number object identifier with absent parameters. The originatorKey publicKey MUST contain the originator's ephemeral public key ๐ŸŒ™.

The EnvelopedData ukm MAY be present ๐ŸŽˆ.

The EnvelopedData keyEncrytionAlgorithm MUST be the id-alg-ESDH algorithm identifier [CMSALG] ๐Ÿท๏ธ.

2.3.1. ES-DH/AES Key Derivation ๐Ÿงช

Generating the AES KEK, which gets used with the AES-key wrap algorithm, is done using the method described in [DH] ๐Ÿช„.

2.3.1.1. Example 1 ๐Ÿฐ

Here's a worked example, so you can see the bytes for yourself ๐Ÿ‘€:

ZZ is the 20 bytes 00 01 02 03 04 05 06 07 08 09
                   0a 0b 0c 0d 0e 0f 10 11 12 13

The key wrap algorithm is AES-128 wrap, so we need 128 bits (16 bytes) of keying material ๐Ÿ”‘.

No partyAInfo is used ๐Ÿ™….

So the input to SHA-1 is:

00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 ; ZZ
30 1b
   30 11
      06 09 60 86 48 01 65 03 04 01 05           ; AES-128 wrap OID
      04 04
         00 00 00 01                             ; Counter
   a2 06
      04 04
      00 00 00 80                                ; key length

And the output is the 32 bytes:

d6 d6 b0 94 c1 02 7a 7d e6 e3 11 72 94 a3 53 64 49 08 50 f9

So, consequently:

K= d6 d6 b0 94 c1 02 7a 7d e6 e3 11 72 94 a3 53 64

2.3.1.2. Example 2 ๐Ÿ’Ž

Same ZZ, but this time it's the AES-256 key wrap, so we need 256 bits (32 bytes) of keying material ๐Ÿ’ช.

The partyAInfo used is the 64 bytes ๐ŸŒˆ:

01 23 45 67 89 ab cd ef fe dc ba 98 76 54 32 01
01 23 45 67 89 ab cd ef fe dc ba 98 76 54 32 01
01 23 45 67 89 ab cd ef fe dc ba 98 76 54 32 01
01 23 45 67 89 ab cd ef fe dc ba 98 76 54 32 01

So the input to the first invocation of SHA-1 is:

00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 ; ZZ
30 5f
   30 11
      06 09 60 86 48 01 65 03 04 01 2d            ; AES-256 wrap OID
      04 04
         00 00 00 01                              ; Counter
   a0 42
      04 40
         01 23 45 67 89 ab cd ef fe dc ba 98 76 54 32 01 ; partyAInfo

         01 23 45 67 89 ab cd ef fe dc ba 98 76 54 32 01
         01 23 45 67 89 ab cd ef fe dc ba 98 76 54 32 01
         01 23 45 67 89 ab cd ef fe dc ba 98 76 54 32 01
   a2 06
      04 04
         00 00 01 00                              ; key length

And the output is the 20 bytes:

88 90 58 5C 4E 28 1A 5C 11 67 CA A5 30 BE D5 9B 32 30 D8 93

The input to the second invocation of SHA-1 is:

00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 ; ZZ
30 5f
   30 11
      06 09 60 86 48 01 65 03 04 01 2d            ; AES-256 wrap OID
      04 04
         00 00 00 02                              ; Counter
   a0 42
      04 40
         01 23 45 67 89 ab cd ef fe dc ba 98 76 54 32 01 ; partyAInfo

         01 23 45 67 89 ab cd ef fe dc ba 98 76 54 32 01
         01 23 45 67 89 ab cd ef fe dc ba 98 76 54 32 01
         01 23 45 67 89 ab cd ef fe dc ba 98 76 54 32 01
   a2 06
      04 04
         00 00 01 00                              ; key length

And the output is the 20 bytes:

CB A8 F9 22 BD 1B 56 A0 71 C9 6F 90 36 C6 04 2C AA 20 94 37

So, consequently:

K = 88 90 58 5C 4E 28 1A 5C 11 67 CA A5 30 BE D5 9B
    32 30 D8 93 CB A8 F9 22 BD 1B 56 A0

To be continued in part 2 ๐Ÿงš๐Ÿ’–

2.3.2. AES CEK Wrap Process ๐ŸŽ€

okay so the AES key wrap algorithm takes one AES key and encrypts it inside another AES key ๐Ÿ”โœจ the output comes out 64-bits longer than the input AES CEK, and those extra bits are a checksum ๐Ÿง it runs 6*n AES encryption/decryption operations, where n is the number of 64-bit blocks in the AES CEK ๐Ÿ’… if you want the full tea on how the algorithm works, it's all in [AES-WRAP] ๐Ÿ“š

NIST assigned the following OIDs to define the AES key wrap algorithm ๐Ÿฆ‹

id-aes128-wrap OBJECT IDENTIFIER ::= { aes 5 }
id-aes192-wrap OBJECT IDENTIFIER ::= { aes 25 }
id-aes256-wrap OBJECT IDENTIFIER ::= { aes 45 }

in every case the parameters field MUST be absent ๐Ÿ™…โ€โ™€๏ธ the OID tells you the KEK key size, but it says nothing about how big the wrapped AES CEK is ๐Ÿคทโ€โ™€๏ธ implementations MAY use different KEK and CEK sizes ๐Ÿ’œ implements MUST support the CEK and the KEK having the same length. ๐Ÿ’– if different lengths are supported, the KEK MUST be of equal or greater length than the CEK ๐Ÿซถ


2.4. KEKRecipientInfo Fields ๐Ÿ”‘

this section is all about how to use AES with the CMS enveloped-data content type when you're using a symmetric KEK that was already distributed beforehand ๐ŸŒธ when a previously distributed symmetric KEK is used to wrap the AES CEK, the RecipientInfo KEKRecipientInfo CHOICE MUST be used ๐Ÿ’… how you generate and distribute that symmetric KEK is out of scope for this doc ๐Ÿ™ˆ one possible way to distribute keys is written up in [SYMKEYDIST] โœจ

the KEKRecipientInfo fields MUST be populated as specified in [CMS] Section 6.2.3, KEKRecipientInfo Type ๐ŸŽ€

the KEKRecipientInfo keyEncryptionAlgorithm algorithm field MUST be one of the OIDs defined in section 2.3.2, which tells everyone that the AES wrap function is being used to wrap the AES CEK ๐Ÿฆ‹ and the KEKRecipientInfo keyEncryptionAlgorithm parameters field MUST be absent ๐Ÿ™…โ€โ™€๏ธ

the KEKRecipientInfo encryptedKey field MUST include the AES CEK wrapped using the previously distributed symmetric KEK as input to the AES wrap function ๐Ÿ”๐Ÿ’–


2.5. PasswordRecipientInfo Fields ๐Ÿ—๏ธ

this section is the same kind of deal, but for password-based key management with the CMS enveloped-data content type ๐ŸŒˆ

when a password derived KEK is used to wrap the AES CEK, then the RecipientInfo PasswordRecipientInfo CHOICE MUST be used ๐Ÿ™Œ

the keyEncryptionAlgorithm algorithm field MUST be one of the OIDs defined in section 2.3.2, indicating that the AES wrap function is used to wrap the AES CEK โœจ and the keyEncryptionAlgorithm parameters field MUST be absent ๐Ÿ™…โ€โ™€๏ธ

the encryptedKey field MUST be the result of the AES key wrap algorithm applied to the AES CEK value ๐Ÿ’œ

3. Encrypted-data Conventions ๐Ÿ”’

the CMS encrypted-data content type is encrypted content with implicit key management ๐Ÿซง the AES algorithm is what encrypts the content ๐Ÿ’…

compliant software MUST meet the requirements for constructing an enveloped-data content type stated in [CMS] Section 8, "Encrypted-data Content Type" ๐ŸŽ€

the encrypted-data content type is ASN.1 encoded using the EncryptededData syntax ๐Ÿงš the fields of the EncryptedData syntax MUST be populated as follows:

the EncryptedData version is determined based on a number of factors ๐ŸŒธ see [CMS] section 9.1 for the algorithm that works out this value ๐Ÿงฎ

the EncryptedData encryptedContentInfo contentEncryptionAlgorithm field MUST specify a symmetric encryption algorithm ๐Ÿ”ฅ implementations MUST support encryption using AES, but implementations MAY support other algorithms as well ๐Ÿฆ‹

the EncryptedData unprotectedAttrs MAY be present โœจ

4. Algorithm Identifiers and Parameters ๐Ÿ†”

this section specified algorithm identifiers for the AES encryption algorithm ๐Ÿ’–

4.1. AES Algorithm Identifiers and Parameters ๐Ÿงฉ

the AES algorithm is defined in [AES] ๐Ÿ“– and RSAES-OAEP [RSA-OAEP] MAY be used to transport AES keys ๐Ÿซถ

AES is added to the set of symmetric content encryption algorithms defined in [CMSALG] ๐ŸŒˆ the AES content-encryption algorithm, in Cipher Block Chaining (CBC) mode, comes in three key sizes, and each one is identified by the following object identifiers ๐Ÿ‘‘

id-aes128-CBC OBJECT IDENTIFIER ::= { aes 2 }
id-aes192-CBC OBJECT IDENTIFIER ::= { aes 22 }
id-aes256-CBC OBJECT IDENTIFIER ::= { aes 42 }

the AlgorithmIdentifier parameters field MUST be present, and the parameters field MUST contain an AES-IV ๐ŸŽ€

AES-IV ::= OCTET STRING (SIZE(16))

content encryption algorithm identifiers live in the EnvelopedData EncryptedContentInfo contentEncryptionAlgorithm field and the EncryptedData EncryptedContentInfo contentEncryptionAlgorithm field ๐Ÿ—‚๏ธ

content encryption algorithms are used to encrypt the content found in the EnvelopedData EncryptedContentInfo encryptedContent field and the EncryptedData EncryptedContentInfo encryptedContent field ๐Ÿ”โœจ

5. SMIMECapabilities Attribute Conventions ๐Ÿ“ฃ

an S/MIME client SHOULD announce the set of cryptographic functions it supports by using the S/MIME capabilities attribute ๐Ÿ’… this attribute gives a partial list of object identifiers for cryptographic functions, and it MUST be signed by the client โœ๏ธ the algorithm OIDs SHOULD be logically separated into functional categories, and they MUST be ordered by preference ๐Ÿ—‚๏ธ๐Ÿ’œ

RFC 2633 [MSG], Section 2.5.2 defines the SMIMECapabilities signed attribute (a SEQUENCE of SMIMECapability SEQUENCEs) that's used to specify a partial list of algorithms the software announcing the SMIMECapabilities can support ๐Ÿฆ‹

5.1. AES S/MIME Capability Attributes ๐ŸŒธ

if an S/MIME client is required to support symmetric encryption with AES, the capabilities attribute MUST contain the AES object identifier specified above in the category of symmetric algorithms ๐Ÿ”‘ the parameter with this encoding MUST be absent ๐Ÿ™…โ€โ™€๏ธ

the encodings for the mandatory key sizes are:

      Key Size                   Capability
       128          30 0B 06 09 60 86 48 01 65 03 04 01 02
       196          30 0B 06 09 60 86 48 01 65 03 04 01 16
       256          30 0B 06 09 60 86 48 01 65 03 04 01 2A

when a sending agent creates an encrypted message, it has to decide which type of encryption algorithm to use ๐Ÿค” in general that decision uses info from the capabilities lists in messages received from the recipient, plus other stuff like private agreements, user preferences, legal restrictions, and so on ๐Ÿง  if users require AES for symmetric encryption, the S/MIME clients on both the sending and receiving side MUST support it, and it MUST be set in the user preferences ๐Ÿ’–

6. Security Considerations ๐Ÿšจ

โš ๏ธ this part is seriously important, so read it carefully bestie ๐Ÿ˜ญ

if RSA-OAEP [PKCS#1v2.0] and RSA PKCS #1 v1.5 [PKCS#1v1.5] are both used to transport the same CEK, then an attacker can still use the Bleichenbacher attack against the RSA PKCS #1 v1.5 encrypted key ๐Ÿ’€ it's generally unadvisable to mix RSA-OAEP and RSA PKCS#1 v1.5 in the same set of recipients ๐Ÿ™ˆ

implementations must protect the RSA private key and the CEK ๐Ÿ” compromise of the RSA private key may result in the disclosure of all messages protected with that key ๐Ÿ˜ฑ compromise of the CEK may result in disclosure of the associated encrypted content ๐Ÿ’”

the generation of AES CEKs relies on random numbers ๐ŸŽฒ using inadequate pseudo-random number generators (PRNGs) to generate these values can result in little or no security ๐Ÿ’€ an attacker may find it much easier to reproduce the PRNG environment that produced the keys and then search the resulting small set of possibilities, instead of brute force searching the whole key space ๐Ÿ˜ญ generating quality random numbers is difficult ๐Ÿฅบ RFC 1750 [RANDOM] offers important guidance in this area ๐Ÿ“š

when wrapping a CEK with a KEK, the KEK MUST always be at least the same length as the CEK ๐Ÿ”’ an attacker will generally work at the weakest point in an encryption system ๐ŸŽฏ for a brute force attack, that's the smaller of the two key sizes ๐Ÿ’…


Normative References ๐Ÿ“š

  • [AES] National Institute of Standards. FIPS Pub 197: Advanced Encryption Standard (AES). 26 November 2001.
  • [CMS] Housley, R., "Cryptographic Message Syntax (CMS)", RFC 3369, August 2002.
  • [AES-WRAP] Schaad, J. and R. Housley, "Advanced Encryption Standard (AES) Key Wrap Algorithm", RFC 3394, September 2002.
  • [CMSALG] Housley, R., "Cryptographic Message Syntax (CMS) Algorithms, RFC 3370, August 2002.
  • [DES] National Institute of Standards and Technology. FIPS Pub 46: Data Encryption Standard. 15 January 1977.
  • [DH] Rescorla, E., "Diffie-Hellman Key Agreement Method", RFC 2631, June 1999.
  • [MUSTSHOULD] Bradner, S., "Key Words for Use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997.
  • [RSA-OAEP] Housley, R. "Use of the RSAES-OAEP Key Transport Algorithm in the Cryptographic Message Syntax (CMS)", RFC 3560, July 2003.
  • [X.208-88] CCITT. Recommendation X.208: Specification of Abstract Syntax Notation One (ASN.1). 1988.
  • [X.209-88] CCITT. Recommendation X.209: Specification of Basic Encoding Rules for Abstract Syntax Notation One (ASN.1). 1988.
  • [X.509-88] CCITT. Recommendation X.509: The Directory - Authentication Framework. 1988.

Informational References ๐Ÿงพ

  • [MSG] Ramsdell, B., Editor, "S/MIME Version 3 Message Specification", RFC 2633, June 1999.
  • [PKCS#1v1.5] Kaliski, B., "PKCS #1: RSA Encryption, Version 1.5", RFC 2313, March 1998.
  • [PKCS#1v2.0] Kaliski, B., "PKCS #1: RSA Encryption, Version 2.0", RFC 2437, October 1998.
  • [RANDOM] Eastlake, D., Crocker, S. and J. Schiller, "Randomness Recommendations for Security", RFC 1750, December 1994.
  • [SYMKEYDIST] Turner, S., "CMS Symmetric Key Management and Distribution", Work in Progress, January 2003.

Acknowledgements ๐Ÿซถ

this document is the result of contributions from tons of professionals ๐Ÿ™Œ we appreciate all the hard work from every member of the IETF S/MIME Working Group ๐Ÿ’œ

Appendix A ASN.1 Module ๐Ÿงš

CMSAesRsaesOaep {iso(1) member-body(2) us(840) rsadsi(113549)
      pkcs(1) pkcs-9(9) smime(16) modules(0) id-mod-cms-aes(19) }


DEFINITIONS IMPLICIT TAGS ::=
BEGIN

-- EXPORTS ALL --
IMPORTS
    -- PKIX
      AlgorithmIdentifier
          FROM PKIXExplicit88 {iso(1) identified-organization(3) dod(6)
              internet(1) security(5) mechanisms(5) pkix(7) id-mod(0)
              id-pkix1-explicit(18)};

-- AES information object identifiers --

aes OBJECT IDENTIFIER ::= { joint-iso-itu-t(2) country(16) us(840)
               organization(1) gov(101) csor(3)_ nistAlgorithms(4)  1 }

-- AES using CBC-chaining mode for key sizes of 128, 192, 256

id-aes128-CBC OBJECT IDENTIFIER ::= { aes 2 }
id-aes192-CBC OBJECT IDENTIFIER ::= { aes 22 }
id-aes256-CBC OBJECT IDENTIFIER ::= { aes 42 }

-- AES-IV is a the parameter for all the above object identifiers.

AES-IV ::= OCTET STRING (SIZE(16))


-- AES Key Wrap Algorithm Identifiers  - Parameter is absent

id-aes128-wrap OBJECT IDENTIFIER ::= { aes 5 }
id-aes192-wrap OBJECT IDENTIFIER ::= { aes 25 }
id-aes256-wrap OBJECT IDENTIFIER ::= { aes 45 }


END

Author's Address ๐Ÿ–Š๏ธ

Jim Schaad Soaring Hawk Consulting

EMail: jimsch@exmsft.com

okay bestie, time for the legal bit ๐Ÿ™ˆ this is the copyright part, and it's giving: Copyright (C) The Internet Society (2003). All Rights Reserved. โœจ

you're totally allowed to copy and share this document and translate it. you can also write derivative works that comment on or explain it, or help people actually implement it. those can be published and distributed, in whole or in part, with no restriction of any kind ๐Ÿฆ‹. the one condition is that the copyright notice and this paragraph stay on every copy and every derivative work ๐Ÿ’…

BUT the document itself can't be changed in any way ๐Ÿ™…โ€โ™€๏ธ you can't remove the copyright notice, and you can't remove the references to the Internet Society or other Internet organizations. there are two exceptions:

  • developing Internet standards, where the copyright procedures in the Internet Standards process must be followed ๐Ÿ“œ
  • translating it into languages other than English ๐ŸŒ
these permissions are perpetual ๐Ÿ’œ they won't be revoked by the Internet Society or its successors or assignees, so they're forever.

and the disclaimer, which is serious but still needs to be said loudly: this document and the information in it is provided on an "AS IS" basis, and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. ๐Ÿฅฒ


Acknowledgement ๐Ÿซถ

funding for the RFC Editor function is currently provided by the Internet Society ๐ŸŒธ the people keeping these documents running get supported, which is so sweet ๐Ÿ’œ

๐Ÿ“ฆ where this page comes from