[要約] RFC 5990は、暗号化メッセージ構文(CMS)でRSA-KEM(RSA Key Encapsulation Method)キートランスポートアルゴリズムを使用する方法について説明しています。この文書の目的は、データの安全な交換を可能にするために、CMSでのRSA-KEMの利用を標準化することです。RSA-KEMは、特に公開鍵暗号方式を使用してデータを安全に交換する必要がある場面で利用されます。関連するRFCには、RFC 5652(CMSに関する基本的な仕様)、RFC 5280(公開鍵インフラストラクチャ(PKI)のためのX.509証明書とCRLプロファイル)、およびRFC 3447(RSA暗号化のためのPKCS #1: RSA Cryptography Specifications Version 2.1)があります。これらの文書と合わせて、RFC 5990は安全な電子メッセージ交換のための強固な基盤を提供します。

Internet Engineering Task Force (IETF)                        J. Randall
Request for Comments: 5990                            Randall Consulting
Category: Standards Track                                     B. Kaliski
ISSN: 2070-1721                                                      EMC
                                                             J. Brainard
                                                                     RSA
                                                               S. Turner
                                                                    IECA
                                                          September 2010
        

Use of the RSA-KEM Key Transport Algorithm in the Cryptographic Message Syntax (CMS)

暗号化メッセージ構文(CMS)でのRSA-KEMキー転送アルゴリズムの使用

Abstract

概要

The RSA-KEM Key Transport Algorithm is a one-pass (store-and-forward) mechanism for transporting keying data to a recipient using the recipient's RSA public key. ("KEM" stands for "key encapsulation mechanism".) This document specifies the conventions for using the RSA-KEM Key Transport Algorithm with the Cryptographic Message Syntax (CMS). The ASN.1 syntax is aligned with an expected forthcoming change to American National Standard (ANS) X9.44.

RSA-KEM鍵転送アルゴリズムは、受信者のRSA公開鍵を使用して、鍵データを受信者に転送するためのワンパス(ストアアンドフォワード)メカニズムです。 (「KEM」は「キーカプセル化メカニズム」を表します。)このドキュメントでは、暗号化メッセージ構文(CMS)でRSA-KEMキートランスポートアルゴリズムを使用するための規則を指定します。 ASN.1構文は、米国規格(ANS)X9.44への今後の変更に合わせて調整されています。

Status of This Memo

本文書の状態

This is an Internet Standards Track document.

これはInternet Standards Trackドキュメントです。

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 5741.

このドキュメントは、IETF(Internet Engineering Task Force)の製品です。これは、IETFコミュニティのコンセンサスを表しています。公開レビューを受け、インターネットエンジニアリングステアリンググループ(IESG)による公開が承認されました。インターネット標準の詳細については、RFC 5741のセクション2をご覧ください。

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

このドキュメントの現在のステータス、エラータ、およびフィードバックの提供方法に関する情報は、http://www.rfc-editor.org/info/rfc5990で入手できます。

Copyright Notice

著作権表示

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

Copyright(c)2010 IETF Trustおよびドキュメントの作成者として識別された人物。全著作権所有。

This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://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.

この文書は、BCP 78およびこの文書の発行日に有効なIETF文書に関するIETFトラストの法的規定(http://trustee.ietf.org/license-info)の対象となります。これらのドキュメントは、このドキュメントに関するあなたの権利と制限を説明しているため、注意深く確認してください。このドキュメントから抽出されたコードコンポーネントには、Trust Legal Provisionsのセクション4.eに記載されているSimplified BSD Licenseのテキストが含まれている必要があり、Simplified BSD Licenseに記載されているように保証なしで提供されます。

Table of Contents

目次

   1. Introduction ....................................................3
      1.1. Conventions Used in This Document ..........................4
   2. Use in CMS ......................................................4
      2.1. Underlying Components ......................................4
      2.2. RecipientInfo Conventions ..................................5
      2.3. Certificate Conventions ....................................5
      2.4. SMIMECapabilities Attribute Conventions ....................6
   3. Security Considerations .........................................7
   4. IANA Considerations .............................................9
   5. Acknowledgements ................................................9
   6. References .....................................................10
      6.1. Normative References ......................................10
      6.2. Informative References ....................................11
   Appendix A.  RSA-KEM Key Transport Algorithm ......................12
      A.1.  Underlying Components ....................................12
      A.2.  Sender's Operations ......................................12
      A.3.  Recipient's Operations ...................................13
   Appendix B.  ASN.1 Syntax .........................................15
      B.1.  RSA-KEM Key Transport Algorithm ..........................16
      B.2.  Selected Underlying Components ...........................18
         B.2.1.  Key Derivation Functions ............................18
         B.2.2.  Symmetric Key-Wrapping Schemes ......................19
      B.3.  ASN.1 Module .............................................20
      B.4.  Examples .................................................25
        
1. Introduction
1. はじめに

The RSA-KEM Key Transport Algorithm is a one-pass (store-and-forward) mechanism for transporting keying data to a recipient using the recipient's RSA public key.

RSA-KEM鍵転送アルゴリズムは、受信者のRSA公開鍵を使用して、鍵データを受信者に転送するためのワンパス(ストアアンドフォワード)メカニズムです。

Most previous key transport algorithms based on the RSA public-key cryptosystem (e.g., the popular PKCS #1 v1.5 algorithm [PKCS1]) have the following general form:

RSA公開鍵暗号システムに基づく以前のほとんどの鍵転送アルゴリズム(たとえば、人気のあるPKCS#1 v1.5アルゴリズム[PKCS1])の一般的な形式は次のとおりです。

1. Format or "pad" the keying data to obtain an integer m.

1. キーイングデータをフォーマットまたは「パディング」して、整数mを取得します。

2. Encrypt the integer m with the recipient's RSA public key:

2. 整数mを受信者のRSA公開鍵で暗号化します。

c = m^e mod n

c = m ^ e mod n

3. Output c as the encrypted keying data.

3. 暗号化されたキーイングデータとしてcを出力します。

The RSA-KEM Key Transport Algorithm takes a different approach that provides higher security assurance, by encrypting a _random_ integer with the recipient's public key, and using a symmetric key-wrapping scheme to encrypt the keying data. It has the following form:

RSA-KEMキートランスポートアルゴリズムは、_random_整数を受信者の公開キーで暗号化し、対称キーラップ方式を使用してキーイングデータを暗号化することにより、より高いセキュリティ保証を提供する別のアプローチを採用しています。次の形式になります。

1. Generate a random integer z between 0 and n-1.

1. 0とn-1の間のランダムな整数zを生成します。

2. Encrypt the integer z with the recipient's RSA public key:

2. 整数zを受信者のRSA公開鍵で暗号化します。

c = z^e mod n

c = z ^ e mod n

3. Derive a key-encrypting key KEK from the integer z.

3. 整数zから鍵暗号鍵KEKを導出します。

4. Wrap the keying data using KEK to obtain wrapped keying data WK.

4. KEKを使用してキーイングデータをラップし、ラップされたキーイングデータWKを取得します。

5. Output c and WK as the encrypted keying data.

5. 暗号化されたキーイングデータとしてcおよびWKを出力します。

This different approach provides higher security assurance because (a) the input to the underlying RSA operation is effectively a random integer between 0 and n-1, where n is the RSA modulus, so it does not have any structure that could be exploited by an adversary, and (b) the input is independent of the keying data so the result of the RSA decryption operation is not directly available to an adversary. As a result, the algorithm enjoys a "tight" security proof in the random oracle model. (In other padding schemes, such as PKCS #1 v1.5, the input has structure and/or depends on the keying data, and the provable security assurances are not as strong.) The approach is also architecturally convenient because the public-key operations are separate from the symmetric operations on the keying data. Another benefit is that the length of the keying data is bounded only by the symmetric key-wrapping scheme, not the size of the RSA modulus.

(a)基になるRSA操作への入力は実質的に0とn-1の間のランダムな整数であり、nはRSAモジュラスであるため、この異なるアプローチはより高いセキュリティ保証を提供します。 (b)入力はキーイングデータから独立しているため、RSA復号化操作の結果を直接攻撃者が利用することはできません。その結果、ランダムオラクルモデルでアルゴリズムは「タイト」なセキュリティ証明を享受します。 (PKCS#1 v1.5などの他のパディングスキームでは、入力は構造を持ち、キーデータに依存します。また、証明可能なセキュリティ保証はそれほど強力ではありません。)この方法は、公開鍵操作は、キーイングデータの対称操作とは別です。別の利点は、キーイングデータの長さが、RSAモジュラスのサイズではなく、対称キーラップ方式によってのみ制限されることです。

The RSA-KEM Key Transport Algorithm in various forms is being adopted in several draft standards as well as in American National Standard (ANS) X9.44 [ANS-X9.44]. It has also been recommended by the New European Schemes for Signatures, Integrity, and Encryption (NESSIE) project [NESSIE]. Originally, [ANS-X9.44] specified a different object identifier to identify the RSA-KEM Key Transport Algorithm. [ANS-X9.44] used id-ac-generic-hybrid, while this document uses id-rsa-kem. These OIDs are used in the KeyTransportInfo field to indicate the key encryption algorithm, in certificates to allow recipients to restrict their public keys for use with RSA-KEM only, and in SMIME Capability attributes to allow recipients to advertise their support for RSA-KEM. Legacy implementations that wish to interoperate with [ANS-X9.44] should consult that specification for more information on id-ac-generic-hybrid.

さまざまな形式のRSA-KEMキートランスポートアルゴリズムは、いくつかのドラフト規格および米国規格(ANS)X9.44 [ANS-X9.44]で採用されています。また、署名、整合性、および暗号化のための新しいヨーロッパ方式(NESSIE)プロジェクト[NESSIE]でも推奨されています。元々、[ANS-X9.44]は、RSA-KEMキー転送アルゴリズムを識別するために別のオブジェクト識別子を指定していました。 [ANS-X9.44]はid-ac-generic-hybridを使用していましたが、このドキュメントではid-rsa-kemを使用しています。これらのOIDはKeyTransportInfoフィールドで使用され、キー暗号化アルゴリズムを示します。証明書では、受信者がRSA-KEMでのみ使用する公開鍵を制限できるようになり、SMIME機能属性では、受信者がRSA-KEMのサポートをアドバタイズできるようになります。 [ANS-X9.44]と相互運用することを希望するレガシー実装は、id-ac-generic-hybridの詳細についてその仕様を参照する必要があります。

For completeness, a specification of the algorithm is given in Appendix A of this document; ASN.1 syntax is given in Appendix B.

完全を期すために、アルゴリズムの仕様はこのドキュメントの付録Aに記載されています。 ASN.1構文は、付録Bに記載されています。

NOTE: The term "KEM" stands for "key encapsulation mechanism" and refers to the first three steps of the process above. The formalization of key transport algorithms (or more generally, asymmetric encryption schemes) in terms of key encapsulation mechanisms is described further in research by Victor Shoup leading to the development of the ISO/IEC 18033-2 standard [SHOUP].

注:「KEM」という用語は「キーのカプセル化メカニズム」を表し、上記のプロセスの最初の3つのステップを指します。キーカプセル化メカニズムの観点からのキートランスポートアルゴリズム(またはより一般的には、非対称暗号化スキーム)の形式化は、ISO / IEC 18033-2標準[SHOUP]の開発につながるVictor Shoupによる研究でさらに説明されています。

1.1. Conventions Used in This Document
1.1. このドキュメントで使用される規則

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 RFC 2119 [STDWORDS].

このドキュメントのキーワード「MUST」、「MUST NOT」、「REQUIRED」、「SHALL」、「SHALL NOT」、「SHOULD」、「SHOULD NOT」、「RECOMMENDED」、「MAY」、および「OPTIONAL」は、 RFC 2119 [STDWORDS]で説明されているように解釈されます。

2. Use in CMS
2. CMSでの使用

The RSA-KEM Key Transport Algorithm MAY be employed for one or more recipients in the CMS enveloped-data content type (Section 6 of [CMS]), where the keying data processed by the algorithm is the CMS content-encryption key.

RSA-KEMキートランスポートアルゴリズムは、CMSエンベロープデータコンテンツタイプ([CMS]のセクション6)の1人以上の受信者に使用できます(アルゴリズムによって処理されるキーイングデータはCMSコンテンツ暗号化キーです)。

2.1. Underlying Components
2.1. 基礎となるコンポーネント

A CMS implementation that supports the RSA-KEM Key Transport Algorithm MUST support at least the following underlying components: o For the key derivation function, KDF3 (see [ANS-X9.44]) based on SHA-256 (see [FIPS-180-3]). KDF3 is an instantiation of the Concatenation Key Derivation Function defined in [NIST-SP800-56A].

RSA-KEMキートランスポートアルゴリズムをサポートするCMS実装は、少なくとも以下の基本的なコンポーネントをサポートする必要があります。 -3])。 KDF3は、[NIST-SP800-56A]で定義されている連結キー導出関数のインスタンス化です。

o For the key-wrapping scheme, AES-Wrap-128, i.e., the AES Key Wrap with a 128-bit key-encrypting key (see [AES-WRAP]).

o 鍵ラッピングスキームの場合、AES-Wrap-128、つまり128ビットの鍵暗号化鍵を使用したAES鍵ラップ([AES-WRAP]を参照)。

An implementation SHOULD also support KDF2 (see [ANS-X9.44]) based on SHA-1 (this function is also specified as the key derivation function in [ANS-X9.63]). The Camellia key wrap algorithm (see [CAMELLIA]) SHOULD be supported if Camellia is supported as a content-encryption cipher. The Triple-DES Key Wrap (see [3DES-WRAP]) SHOULD also be supported if Triple-DES is supported as a content-encryption cipher.

実装は、SHA-1に基づくKDF2([ANS-X9.44]を参照)もサポートする必要があります(この関数は、[ANS-X9.63]でもキー導出関数として指定されています)。 Camelliaがコンテンツ暗号化暗号としてサポートされている場合は、Camellia鍵ラップアルゴリズム([CAMELLIA]を参照)をサポートする必要があります(SHOULD)。 Triple-DESがコンテンツ暗号化暗号としてサポートされている場合は、Triple-DESキーラップ([3DES-WRAP]を参照)もサポートする必要があります(SHOULD)。

It MAY support other underlying components. When AES or Camellia is used, the data block size is 128 bits and the key size can be 128, 192, or 256 bits, while Triple-DES requires a data block size of 64 bits and a key size of 112 or 168 bits.

他の基礎となるコンポーネントをサポートする場合があります。 AESまたはCamelliaを使用する場合、データブロックサイズは128ビットであり、キーサイズは128、192、または256ビットにすることができますが、Triple-DESでは64ビットのデータブロックサイズと112または168ビットのキーサイズが必要です。

2.2. RecipientInfo Conventions
2.2. RecipientInfoの表記法

When the RSA-KEM Key Transport Algorithm is employed for a recipient, the RecipientInfo alternative for that recipient MUST be KeyTransRecipientInfo. The algorithm-specific fields of the KeyTransRecipientInfo value MUST have the following values:

RSA-KEMキートランスポートアルゴリズムが受信者に使用される場合、その受信者のRecipientInfo代替はKeyTransRecipientInfoでなければなりません。 KeyTransRecipientInfo値のアルゴリズム固有のフィールドには、次の値が必要です。

o keyEncryptionAlgorithm.algorithm MUST be id-rsa-kem (see Appendix B);

o keyEncryptionAlgorithm.algorithmはid-rsa-kemでなければなりません(付録Bを参照)。

o keyEncryptionAlgorithm.parameters MUST be a value of type GenericHybridParameters, identifying the RSA-KEM key encapsulation mechanism (see Appendix B);

o keyEncryptionAlgorithm.parametersは、RSA-KEMキーカプセル化メカニズムを識別するGenericHybridParametersタイプの値である必要があります(付録Bを参照)。

o encryptedKey MUST be the encrypted keying data output by the algorithm, where the keying data is the content-encryption key (see Appendix A).

o encryptedKeyは、アルゴリズムによって出力される暗号化されたキーイングデータである必要があります。キーイングデータはコンテンツ暗号化キーです(付録Aを参照)。

2.3. Certificate Conventions
2.3. 証明書の規約

The conventions specified in this section augment RFC 5280 [PROFILE].

このセクションで指定された規則は、RFC 5280 [プロファイル]を補強します。

A recipient who employs the RSA-KEM Key Transport Algorithm MAY identify the public key in a certificate by the same AlgorithmIdentifier as for the PKCS #1 v1.5 algorithm, i.e., using the rsaEncryption object identifier [PKCS1]. The fact that the user will accept RSA-KEM with this public key is not indicated by the use of this identifier. This MAY be signaled by the use of the appropriate SMIME Capabilities either in a message or in the certificate.

RSA-KEMキートランスポートアルゴリズムを採用する受信者は、PKCS#1 v1.5アルゴリズムと同じAlgorithmIdentifierによって、つまり、rsaEncryptionオブジェクト識別子[PKCS1]を使用して、証明書内の公開鍵を識別してもよい(MAY)。ユーザーがこの公開鍵でRSA-KEMを受け入れることは、この識別子の使用によって示されません。これは、メッセージまたは証明書で適切なSMIME機能を使用することにより通知できます。

If the recipient wishes only to employ the RSA-KEM Key Transport Algorithm with a given public key, the recipient MUST identify the public key in the certificate using the id-rsa-kem object identifier (see Appendix B). When the id-rsa-kem algorithm identifier appears in the SubjectPublicKeyInfo algorithm field, the encoding SHALL omit the parameters field from AlgorithmIdentifier. That is, the AlgorithmIdentifier SHALL be a SEQUENCE of one component, the object identifier id-rsa-kem.

受信者が特定の公開鍵でRSA-KEM鍵転送アルゴリズムのみを使用したい場合、受信者はid-rsa-kemオブジェクト識別子を使用して証明書の公開鍵を識別しなければなりません(付録Bを参照)。 id-rsa-kemアルゴリズム識別子がSubjectPublicKeyInfoアルゴリズムフィールドに表示される場合、エンコーディングはAlgorithmIdentifierからパラメーターフィールドを省略します(SHALL)。つまり、AlgorithmIdentifierは、1つのコンポーネントのシーケンス、つまりオブジェクト識別子id-rsa-kemである必要があります(SHALL)。

Regardless of the AlgorithmIdentifier used, the RSA public key is encoded in the same manner in the subject public key information. The RSA public key MUST be encoded using the type RSAPublicKey type:

使用されるAlgorithmIdentifierに関係なく、RSA公開鍵はサブジェクト公開鍵情報で同じ方法でエンコードされます。 RSA公開鍵は、RSAPublicKey型を使用してエンコードする必要があります。

      RSAPublicKey ::= SEQUENCE {
         modulus            INTEGER, -- n
         publicExponent     INTEGER  -- e
      }
        

Here, the modulus is the modulus n, and publicExponent is the public exponent e. The Distinguished Encoding Rules (DER)-encoded RSAPublicKey is carried in the subjectPublicKey BIT STRING within the subject public key information.

ここで、モジュラスはモジュラスn、publicExponentはパブリック指数eです。 Distinguished Encoding Rules(DER)でエンコードされたRSAPublicKeyは、サブジェクトの公開鍵情報内のsubjectPublicKey BIT STRINGに含まれています。

The intended application for the key MAY be indicated in the key usage certificate extension (see [PROFILE], Section 4.2.1.3). If the keyUsage extension is present in a certificate that conveys an RSA public key with the id-rsa-kem object identifier as discussed above, then the key usage extension MUST contain the following value:

鍵の意図されたアプリケーションは、鍵使用証明書拡張で示されるかもしれません([プロファイル]、セクション4.2.1.3を参照)。 keyUsage拡張が、前述のid-rsa-kemオブジェクト識別子を持つRSA公開鍵を伝達する証明書に存在する場合、鍵使用拡張には次の値を含める必要があります。

keyEncipherment

keyEncipherment

dataEncipherment SHOULD NOT be present. That is, a key intended to be employed only with the RSA-KEM Key Transport Algorithm SHOULD NOT also be employed for data encryption or for authentication such as in signatures. Good cryptographic practice employs a given RSA key pair in only one scheme. This practice avoids the risk that vulnerability in one scheme may compromise the security of the other, and may be essential to maintain provable security.

dataEnciphermentは存在すべきではありません(SHOULD NOT)。つまり、RSA-KEMキートランスポートアルゴリズムでのみ使用することを目的としたキーは、データの暗号化や署名などの認証にも使用しないでください。優れた暗号化手法では、1つのスキームのみで特定のRSAキーペアを使用します。この方法は、1つのスキームの脆弱性が他のスキームのセキュリティを危険にさらす可能性があるリスクを回避し、証明可能なセキュリティを維持するために不可欠である可能性があります。

2.4. SMIMECapabilities Attribute Conventions
2.4. SMIMECapabilities属性の規則

RFC 3851 [MSG], Section 2.5.2 defines the SMIMECapabilities signed attribute (defined as a SEQUENCE of SMIMECapability SEQUENCEs) to be used to specify a partial list of algorithms that the software announcing the SMIMECapabilities can support. When constructing a signedData object, compliant software MAY include the SMIMECapabilities signed attribute announcing that it supports the RSA-KEM Key Transport Algorithm.

RFC 3851 [MSG]、セクション2.5.2は、SMIMECapabilitiesを通知するソフトウェアがサポートできるアルゴリズムの部分的なリストを指定するために使用されるSMIMECapabilities署名済み属性(SMIMECapability SEQUENCEのSEQUENCEとして定義)を定義します。 signedDataオブジェクトを作成するとき、準拠ソフトウェアは、RSA-KEMキー転送アルゴリズムをサポートすることを通知するSMIMECapabilities署名属性を含めることができます(MAY)。

The SMIMECapability SEQUENCE representing the RSA-KEM Key Transport Algorithm MUST include the id-rsa-kem object identifier (see Appendix B) in the capabilityID field and MUST include a GenericHybridParameters value in the parameters field identifying the components with which the algorithm is to be employed.

RSA-KEMキートランスポートアルゴリズムを表すSMIMECapability SEQUENCEは、capabilityIDフィールドにid-rsa-kemオブジェクト識別子(付録Bを参照)を含める必要があり、アルゴリズムを使用するコンポーネントを識別するパラメーターフィールドにGenericHybridParameters値を含める必要があります。雇用された。

The DER encoding of a SMIMECapability SEQUENCE is the same as the DER encoding of an AlgorithmIdentifier. Example DER encodings for typical sets of components are given in Appendix B.4.

SMIMECapability SEQUENCEのDERエンコーディングは、AlgorithmIdentifierのDERエンコーディングと同じです。典型的なコンポーネントセットのDERエンコーディングの例を付録B.4に示します。

3. Security Considerations
3. セキュリティに関する考慮事項

The RSA-KEM Key Transport Algorithm should be considered for new CMS-based applications as a replacement for the widely implemented RSA encryption algorithm specified originally in PKCS #1 v1.5 (see [PKCS1] and Section 4.2.1 of [CMSALGS]), which is vulnerable to chosen-ciphertext attacks. The RSA Encryption Scheme - Optimal Asymmetric Encryption Padding (RSAES-OAEP) Key Transport Algorithm has also been proposed as a replacement (see [PKCS1] and [CMS-OAEP]). RSA-KEM has the advantage over RSAES-OAEP of a tighter security proof, but the disadvantage of slightly longer encrypted keying data.

RSA-KEMキートランスポートアルゴリズムは、PKCS#1 v1.5([PKCS1]および[CMSALGS]のセクション4.2.1を参照)で最初に指定された広く実装されているRSA暗号化アルゴリズムの代わりとして、新しいCMSベースのアプリケーションで検討する必要があります。は、選択された暗号文攻撃に対して脆弱です。 RSA暗号化スキーム-最適非対称暗号化パディング(RSAES-OAEP)鍵転送アルゴリズムも代替として提案されています([PKCS1]および[CMS-OAEP]を参照)。 RSA-KEMには、RSAES-OAEPに比べてセキュリティの証拠がより厳格であるという利点がありますが、暗号化されたキーイングデータが少し長いという欠点があります。

The security of the RSA-KEM Key Transport Algorithm described in this document can be shown to be tightly related to the difficulty of either solving the RSA problem or breaking the underlying symmetric key-wrapping scheme, if the underlying key derivation function is modeled as a random oracle, and assuming that the symmetric key-wrapping scheme satisfies the properties of a data encapsulation mechanism [SHOUP]. While in practice a random-oracle result does not provide an actual security proof for any particular key derivation function, the result does provide assurance that the general construction is reasonable; a key derivation function would need to be particularly weak to lead to an attack that is not possible in the random oracle model.

このドキュメントで説明されているRSA-KEMキートランスポートアルゴリズムのセキュリティは、RSA問題を解決するか、基になる対称鍵のラッピングスキームを壊すことの難しさと密接に関連していることが示されています。ランダムなオラクル、および対称キーラッピングスキームがデータカプセル化メカニズム[SHOUP]の特性を満たすと仮定します。実際には、ランダムオラクルの結果は、特定の鍵導出関数の実際のセキュリティ証明を提供しませんが、結果は、一般的な構造が妥当であることを保証します。キー導出関数は、ランダムオラクルモデルでは不可能な攻撃を引き起こすために、特に弱い必要があります。

The RSA key size and the underlying components should be selected consistent with the desired symmetric security level for an application. Several security levels have been identified in the NIST FIPS PUB 800-57 [NIST-GUIDELINE]. For brevity, the first three levels are mentioned here: o 80-bit security. The RSA key size SHOULD be at least 1024 bits, the hash function underlying the KDF SHOULD be SHA-1 or above, and the symmetric key-wrapping scheme SHOULD be AES Key Wrap, Triple-DES Key Wrap, or Camellia Key Wrap.

RSAキーのサイズと基盤となるコンポーネントは、アプリケーションに必要な対称セキュリティレベルに合わせて選択する必要があります。 NIST FIPS PUB 800-57 [NIST-GUIDELINE]では、いくつかのセキュリティレベルが確認されています。簡潔にするため、ここでは最初の3つのレベルについて説明します。o 80ビットセキュリティ。 RSA鍵のサイズは少なくとも1024ビットである必要があり(SHOULD)、KDFの基礎となるハッシュ関数はSHA-1以上である必要があり(SHOULD)、対称鍵のラッピングスキームはAES鍵ラップ、Triple-DES鍵ラップ、またはCamellia鍵ラップである必要があります。

o 112-bit security. The RSA key size SHOULD be at least 2048 bits, the hash function underlying the KDF SHOULD be SHA-224 or above, and the symmetric key-wrapping scheme SHOULD be AES Key Wrap, Triple-DES Key Wrap, or Camellia Key Wrap.

o 112ビットセキュリティ。 RSAキーサイズは少なくとも2048ビットである必要があり、KDFの基礎となるハッシュ関数はSHA-224以上である必要があり、対称キーラップ方式はAESキーラップ、トリプルDESキーラップ、またはカメリアキーラップである必要があります(SHOULD)。

o 128-bit security. The RSA key size SHOULD be at least 3072 bits, the hash function underlying the KDF SHOULD be SHA-256 or above, and the symmetric key-wrapping scheme SHOULD be AES Key Wrap or Camellia Key Wrap.

o 128ビットセキュリティ。 RSA鍵のサイズは少なくとも3072ビットである必要があり(SHOULD)、KDFの基礎となるハッシュ関数はSHA-256以上である必要があり(SHOULD)、対称鍵ラップ方式はAES鍵ラップまたはCamellia鍵ラップである必要があります(SHOULD)。

Note that the AES Key Wrap or Camellia Key Wrap MAY be used at all three of these levels; the use of AES or Camellia does not require a 128-bit security level for other components.

AESキーラップまたはカメリアキーラップは、これら3つのレベルすべてで使用できます。 AESまたはCamelliaを使用する場合、他のコンポーネントに128ビットのセキュリティレベルは必要ありません。

Implementations MUST protect the RSA private key and the content-encryption key. Compromise of the RSA private key may result in the disclosure of all messages protected with that key. Compromise of the content-encryption key may result in disclosure of the associated encrypted content.

実装では、RSA秘密鍵とコンテンツ暗号化鍵を保護する必要があります。 RSA秘密鍵の侵害により、その鍵で保護されているすべてのメッセージが漏洩する可能性があります。コンテンツ暗号化キーが侵害されると、関連する暗号化コンテンツが漏洩する可能性があります。

Additional considerations related to key management may be found in [NIST-GUIDELINE].

鍵管理に関連する追加の考慮事項は、[NIST-GUIDELINE]にあります。

The security of the algorithm also depends on the strength of the random number generator, which SHOULD have a comparable security level. For further discussion on random number generation, please see [RANDOM].

アルゴリズムのセキュリティは、同等のセキュリティレベルを持つべきである乱数ジェネレータの強度にも依存します。乱数生成の詳細については、[ランダム]を参照してください。

Implementations SHOULD NOT reveal information about intermediate values or calculations, whether by timing or other "side channels", or otherwise an opponent may be able to determine information about the keying data and/or the recipient's private key. Although not all intermediate information may be useful to an opponent, it is preferable to conceal as much information as is practical, unless analysis specifically indicates that the information would not be useful.

実装は、タイミングやその他の「サイドチャネル」によって、中間値や計算に関する情報を明らかにすべきではありません。そうでなければ、対戦相手は、キーイングデータや受信者の秘密キーに関する情報を特定できる場合があります。すべての中間情報が対戦相手にとって有用であるとは限りませんが、分析がその情報が有用ではないことを明確に示していない限り、実用的な量の情報を隠すことが望ましいです。

Generally, good cryptographic practice employs a given RSA key pair in only one scheme. This practice avoids the risk that vulnerability in one scheme may compromise the security of the other, and may be essential to maintain provable security. While RSA public keys have often been employed for multiple purposes such as key transport and digital signature without any known bad interactions, for increased security assurance, such combined use of an RSA key pair is NOT RECOMMENDED in the future (unless the different schemes are specifically designed to be used together).

一般に、優れた暗号化プラクティスでは、1つのスキームのみで特定のRSAキーペアを使用します。この方法は、1つのスキームの脆弱性が他のスキームのセキュリティを危険にさらす可能性があるリスクを回避し、証明可能なセキュリティを維持するために不可欠である可能性があります。 RSA公開鍵は、多くの場合、既知の悪い相互作用のない鍵の転送やデジタル署名などの複数の目的で使用されていますが、セキュリティの保証を高めるために、RSA鍵ペアのこのような併用は将来推奨されません(別のスキームが具体的でない限り)一緒に使用するように設計されています)。

Accordingly, an RSA key pair used for the RSA-KEM Key Transport Algorithm SHOULD NOT also be used for digital signatures. (Indeed, the Accredited Standards Committee X9 (ASC X9) requires such a separation between key establishment key pairs and digital signature key pairs.) Continuing this principle of key separation, a key pair used for the RSA-KEM Key Transport Algorithm SHOULD NOT be used with other key establishment schemes, or for data encryption, or with more than one set of underlying algorithm components.

したがって、RSA-KEM鍵転送アルゴリズムに使用されるRSA鍵ペアは、デジタル署名にも使用されるべきではありません(SHOULD NOT)。 (確かに、認定標準委員会X9(ASC X9)では、鍵確立鍵のペアとデジタル署名鍵のペアをこのように分離する必要があります。)この鍵分離の原則を続けると、RSA-KEM鍵転送アルゴリズムに使用される鍵ペアは、他の鍵確立スキーム、データ暗号化、または複数の基本的なアルゴリズムコンポーネントのセットで使用されます。

Parties MAY formalize the assurance that one another's implementations are correct through implementation validation, e.g., NIST's Cryptographic Module Validation Program (CMVP).

締約国は、NISTの暗号化モジュール検証プログラム(CMVP)などの実装検証を通じて、互いの実装が正しいことの保証を正式化できます(MAY)。

4. IANA Considerations
4. IANAに関する考慮事項

Within the CMS, algorithms are identified by object identifiers (OIDs). With one exception, all of the OIDs used in this document were assigned in other IETF documents, in ISO/IEC standards documents, by the National Institute of Standards and Technology (NIST), and in Public-Key Cryptography Standards (PKCS) documents. The two exceptions are the ASN.1 module's identifier (see Appendix B.3) and id-rsa-kem that are both assigned in this document. The module object identifiers are defined in an arc delegated by the former company RSA Data Security Inc. to the S/MIME Working Group. When the S/MIME Working Group closes, this arc and its registration procedures will be transferred to IANA.

CMS内では、アルゴリズムはオブジェクト識別子(OID)によって識別されます。 1つの例外を除き、このドキュメントで使用されるすべてのOIDは、他のIETFドキュメント、ISO / IEC標準ドキュメント、米国国立標準技術研究所(NIST)、および公開鍵暗号化標準(PKCS)ドキュメントで割り当てられました。 2つの例外は、ASN.1モジュールの識別子(付録B.3を参照)とid-rsa-kemで、どちらもこのドキュメントで割り当てられています。モジュールオブジェクト識別子は、旧会社RSA Data Security Inc.によってS / MIMEワーキンググループに委任された弧で定義されます。 S / MIMEワーキンググループが終了すると、このアークとその登録手順はIANAに転送されます。

5. Acknowledgements
5. 謝辞

This document is one part of a strategy to align algorithm standards produced by ASC X9, ISO/IEC JTC1 SC27, NIST, and the IETF. We would like to thank the members of the ASC X9F1 working group for their contributions to drafts of ANS X9.44, which led to this specification.

このドキュメントは、ASC X9、ISO / IEC JTC1 SC27、NIST、およびIETFによって作成されたアルゴリズム標準を調整する戦略の一部です。この仕様につながったANS X9.44のドラフトへの貢献について、ASC X9F1ワーキンググループのメンバーに感謝します。

Our thanks to Russ Housley as well for his guidance and encouragement. We also appreciate the helpful direction we've received from Blake Ramsdell and Jim Schaad in bringing this document to fruition. A special thanks to Magnus Nystrom for his assistance on Appendix B. Thanks also to Bob Griffin and John Linn for both editorial direction and procedural guidance.

Russ Housley氏の指導と励ましに感謝します。また、このドキュメントを実現するにあたり、ブレイクラムスデルとジムシャードから寄せられた有益な指示にも感謝します。付録Bに関する支援を提供してくれたMagnus Nystromに特に感謝します。編集指示と手順のガイダンスの両方を提供してくれたBob GriffinとJohn Linnにも感謝します。

6. References
6. 参考文献
6.1. Normative References
6.1. 引用文献

[3DES-WRAP] Housley, R., "Triple-DES and RC2 Key Wrapping", RFC 3217, December 2001.

[3DES-WRAP] Housley、R。、「Triple-DES and RC2 Key Wrapping」、RFC 3217、2001年12月。

[AES-WRAP] Schaad, J. and R. Housley, "Advanced Encryption Standard (AES) Key Wrap Algorithm", RFC 3394, September 2002.

[AES-WRAP] Schaad、J。およびR. Housley、「Advanced Encryption Standard(AES)Key Wrap Algorithm」、RFC 3394、2002年9月。

[ANS-X9.44] ASC X9F1 Working Group. American National Standard X9.44: Public Key Cryptography for the Financial Services Industry -- Key Establishment Using Integer Factorization Cryptography. 2007.

[ANS-X9.44] ASC X9F1ワーキンググループ。米国規格X9.44:金融サービス業界の公開鍵暗号化-整数分解暗号化を使用した主要な確立。 2007年

[ANS-X9.63] American National Standard X9.63-2002: Public Key Cryptography for the Financial Services Industry: Key Agreement and Key Transport Using Elliptic Curve Cryptography.

[ANS-X9.63]米国国家規格X9.63-2002:金融サービス業界向けの公開鍵暗号化:楕円曲線暗号化を使用した鍵合意および鍵転送。

[CAMELLIA] Moriai, S. and A. Kato, "Use of the Camellia Encryption Algorithm in Cryptographic Message Syntax (CMS)", RFC 3657, January 2004.

[CAMELLIA] Moriai、S。およびA. Kato、「暗号化メッセージ構文(CMS)でのCamellia暗号化アルゴリズムの使用」、RFC 3657、2004年1月。

[CMS] Housley, R., "Cryptographic Message Syntax (CMS)", RFC 5652, September 2009.

[CMS] Housley、R。、「Cryptographic Message Syntax(CMS)」、RFC 5652、2009年9月。

[CMSALGS] Housley, R., "Cryptographic Message Syntax (CMS) Algorithms", RFC 3370, August 2002.

[CMSALGS] Housley、R。、「Cryptographic Message Syntax(CMS)Algorithms」、RFC 3370、2002年8月。

[FIPS-180-3] National Institute of Standards and Technology (NIST). FIPS 180-3: Secure Hash Standard. October 2008.

[FIPS-180-3]国立標準技術研究所(NIST)。 FIPS 180-3:Secure Hash Standard。 2008年10月。

[MSG] Ramsdell, B. and S. Turner, "Secure/Multipurpose Internet Mail Extensions (S/MIME) Version 3.2 Message Specification", RFC 5751, January 2010.

[MSG] Ramsdell、B。およびS. Turner、「Secure / Multipurpose Internet Mail Extensions(S / MIME)Version 3.2 Message Specification」、RFC 5751、2010年1月。

[PROFILE] 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.

[プロフィール] Cooper、D.、Santesson、S.、Farrell、S.、Boeyen、S.、Housley、R。、およびW. Polk、「Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List(CRL)Profile "、RFC 5280、2008年5月。

[STDWORDS] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997.

[STDWORDS] Bradner、S。、「RFCで使用して要件レベルを示すためのキーワード」、BCP 14、RFC 2119、1997年3月。

6.2. Informative References
6.2. 参考引用

[AES-WRAP-PAD] Housley, R. and M. Dworkin, "Advanced Encryption Standard (AES) Key Wrap with Padding Algorithm", RFC 5649, September 2009.

[AES-WRAP-PAD] Housley、R。およびM. Dworkin、「Advanced Encryption Standard(AES)Key Wrap with Padding Algorithm」、RFC 5649、2009年9月。

[CMS-OAEP] Housley, R., "Use of the RSAES-OAEP Key Transport Algorithm in Cryptographic Message Syntax (CMS)", RFC 3560, July 2003.

[CMS-OAEP] Housley、R。、「暗号化メッセージ構文(CMS)でのRSAES-OAEPキー転送アルゴリズムの使用」、RFC 3560、2003年7月。

[NESSIE] NESSIE Consortium. Portfolio of Recommended Cryptographic Primitives. February 2003. http://www.cryptonessie.org/.

[NESSIE] NESSIEコンソーシアム。推奨される暗号プリミティブのポートフォリオ。 2003年2月。http://www.cryptonessie.org/。

[NIST-GUIDELINE] National Institute of Standards and Technology. Special Publication 800-57: Recommendation for Key Management - Part 1: General (Revised). March 2007. http://csrc.nist.gov/publications/index.html.

[NIST-GUIDELINE]国立標準技術研究所。特別刊行物800-57:鍵管理の推奨事項-パート1:一般(改訂)。 2007年3月。http://csrc.nist.gov/publications/index.html。

[NIST-SP800-56A] National Institute of Standards and Technology. Special Publication 800-56A: Recommendation for Pair-Wise Key Establishment Schemes Using Discrete Logarithm Cryptography (Revised). March 2007. http://csrc.nist.gov/publications/index.html.

[NIST-SP800-56A]国立標準技術研究所。 Special Publication 800-56A:Discrete Logarithm Cryptography(Revised)を使用したペアワイズキー確立スキームの推奨事項。 2007年3月。http://csrc.nist.gov/publications/index.html。

[PKCS1] Jonsson, J. and B. Kaliski, "Public-Key Cryptography Standards (PKCS) #1: RSA Cryptography Specifications Version 2.1", RFC 3447, February 2003.

[PKCS1] Jonsson、J。およびB. Kaliski、「Public-Key Cryptography Standards(PKCS)#1:RSA Cryptography Specifications Version 2.1」、RFC 3447、2003年2月。

[RANDOM] Eastlake 3rd, D., Schiller, J., and S. Crocker, "Randomness Requirements for Security", BCP 106, RFC 4086, June 2005.

[ランダム] Eastlake 3rd、D.、Schiller、J。、およびS. Crocker、「Randomness Requirements for Security」、BCP 106、RFC 4086、2005年6月。

[SHOUP] Shoup, V. A Proposal for an ISO Standard for Public Key Encryption. Version 2.1, December 20, 2001. http://eprint.iacr.org/2001/112.

[SHOUP] Shoup、V。公開キー暗号化のISO標準の提案。 2001年12月20日バージョン2.1。http://eprint.iacr.org/2001/112。

Appendix A. RSA-KEM Key Transport Algorithm
付録A. RSA-KEMキー転送アルゴリズム

The RSA-KEM Key Transport Algorithm is a one-pass (store-and-forward) mechanism for transporting keying data to a recipient using the recipient's RSA public key.

RSA-KEM鍵転送アルゴリズムは、受信者のRSA公開鍵を使用して、鍵データを受信者に転送するためのワンパス(ストアアンドフォワード)メカニズムです。

With this type of algorithm, a sender encrypts the keying data using the recipient's public key to obtain encrypted keying data. The recipient decrypts the encrypted keying data using the recipient's private key to recover the keying data.

このタイプのアルゴリズムでは、送信者は受信者の公開鍵を使用してキーイングデータを暗号化し、暗号化されたキーイングデータを取得します。受信者は、受信者の秘密鍵を使用して暗号化されたキーイングデータを復号化し、キーイングデータを復元します。

A.1. Underlying Components
A.1. 基礎となるコンポーネント

The algorithm has the following underlying components:

アルゴリズムには、以下の基本的なコンポーネントがあります。

o KDF, a key derivation function, which derives keying data of a specified length from a shared secret value;

o KDF、共有秘密値から指定された長さのキーイングデータを導出するキー導出関数。

o Wrap, a symmetric key-wrapping scheme, which encrypts keying Data using a key-encrypting key.

o ラップ、対称キーラップスキーム。キー暗号化キーを使用してキーイングデータを暗号化します。

In the following, kekLen denotes the length in bytes of the key-encrypting key for the underlying symmetric key-wrapping scheme.

以下では、kekLenは、基になる対称鍵ラッピング方式の鍵暗号鍵のバイト単位の長さを示します。

In this scheme, the length of the keying data to be transported MUST be among the lengths supported by the underlying symmetric key-wrapping scheme. (Both the AES and Camellia Key Wraps, for instance, require the length of the keying data to be a multiple of 8 bytes, and at least 16 bytes.) Usage and formatting of the keying data (e.g., parity adjustment for Triple-DES keys) is outside the scope of this algorithm. With some key derivation functions, it is possible to include other information besides the shared secret value in the input to the function. Also, with some symmetric key-wrapping schemes, it is possible to associate a label with the keying data. Such uses are outside the scope of this document, as they are not directly supported by CMS.

このスキームでは、転送されるキーイングデータの長さは、基になる対称キーラップスキームでサポートされている長さの範囲内である必要があります。 (たとえば、AESとCamelliaの両方のキーラップでは、キーイングデータの長さが8バイトの倍数で、少なくとも16バイトである必要があります。)キーイングデータの使用法とフォーマット(たとえば、Triple-DESのパリティ調整)キー)は、このアルゴリズムの範囲外です。一部の鍵導出関数では、関数への入力に共有秘密値以外の情報を含めることができます。また、対称鍵ラッピング方式によっては、ラベルを鍵データに関連付けることができます。このような使用法は、CMSで直接サポートされていないため、このドキュメントの範囲外です。

A.2. Sender's Operations
A.2. 送信者の操作

Let (n,e) be the recipient's RSA public key (see [PKCS1] for details), and let K be the keying data to be transported.

(n、e)を受信者のRSA公開鍵(詳細は[PKCS1]を参照)とし、Kを転送する鍵データとします。

Let nLen denote the length in bytes of the modulus n, i.e., the least integer such that 2^{8*nLen} > n.

nLenが係数nのバイト単位の長さ、つまり、2 ^ {8 * nLen}> nとなるような最小の整数を示すものとします。

The sender performs the following operations:

送信者は次の操作を実行します。

1. Generate a random integer z between 0 and n-1 (see note), and convert z to a byte string Z of length nLen, most significant byte first:

1. 0とn-1の間のランダムな整数zを生成し(注を参照)、zを長さnLenのバイト文字列Zに変換します。

z = RandomInteger (0, n-1)

z = らんどみんてげr (0、 んー1)

Z = IntegerToString (z, nLen)

Z = IntegerToString(z、nLen)

2. Encrypt the random integer z using the recipient's public key (n,e), and convert the resulting integer c to a ciphertext C, a byte string of length nLen:

2. 受信者の公開鍵(n、e)を使用してランダムな整数zを暗号化し、結果の整数cを、長さnLenのバイト文字列である暗号文Cに変換します。

c = z^e mod n

c = z ^ e mod n

C = IntegerToString (c, nLen)

C = IntegerToString(c、nLen)

3. Derive a key-encrypting key KEK of length kekLen bytes from the byte string Z using the underlying key derivation function:

3. 基本となる鍵導出関数を使用して、バイト文字列Zから長さkekLenバイトの鍵暗号鍵KEKを導出します。

KEK = KDF (Z, kekLen)

KEK = KDF(Z、kekLen)

4. Wrap the keying data K with the key-encrypting key KEK using the underlying key-wrapping scheme to obtain wrapped keying data WK:

4. 基礎となる鍵ラッピング方式を使用して、鍵データKを鍵暗号鍵KEKでラップし、ラップされた鍵データWKを取得します。

WK = Wrap (KEK, K)

WK =ラップ(KEK、K)

5. Concatenate the ciphertext C and the wrapped keying data WK to obtain the encrypted keying data EK:

5. 暗号文CとラップされたキーイングデータWKを連結して、暗号化されたキーイングデータEKを取得します。

EK = C || WK

A = C ||週

6. Output the encrypted keying data EK.

6. 暗号化されたキーイングデータEKを出力します。

NOTE: The random integer z MUST be generated independently at random for different encryption operations, whether for the same or different recipients.

注:ランダムな整数zは、同じ受信者であろうと異なる受信者であろうと、異なる暗号化操作に対してランダムに個別に生成する必要があります。

A.3. Recipient's Operations
A.3. 受信者の操作

Let (n,d) be the recipient's RSA private key (see [PKCS1]; other private key formats are allowed), and let EK be the encrypted keying data.

(n、d)を受信者のRSA秘密鍵([PKCS1]を参照。他の秘密鍵形式も使用できます)とし、EKを暗号化された鍵データとします。

Let nLen denote the length in bytes of the modulus n.

nLenがモジュラスnの長さ(バイト)を示すとします。

The recipient performs the following operations:

受信者は次の操作を実行します。

1. Separate the encrypted keying data EK into a ciphertext C of length nLen bytes and wrapped keying data WK:

1. 暗号化されたキーイングデータEKを、長さnLenバイトの暗号文CとラップされたキーイングデータWKに分離します。

C || WK = EK

C || WK = 1

If the length of the encrypted keying data is less than nLen bytes, output "decryption error", and stop.

暗号化されたキーイングデータの長さがnLenバイト未満の場合は、「復号化エラー」を出力して停止します。

2. Convert the ciphertext C to an integer c, most significant byte first. Decrypt the integer c using the recipient's private key (n,d) to recover an integer z (see note):

2. 暗号文Cを整数cに変換します。最上位バイトが最初です。受信者の秘密鍵(n、d)を使用して整数cを復号化し、整数zを復元します(注を参照):

c = StringToInteger (C)

c = StringToInteger(C)

z = c^d mod n

z = c ^ d mod n

If the integer c is not between 0 and n-1, output "decryption error", and stop.

整数cが0とn-1の間にない場合は、「復号化エラー」を出力して停止します。

3. Convert the integer z to a byte string Z of length nLen, most significant byte first (see note):

3. 整数zを長さnLenのバイト文字列Zに変換します。最上位バイトが最初です(注を参照):

Z = IntegerToString (z, nLen)

Z = IntegerToString(z、nLen)

4. Derive a key-encrypting key KEK of length kekLen bytes from the byte string Z using the underlying key derivation function (see note):

4. 基礎となる鍵導出関数を使用して、バイト文字列Zから長さkekLenバイトの鍵暗号鍵KEKを導出します(注を参照):

KEK = KDF (Z, kekLen)

KEK = KDF(Z、kekLen)

5. Unwrap the wrapped keying data WK with the key-encrypting key KEK using the underlying key-wrapping scheme to recover the keying data K:

5. 基礎となる鍵ラッピング方式を使用して、ラップされた鍵データWKを鍵暗号鍵KEKでアンラップし、鍵データKを回復します。

K = Unwrap (KEK, WK)

K =アンラップ(KEK、WK)

If the unwrapping operation outputs an error, output "decryption error", and stop.

展開操作でエラーが出力された場合は、「復号化エラー」を出力して停止します。

6. Output the keying data K.

6. キーイングデータKを出力します。

NOTE: Implementations SHOULD NOT reveal information about the integer z and the string Z, nor about the calculation of the exponentiation in Step 2, the conversion in Step 3, or the key derivation in Step 4, whether by timing or other "side channels". The observable behavior of the implementation SHOULD be the same at these steps for all ciphertexts C that are in range. (For example, IntegerToString conversion should take the same amount of time regardless of the actual value of the integer z.) The integer z, the string Z, and other intermediate results MUST be securely deleted when they are no longer needed.

注:実装では、整数zと文字列Zに関する情報、ステップ2でのべき乗の計算、ステップ3での変換、またはステップ4での鍵の導出に関する情報を、タイミングやその他の「サイドチャネル」に関係なく明らかにすべきではありません。 。実装の観察可能な動作は、範囲内にあるすべての暗号文Cについて、これらの手順で同じである必要があります(SHOULD)。 (たとえば、整数zの実際の値に関係なく、IntegerToString変換には同じ時間がかかるはずです。)整数z、文字列Z、およびその他の中間結果は、不要になったときに安全に削除する必要があります。

Appendix B. ASN.1 Syntax
付録B. ASN.1構文

The ASN.1 syntax for identifying the RSA-KEM Key Transport Algorithm is an extension of the syntax for the "generic hybrid cipher" in ANS X9.44 [ANS-X9.44]. The syntax for the scheme is given in Appendix B.1. The syntax for selected underlying components including those mentioned above is given in Appendix B.2.

RSA-KEMキー転送アルゴリズムを識別するためのASN.1構文は、ANS X9.44 [ANS-X9.44]の「汎用ハイブリッド暗号」の構文を拡張したものです。スキームの構文は付録B.1にあります。上記のコンポーネントを含む、選択した基本コンポーネントの構文は、付録B.2にあります。

The following object identifier prefixes are used in the definitions below:

以下のオブジェクト識別子の接頭辞は、以下の定義で使用されています。

      is18033-2 OID ::= { iso(1) standard(0) is18033(18033) part2(2) }
        
      nistAlgorithm OID ::= {
         joint-iso-itu-t(2) country(16) us(840) organization(1)
         gov(101) csor(3) nistAlgorithm(4)
      }
        
      pkcs-1 OID ::= {
         iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-1(1)
      }
        
      x9-44 OID ::= { iso(1) identified-organization(3) tc68(133)
        country(16) x9(840) x9Standards(9) x9-44(44) }
        
      x9-44-components OID ::= { x9-44 components(1) }
        

NullParms is a more descriptive synonym for NULL when an algorithm identifier has null parameters:

NullParmsは、アルゴリズム識別子にnullパラメータがある場合のNULLのより説明的な同義語です。

      NullParms ::= NULL
        

The material in this Appendix is based on ANS X9.44.

この付録の内容は、ANS X9.44に基づいています。

B.1. RSA-KEM Key Transport Algorithm
B.1. RSA-KEMキー転送アルゴリズム

The object identifier for the RSA-KEM Key Transport Algorithm is id-rsa-kem, which is defined in this document as:

RSA-KEMキー転送アルゴリズムのオブジェクト識別子はid-rsa-kemであり、このドキュメントでは次のように定義されています。

      id-rsa-kem OID ::= {
         iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)
         pkcs-9(9) smime(16) alg(3) 14
      }
        

When id-rsa-kem is used in an AlgorithmIdentifier, the parameters MUST employ the GenericHybridParameters syntax. The parameters MUST be absent when used in the SubjectPublicKeyInfo field. The syntax for GenericHybridParameters is as follows:

id-rsa-kemがAlgorithmIdentifierで使用される場合、パラメーターはGenericHybridParameters構文を使用する必要があります。 SubjectPublicKeyInfoフィールドで使用する場合、パラメーターは存在しない必要があります。 GenericHybridParametersの構文は次のとおりです。

      GenericHybridParameters ::= {
         kem  KeyEncapsulationMechanism,
         dem  DataEncapsulationMechanism
      }
        

The fields of type GenericHybridParameters have the following meanings:

タイプGenericHybridParametersのフィールドには、次の意味があります。

o kem identifies the underlying key encapsulation mechanism, which in this case is also denoted as RSA-KEM.

o kemは、基になるキーカプセル化メカニズムを識別します。このメカニズムは、この場合はRSA-KEMとも呼ばれます。

The object identifier for RSA-KEM (as a key encapsulation mechanism) is id-kem-rsa as:

(キーのカプセル化メカニズムとしての)RSA-KEMのオブジェクト識別子は、id-kem-rsaです。

            id-kem-rsa OID ::= {
               is18033-2 key-encapsulation-mechanism(2) rsa(4)
            }
        

The associated parameters for id-kem-rsa have type RsaKemParameters:

id-kem-rsaに関連付けられたパラメーターのタイプはRsaKemParametersです。

            RsaKemParameters ::= {
               keyDerivationFunction  KeyDerivationFunction,
               keyLength              KeyLength
            }
        

The fields of type RsaKemParameters have the following meanings:

タイプRsaKemParametersのフィールドには以下の意味があります。

* keyDerivationFunction identifies the underlying key derivation function. For alignment with ANS X9.44, it MUST be KDF2 or KDF3. However, other key derivation functions MAY be used with CMS. Please see Appendix B.2.1 for the syntax for KDF2 and KDF3.

* keyDerivationFunctionは、基になるキー導出関数を識別します。 ANS X9.44との調整では、KDF2またはKDF3でなければなりません。ただし、他の主要な派生関数をCMSで使用できます。 KDF2およびKDF3の構文については、付録B.2.1を参照してください。

               KeyDerivationFunction ::=
                  AlgorithmIdentifier {{KDFAlgorithms}}
        
               KDFAlgorithms ALGORITHM ::= {
                  kdf2 | kdf3,
                  ...  -- implementations may define other methods
               }
        

* keyLength is the length in bytes of the key-encrypting key, which depends on the underlying symmetric key-wrapping scheme.

* keyLengthは、キー暗号化キーの長さ(バイト単位)であり、基になる対称キーラッピングスキームによって異なります。

               KeyLength ::= INTEGER (1..MAX)
        

o dem identifies the underlying data encapsulation mechanism. For alignment with ANS X9.44, it MUST be an X9-approved symmetric key-wrapping scheme. However, other symmetric key-wrapping schemes MAY be used with CMS. Please see Appendix B.2.2 for the syntax for the AES, Triple-DES, and Camellia Key Wraps.

o demは、基になるデータカプセル化メカニズムを識別します。 ANS X9.44との整合性のために、それはX9承認の対称鍵ラップ方式でなければなりません。ただし、他の対称鍵ラッピングスキームはCMSで使用できます。 AES、Triple-DES、Camellia Key Wrapの構文については、付録B.2.2を参照してください。

            DataEncapsulationMechanism ::=
               AlgorithmIdentifier {{DEMAlgorithms}}
        
            DEMAlgorithms ALGORITHM ::= {
               X9-SymmetricKeyWrappingSchemes,
               Camellia-KeyWrappingSchemes,
               ...  -- implementations may define other methods
            }
        
            X9-SymmetricKeyWrappingSchemes ALGORITHM ::= {
               aes128-Wrap | aes192-Wrap | aes256-Wrap | tdes-Wrap,
               ...  -- allows for future expansion
            }
        
            Camellia-KeyWrappingSchemes ALGORITHM ::= {
               Camellia128-Wrap | Camellia192-Wrap | Camellia256-Wrap
            }
        
B.2. Selected Underlying Components
B.2. 選択された基礎となるコンポーネント
B.2.1. Key Derivation Functions
B.2.1. 主要な派生関数

The object identifier for KDF2 (see [ANS-X9.44]) is:

KDF2のオブジェクト識別子([ANS-X9.44]を参照)は次のとおりです。

      id-kdf-kdf2 OID ::= { x9-44-components kdf2(1) }
        

The associated parameters identify the underlying hash function. For alignment with ANS X9.44, the hash function MUST be an ASC X9-approved hash function. However, other hash functions MAY be used with CMS.

関連するパラメーターは、基礎となるハッシュ関数を識別します。 ANS X9.44との調整では、ハッシュ関数はASC X9承認のハッシュ関数でなければなりません。ただし、他のハッシュ関数がCMSで使用される場合があります。

      kdf2 ALGORITHM ::= { OID id-kdf-kdf2  PARMS KDF2-HashFunction }
        
      KDF2-HashFunction ::= AlgorithmIdentifier {{KDF2-HashFunctions}}
        
      KDF2-HashFunctions ALGORITHM ::= {
         X9-HashFunctions,
         ...  -- implementations may define other methods
      }
        
      X9-HashFunctions ALGORITHM ::= {
         sha1 | sha224 | sha256 | sha384 | sha512,
         ...  -- allows for future expansion
      }
        

The object identifier for SHA-1 is:

SHA-1のオブジェクト識別子は次のとおりです。

      id-sha1 OID ::= {
         iso(1) identified-organization(3) oiw(14) secsig(3)
         algorithms(2) sha1(26)
      }
        

The object identifiers for SHA-224, SHA-256, SHA-384, and SHA-512 are

SHA-224、SHA-256、SHA-384、およびSHA-512のオブジェクト識別子は次のとおりです。

      id-sha224 OID ::= { nistAlgorithm hashAlgs(2) sha224(4) }
      id-sha256 OID ::= { nistAlgorithm hashAlgs(2) sha256(1) }
      id-sha384 OID ::= { nistAlgorithm hashAlgs(2) sha384(2) }
      id-sha512 OID ::= { nistAlgorithm hashAlgs(2) sha512(3) }
        

There has been some confusion over whether the various SHA object identifiers have a NULL parameter, or no associated parameters. As also discussed in [PKCS1], implementations SHOULD generate algorithm identifiers without parameters and MUST accept algorithm identifiers either without parameters, or with NULL parameters.

さまざまなSHAオブジェクト識別子にNULLパラメータがあるか、関連するパラメータがないかについて、いくつかの混乱がありました。 [PKCS1]でも説明されているように、実装ではパラメータなしのアルゴリズム識別子を生成する必要があり(SHOULD)、パラメータなしまたはNULLパラメータ付きのアルゴリズム識別子を受け入れる必要があります(MUST)。

      sha1   ALGORITHM ::= { OID id-sha1   } -- NULLParms MUST be
      sha224 ALGORITHM ::= { OID id-sha224 } -- accepted for these
      sha256 ALGORITHM ::= { OID id-sha256 } -- OIDs
      sha384 ALGORITHM ::= { OID id-sha384 } -- ""
      sha512 ALGORITHM ::= { OID id-sha512 } -- ""
        

The object identifier for KDF3 (see [ANS-X9.44]) is:

KDF3のオブジェクト識別子([ANS-X9.44]を参照)は次のとおりです。

      id-kdf-kdf3 OID ::= { x9-44-components kdf3(2) }
        

The associated parameters identify the underlying hash function. For alignment with the draft ANS X9.44, the hash function MUST be an ASC X9-approved hash function. However, other hash functions MAY be used with CMS.

関連するパラメーターは、基礎となるハッシュ関数を識別します。 ANS X9.44ドラフトとの整合性のために、ハッシュ関数はASC X9承認のハッシュ関数でなければなりません。ただし、他のハッシュ関数がCMSで使用される場合があります。

      kdf3 ALGORITHM ::= { OID id-kdf-kdf3  PARMS KDF3-HashFunction }
        
      KDF3-HashFunction ::= AlgorithmIdentifier { KDF3-HashFunctions }
        
      KDF3-HashFunctions ALGORITHM ::= {
         X9-HashFunctions,
         ...  -- implementations may define other methods
      }
        
B.2.2. Symmetric Key-Wrapping Schemes
B.2.2. 対称キーラップ方式

The object identifiers for the AES Key Wrap depend on the size of the key-encrypting key. There are three object identifiers (see [AES-WRAP]):

AESキーラップのオブジェクト識別子は、キー暗号化キーのサイズによって異なります。 3つのオブジェクト識別子があります([AES-WRAP]を参照):

      id-aes128-Wrap OID ::= { nistAlgorithm aes(1) aes128-Wrap(5) }
      id-aes192-Wrap OID ::= { nistAlgorithm aes(1) aes192-Wrap(25) }
      id-aes256-Wrap OID ::= { nistAlgorithm aes(1) aes256-Wrap(45) }
        

These object identifiers have no associated parameters.

これらのオブジェクト識別子には、関連するパラメーターはありません。

      aes128-Wrap ALGORITHM ::= { OID id-aes128-Wrap }
      aes192-Wrap ALGORITHM ::= { OID id-aes192-Wrap }
      aes256-Wrap ALGORITHM ::= { OID id-aes256-Wrap }
        

The object identifier for the Triple-DES Key Wrap (see [3DES-WRAP]) is:

Triple-DESキーラップ([3DES-WRAP]を参照)のオブジェクト識別子は次のとおりです。

      id-alg-CMS3DESwrap OBJECT IDENTIFIER ::= {
         iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9)
         smime(16) alg(3) 6
      }
        

This object identifier has a NULL parameter.

このオブジェクト識別子にはNULLパラメータがあります。

      tdes-Wrap ALGORITHM ::=
         { OID id-alg-CMS3DESwrap  PARMS NullParms }
        

NOTE: ASC X9 has not yet incorporated AES Key Wrap with Padding [AES-WRAP-PAD] into ANS X9.44. When ASC X9.44 adds AES Key Wrap with Padding, this document will also be updated.

注:ASC X9はまだANS X9.44にAESキーラップとパディング[AES-WRAP-PAD]を組み込んでいません。 ASC X9.44がAES Key Wrap with Paddingを追加すると、このドキュメントも更新されます。

The object identifiers for the Camellia Key Wrap depend on the size of the key-encrypting key. There are three object identifiers:

Camellia Key Wrapのオブジェクト識別子は、キー暗号化キーのサイズによって異なります。 3つのオブジェクト識別子があります。

      id-camellia128-Wrap OBJECT IDENTIFIER ::=
         { iso(1) member-body(2) 392 200011 61 security(1)
           algorithm(1) key-wrap-algorithm(3)
           camellia128-wrap(2) }
        
      id-camellia192-Wrap OBJECT IDENTIFIER ::=
         { iso(1) member-body(2) 392 200011 61 security(1)
           algorithm(1) key-wrap-algorithm(3)
           camellia192-wrap(3) }
        
      id-camellia256-Wrap OBJECT IDENTIFIER ::=
         { iso(1) member-body(2) 392 200011 61 security(1)
           algorithm(1) key-wrap-algorithm(3)
           camellia256-wrap(4) }
        

These object identifiers have no associated parameters.

これらのオブジェクト識別子には、関連するパラメーターはありません。

      camellia128-Wrap ALGORITHM ::= { OID id-camellia128-Wrap }
      camellia192-Wrap ALGORITHM ::= { OID id-camellia192-Wrap }
      camellia256-Wrap ALGORITHM ::= { OID id-camellia256-Wrap }
        
B.3. ASN.1 Module
B.3. ASN.1モジュール
   CMS-RSA-KEM
      { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)
        pkcs-9(9) smime(16) modules(0) cms-rsa-kem(21) }
        
   DEFINITIONS ::=
        

BEGIN

ベギン

-- EXPORTS ALL

-すべてエクスポート

-- IMPORTS None

-インポートなし

   -- Useful types and definitions
   OID ::= OBJECT IDENTIFIER  -- alias
        
   -- Unless otherwise stated, if an object identifier has associated
   -- parameters (i.e., the PARMS element is specified), the
   -- parameters field shall be included in algorithm identifier
   -- values.  The parameters field shall be omitted if and only if
   -- the object identifier does not have associated parameters
   -- (i.e., the PARMS element is omitted), unless otherwise stated.
        
   ALGORITHM ::= CLASS {
      &id    OBJECT IDENTIFIER  UNIQUE,
      &Type  OPTIONAL
   }
   WITH SYNTAX { OID &id [PARMS &Type] }
        
   AlgorithmIdentifier { ALGORITHM:IOSet } ::= SEQUENCE {
      algorithm   ALGORITHM.&id( {IOSet} ),
      parameters  ALGORITHM.&Type( {IOSet}{@algorithm} ) OPTIONAL
   }
        
   NullParms ::= NULL
        

-- ISO/IEC 18033-2 arc

ーー いそ/いえC 18033ー2 あrc

   is18033-2 OID ::= { iso(1) standard(0) is18033(18033) part2(2) }
        

-- NIST algorithm arc

-NISTアルゴリズムアーク

   nistAlgorithm OID ::= {
      joint-iso-itu-t(2) country(16) us(840) organization(1)
      gov(101) csor(3) nistAlgorithm(4)
   }
        

-- PKCS #1 arc

-PKCS#1アーク

   pkcs-1 OID ::= {
      iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-1(1)
   }
        

-- RSA-KEM Key Transport Algorithm

-RSA-KEMキー転送アルゴリズム

   id-rsa-kem OID ::= {
      iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)
      pkcs-9(9) smime(16) alg(3) 14
   }
   GenericHybridParameters ::= SEQUENCE {
      kem  KeyEncapsulationMechanism,
      dem  DataEncapsulationMechanism
   }
        
   KeyEncapsulationMechanism ::= AlgorithmIdentifier {{KEMAlgorithms}}
        
   KEMAlgorithms ALGORITHM ::= { kem-rsa, ... }
        
   kem-rsa ALGORITHM ::= { OID id-kem-rsa PARMS RsaKemParameters }
        
   id-kem-rsa OID ::= {
      is18033-2 key-encapsulation-mechanism(2) rsa(4)
   }
        
   RsaKemParameters ::= SEQUENCE {
      keyDerivationFunction  KeyDerivationFunction,
      keyLength              KeyLength
   }
        
   KeyDerivationFunction ::= AlgorithmIdentifier {{KDFAlgorithms}}
        
   KDFAlgorithms ALGORITHM ::= {
      kdf2 | kdf3,
      ...  -- implementations may define other methods
   }
        
   KeyLength ::= INTEGER (1..MAX)
        
   DataEncapsulationMechanism ::= AlgorithmIdentifier {{DEMAlgorithms}}
        
   DEMAlgorithms ALGORITHM ::= {
      X9-SymmetricKeyWrappingSchemes |
      Camellia-KeyWrappingSchemes,
      ...  -- implementations may define other methods
   }
        
   X9-SymmetricKeyWrappingSchemes ALGORITHM ::= {
      aes128-Wrap | aes192-Wrap | aes256-Wrap | tdes-Wrap,
      ...  -- allows for future expansion
   }
        
   X9-SymmetricKeyWrappingScheme ::=
               AlgorithmIdentifier {{ X9-SymmetricKeyWrappingSchemes }}
        
   Camellia-KeyWrappingSchemes ALGORITHM ::= {
      camellia128-Wrap | camellia192-Wrap | camellia256-Wrap,
      ... -- allows for future expansion
   }
        
   Camellia-KeyWrappingScheme ::=
                  AlgorithmIdentifier {{ Camellia-KeyWrappingSchemes }}
        

-- Key Derivation Functions

-主要な派生関数

   id-kdf-kdf2 OID ::= { x9-44-components kdf2(1) }
        

-- Base arc

-ベースアーク

   x9-44 OID ::= {
      iso(1) identified-organization(3) tc68(133) country(16) x9(840)
      x9Standards(9) x9-44(44)
   }
        
   x9-44-components OID ::= { x9-44 components(1) }
        
   kdf2 ALGORITHM ::= { OID id-kdf-kdf2  PARMS KDF2-HashFunction }
        
   KDF2-HashFunction ::= AlgorithmIdentifier {{ KDF2-HashFunctions }}
        
   KDF2-HashFunctions ALGORITHM ::= {
      X9-HashFunctions,
      ...  -- implementations may define other methods
   }
        
   id-kdf-kdf3 OID ::= { x9-44-components kdf3(2) }
        
   kdf3 ALGORITHM ::= { OID id-kdf-kdf3  PARMS KDF3-HashFunction }
        
   KDF3-HashFunction  ::= AlgorithmIdentifier {{ KDF3-HashFunctions }}
        
   KDF3-HashFunctions ALGORITHM ::= {
      X9-HashFunctions,
      ...  -- implementations may define other methods
   }
        

-- Hash Functions

-ハッシュ関数

   X9-HashFunctions ALGORITHM ::= {
      sha1 | sha224 | sha256 | sha384 | sha512,
      ...  -- allows for future expansion
   }
   id-sha1 OID ::= {
      iso(1) identified-organization(3) oiw(14) secsig(3)
      algorithms(2) sha1(26)
   }
        
   id-sha224 OID ::= { nistAlgorithm hashAlgs(2) sha224(4) }
        
   id-sha256 OID ::= { nistAlgorithm hashAlgs(2) sha256(1) }
        
   id-sha384 OID ::= { nistAlgorithm hashAlgs(2) sha384(2) }
        
   id-sha512 OID ::= { nistAlgorithm hashAlgs(2) sha512(3) }
        
   sha1   ALGORITHM ::= { OID id-sha1    } -- NullParms MUST be
        
   sha224 ALGORITHM ::= { OID id-sha224  } -- accepted for these
        
   sha256 ALGORITHM ::= { OID id-sha256  } -- OIDs
        
   sha384 ALGORITHM ::= { OID id-sha384  } -- ""
        
   sha512 ALGORITHM ::= { OID id-sha512  } -- ""
        

-- Symmetric Key-Wrapping Schemes

-対称キーラップ方式

   id-aes128-Wrap OID ::= { nistAlgorithm aes(1) aes128-Wrap(5)  }
        
   id-aes192-Wrap OID ::= { nistAlgorithm aes(1) aes192-Wrap(25) }
        
   id-aes256-Wrap OID ::= { nistAlgorithm aes(1) aes256-Wrap(45) }
        
   aes128-Wrap ALGORITHM ::= { OID id-aes128-Wrap }
        
   aes192-Wrap ALGORITHM ::= { OID id-aes192-Wrap }
        
   aes256-Wrap ALGORITHM ::= { OID id-aes256-Wrap }
        
   id-alg-CMS3DESwrap OBJECT IDENTIFIER ::= {
      iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9)
      smime(16) alg(3) 6
   }
        
   tdes-Wrap ALGORITHM ::= { OID id-alg-CMS3DESwrap  PARMS NullParms }
        
   id-camellia128-Wrap OBJECT IDENTIFIER ::=
      { iso(1) member-body(2) 392 200011 61 security(1)
        algorithm(1) key-wrap-algorithm(3)
        camellia128-wrap(2) }
        
   id-camellia192-Wrap OBJECT IDENTIFIER ::=
      { iso(1) member-body(2) 392 200011 61 security(1)
        algorithm(1) key-wrap-algorithm(3)
        camellia192-wrap(3) }
        
   id-camellia256-Wrap OBJECT IDENTIFIER ::=
      { iso(1) member-body(2) 392 200011 61 security(1)
        algorithm(1) key-wrap-algorithm(3)
        camellia256-wrap(4) }
        
   camellia128-Wrap ALGORITHM ::= { OID id-camellia128-Wrap }
        
   camellia192-Wrap ALGORITHM ::= { OID id-camellia192-Wrap }
        
   camellia256-Wrap ALGORITHM ::= { OID id-camellia256-Wrap }
        

END

終わり

B.4. Examples
B.4. 例

As an example, if the key derivation function is KDF3 based on SHA-256 and the symmetric key-wrapping scheme is the AES Key Wrap with a 128-bit KEK, the AlgorithmIdentifier for the RSA-KEM Key Transport Algorithm will have the following value:

例として、鍵導出関数がSHA-256に基づくKDF3であり、対称鍵ラップ方式が128ビットKEKのAES鍵ラップである場合、RSA-KEM鍵転送アルゴリズムのAlgorithmIdentifierは次の値になります:

   SEQUENCE {
      id-rsa-kem,                                   -- RSA-KEM cipher
      SEQUENCE {                           -- GenericHybridParameters
         SEQUENCE {                    -- key encapsulation mechanism
            id-kem-rsa,                                    -- RSA-KEM
            SEQUENCE {                            -- RsaKemParameters
               SEQUENCE {                  -- key derivation function
                  id-kdf-kdf3,                                -- KDF3
                  SEQUENCE {                     -- KDF3-HashFunction
                     id-sha256  -- SHA-256; no parameters (preferred)
                  },
               16                              -- KEK length in bytes
               },
         SEQUENCE {                   -- data encapsulation mechanism
            id-aes128-Wrap             -- AES-128 Wrap; no parameters
         }
      }
   }
   This AlgorithmIdentifier value has the following DER encoding:
        

30 47 06 0b 2a 86 48 86 f7 0d 01 09 10 03 0e -- id-rsa-kem 30 38 30 29 06 07 28 81 8c 71 02 02 04 -- id-kem-rsa 30 1e 30 19 06 0a 2b 81 05 10 86 48 09 2c 01 02 -- id-kdf-kdf3 30 0b 06 09 60 86 48 01 65 03 04 02 01 -- id-sha256 02 01 10 -- 16 bytes 30 0b 06 09 60 86 48 01 65 03 04 01 05 -- id-aes128-Wrap

30 47 06 0b 2a 86 48 86 f7 0d 01 09 10 03 0e-id-rsa-kem 30 38 30 29 06 07 28 81 8c 71 02 02 04-id-kem-rsa 30 1e 30 19 06 0a 2b 81 05 10 86 48 09 2c 01 02-id-kdf-kdf3 30 0b 06 09 60 86 48 01 65 03 04 02 01-id-sha256 02 01 10-16バイト30 0b 06 09 60 86 48 01 65 03 04 01 05-id-aes128-Wrap

The DER encodings for other typical sets of underlying components are as follows:

基礎となるコンポーネントの他の一般的なセットのDERエンコーディングは次のとおりです。

o KDF3 based on SHA-384, AES Key Wrap with a 192-bit KEK

o SHA-384に基づくKDF3、192ビットKEKのAESキーラップ

30 47 06 0b 2a 86 48 86 f7 0d 01 09 10 03 0e 30 38 30 29 06 07 28 81 8c 71 02 02 04 30 1e 30 19 06 0a 2b 81 05 10 86 48 09 2c 01 02 30 0b 06 09 60 86 48 01 65 03 04 02 02 02 01 18 30 0b 06 09 60 86 48 01 65 03 04 01 19

30 47 06 0b 2a 86 48 86 f7 0d 01 09 10 03 0e 30 38 30 29 06 07 28 81 8c 71 02 02 04 30 1e 30 19 06 0a 2b 81 05 10 86 48 09 2c 01 02 30 0b 06 09 60 86 48 01 65 03 04 02 02 02 01 18 30 0b 06 09 60 86 48 01 65 03 04 01 19

o KDF3 based on SHA-512, AES Key Wrap with a 256-bit KEK

o SHA-512ベースのKDF3、256ビットKEKのAESキーラップ

30 47 06 0b 2a 86 48 86 f7 0d 01 09 10 03 0e 30 38 30 29 06 07 28 81 8c 71 02 02 04 30 1e 30 19 06 0a 2b 81 05 10 86 48 09 2c 01 02 30 0b 06 09 60 86 48 01 65 03 04 02 03 02 01 20 30 0b 06 09 60 86 48 01 65 03 04 01 2d

30 47 06 0b 2a 86 48 86 f7 0d 01 09 10 03 0e 30 38 30 29 06 07 28 81 8c 71 02 02 04 30 1e 30 19 06 0a 2b 81 05 10 86 48 09 2c 01 02 30 0b 06 09 60 86 48 01 65 03 04 02 03 02 01 20 30 0b 06 09 60 86 48 01 65 03 04 01 2d

o KDF2 based on SHA-1, Triple-DES Key Wrap with a 128-bit KEK (two-key Triple-DES)

o SHA-1に基づくKDF2、128ビットKEKのトリプルDESキーラップ(2キートリプルDES)

30 45 06 0b 2a 86 48 86 f7 0d 01 09 10 03 0e 30 36 30 25 06 07 28 81 8c 71 02 02 04 30 1a 30 15 06 0a 2b 81 05 10 86 48 09 2c 01 01 30 07 06 05 2b 0e 03 02 1a 02 01 10 30 0d 06 0b 2a 86 48 86 f7 0d 01 09 10 03 06

30 45 06 0b 2a 86 48 86 f7 0d 01 09 10 03 0e 30 36 30 25 06 07 28 81 8c 71 02 02 04 30 1a 30 15 06 0a 2b 81 05 10 86 48 09 2c 01 01 30 07 06 05 2b 0e 03 02 1a 02 01 10 30 0d 06 0b 2a 86 48 86 f7 0d 01 09 10 03 06

Authors' Addresses

著者のアドレス

James Randall Randall Consulting 55 Sandpiper Drive Dover, NH 03820 USA

James Randall Randall Consulting 55 Sandpiper Drive Dover、NH 03820 USA

   EMail: jdrandall@comcast.net
        

Burt Kaliski EMC 176 South Street Hopkinton, MA 01748 USA

Burt Kaliski EMC 176 South Street Hopkinton、MA 01748 USA

   EMail: burt.kaliski@emc.com
        

John Brainard RSA, The Security Division of EMC 174 Middlesex Turnpike Bedford, MA 01730 USA

John Brainard RSA、EMCのセキュリティ部門174 Middlesex Turnpike Bedford、MA 01730 USA

   EMail: jbrainard@rsa.com
        

Sean Turner IECA, Inc. 3057 Nutley Street, Suite 106 Fairfax, VA 22031 USA

Sean Turner IECA、Inc. 3057 Nutley Street、Suite 106 Fairfax、VA 22031 USA

   EMail: turners@ieca.com