[要約] RFC 2949は、Telnetセッションの暗号化に使用されるCAST-128 64ビット出力フィードバックを定義しています。このRFCの目的は、セキュアなTelnet通信を提供するために、CAST-128暗号化アルゴリズムを使用する方法を提案することです。

Network Working Group                                          J. Altman
Request for Comments: 2949                           Columbia University
Category: Standards Track                                 September 2000
        

Telnet Encryption: CAST-128 64 bit Output Feedback

Telnet暗号化:CAST-128 64ビット出力フィードバック

Status of this Memo

本文書の位置付け

This document specifies an Internet standards track protocol for the Internet community, and requests discussion and suggestions for improvements. Please refer to the current edition of the "Internet Official Protocol Standards" (STD 1) for the standardization state and status of this protocol. Distribution of this memo is unlimited.

このドキュメントは、インターネットコミュニティのインターネット標準トラックプロトコルを指定し、改善のための議論と提案を要求します。このプロトコルの標準化状態とステータスについては、「インターネット公式プロトコル標準」(STD 1)の現在のエディションを参照してください。このメモの配布は無制限です。

Copyright Notice

著作権表示

Copyright (C) The Internet Society (2000). All Rights Reserved.

Copyright(c)The Internet Society(2000)。無断転載を禁じます。

Abstract

概要

This document specifies how to use the CAST-128 encryption algorithm in output feedback mode with the telnet encryption option. Two key sizes are defined: 40 bit and 128 bit.

このドキュメントは、Telnet暗号化オプションで出力フィードバックモードでCAST-128暗号化アルゴリズムを使用する方法を指定します。40ビットと128ビットの2つのキーサイズが定義されています。

1. Command Names and Codes
1. コマンド名とコード

Encryption Type

暗号化の種類

CAST5_40_OFB64 9 CAST128_OFB64 11

CAST5_40_OFB64 9 CAST128_OFB64 11

Suboption Commands

サブオプションコマンド

OFB64_IV 1 OFB64_IV_OK 2 OFB64_IV_BAD 3

OFB64_IV 1 OFB64_IV_OK 2 OFB64_IV_BAD 3

2. Command Meanings
2. コマンドの意味
   IAC SB ENCRYPT IS CAST5_40_OFB64 OFB64_IV <initial vector> IAC SE
   IAC SB ENCRYPT IS CAST128_OFB64 OFB64_IV <initial vector> IAC SE
        

The sender of this command generates a random 8 byte initial vector, and sends it to the other side of the connection using the OFB64_IV command. The initial vector is sent in clear text. Only the side of the connection that is WILL ENCRYPT may send the OFB64_IV command.

このコマンドの送信者は、ランダムな8バイト初期ベクトルを生成し、OFB64_IVコマンドを使用して接続の反対側に送信します。初期ベクトルは明確なテキストで送信されます。暗号化される接続の側面のみがOFB64_IVコマンドを送信できます。

IAC SB ENCRYPT REPLY CAST5_40_OFB64 OFB64_IV_OK IAC SE IAC SB ENCRYPT REPLY CAST128_OFB64 OFB64_IV_OK IAC SE IAC SB ENCRYPT REPLY CAST5_40_OFB64 OFB64_IV_BAD IAC SE IAC SB ENCRYPT REPLY CAST128_OFB64 OFB64_IV_BAD IAC SE

IAC SB暗号化REPLY CAST5_40_OFB64 OFB64_IV_OK IAC SE IAC SB ENCRYPT REPLY CAST128_OFB64 OFB64_OK IAC SB SB INMERYPT REPLS5_40_OFB64 OFB64_IV_IV_BAD IAC SB ENCRY REPLY REPLY REPLY REPLY REPLY REPLY REPLE

The sender of these commands either accepts or rejects the initial vector received in a OFB64_IV command. Only the side of the connection that is DO ENCRYPT may send the OFB64_IV_OK and OFB64_IV_BAD commands. The OFB64_IV_OK command MUST be sent for backwards compatibility with existing implementations; there really isn't any reason why a sender would need to send the OFB64_IV_BAD command except in the case of a protocol violation where the IV sent was not of the correct length (i.e., 8 bytes).

これらのコマンドの送信者は、OFB64_IVコマンドで受信した最初のベクトルを受け入れるか拒否します。暗号化されている接続の側面のみが、OFB64_IV_OKおよびOFB64_IV_BADコマンドを送信できます。OFB64_IV_OKコマンドは、既存の実装との逆方向の互換性のために送信する必要があります。送信者が送信されたプロトコル違反の場合を除き、送信者がOFB64_IV_BADコマンドを送信する必要がある理由は実際にはありません。

3. Implementation Rules
3. 実装ルール

Once a OFB64_IV_OK command has been received, the WILL ENCRYPT side of the connection should do keyid negotiation using the ENC_KEYID command. Once the keyid negotiation has successfully identified a common keyid, then START and END commands may be sent by the side of the connection that is WILL ENCRYPT. Data will be encrypted using the CAST128 64 bit Output Feedback algorithm.

ofb64_iv_okコマンドが受信されると、接続の[暗号化側]がENC_KEYIDコマンドを使用してKeyIDネゴシエーションを行う必要があります。KeyID交渉が共通のKeyIDを正常に識別したら、暗号化される接続の側面によって開始および終了コマンドが送信される場合があります。データは、CAST128 64ビット出力フィードバックアルゴリズムを使用して暗号化されます。

If encryption (decryption) is turned off and back on again, and the same keyid is used when re-starting the encryption (decryption), the intervening clear text must not change the state of the encryption (decryption) machine.

暗号化(復号化)がオフになって再びオンになっている場合、暗号化(復号化)を再起動するときに同じKeyIDが使用されている場合、介在する明確なテキストは、暗号化(復号化)マシンの状態を変更してはなりません。

If a START command is sent (received) with a different keyid, the encryption (decryption) machine must be re-initialized immediately following the end of the START command with the new key and the initial vector sent (received) in the last OFB64_IV command.

別のkeyIDで開始コマンドが送信(受信)の場合、新しいキーと最後のb64_ivコマンドで送信された初期ベクトル(受信)を使用して、開始コマンドの終了後に暗号化(復号化)マシンを再開する必要があります。

If a new OFB64_IV command is sent (received), and encryption (decryption) is enabled, the encryption (decryption) machine must be re-initialized immediately following the end of the OFB64_IV command with the new initial vector, and the keyid sent (received) in the last START command.

新しいb64_ivコマンドが送信され(受信)、暗号化(復号化)が有効になっている場合、暗号化(復号化)マシンは、ofb64_ivコマンドの終了後、新しい初期ベクトルと送信されたKeyID(受信)の直後に再開する必要があります。)最後の開始コマンドで。

If encryption (decryption) is not enabled when a OFB64_IV command is sent (received), the encryption (decryption) machine must be re-initialized after the next START command, with the keyid sent (received) in that START command, and the initial vector sent (received) in this OFB64_IV command.

ofb64_ivコマンドが送信された場合(受信)、暗号化(復号化)が有効になっていない場合、暗号化(復号化)マシンは次の開始コマンドの後に再開する必要があり、その開始コマンドにkeyID(受信)が送信され、最初のコマンドが送信されます。ofb64_ivコマンドで送信(受信)。

4. Algorithm
4. アルゴリズム

CAST 64 bit Output Feedback

64ビット出力フィードバックをキャストします

   key --->+------+
        +->| CAST |--+
        |  +------+  |
        +------------+
                     v
    INPUT --------->(+) ----> DATA
        

Given: iV: Initial vector, 64 bits (8 bytes) long. Dn: the nth chunk of 64 bits (8 bytes) of data to encrypt (decrypt). On: the nth chunk of 64 bits (8 bytes) of encrypted (decrypted) output.

指定:IV:初期ベクトル、64ビット(8バイト)の長さ。DN:暗号化(復号化)に64ビット(8バイト)のデータ(8バイト)のn番目のチャンク。ON:暗号化された(復号化された)出力の64ビット(8バイト)のn番目のチャンク。

        V0 = CAST(iV, key)
        V(n+1) = CAST(Vn, key)
        On = Dn ^ Vn
        
5. Integration with the AUTHENTICATION telnet option
5. 認証Telnetオプションとの統合

As noted in the telnet ENCRYPTION option specifications, a keyid value of zero indicates the default encryption key, as might be derived from the telnet AUTHENTICATION option. If the default encryption key negotiated as a result of the telnet AUTHENTICATION option contains less than 16 (5) bytes, then the CAST128_OFB64 (CAST5_40_OFB64) option must not be offered or used as a valid telnet encryption option.

Telnet暗号化オプションの仕様に記載されているように、ゼロのKeyID値は、Telnet認証オプションから導出される可能性があるデフォルトの暗号化キーを示します。Telnet認証オプションの結果としてネゴシエートされたデフォルトの暗号化キーに16(5)バイトが含まれている場合、CAST128_OFB64(CAST5_40_OFB64)オプションを有効なTelnet暗号化オプションとして提供または使用してはなりません。

If there are less than 32 (10) bytes of key data, the first 16 (5) bytes of key data are used as keyid 0 in each direction. If there are at least 32 (10) bytes of key data, the first 16 (5) bytes of key data are used to encrypt the data sent by the telnet client to the telnet server; the second 16 (5) bytes of key data are used to encrypt the data sent by the telnet server to the telnet client.

キーデータの32バイト未満の場合、キーデータの最初の16バイトが各方向にkeyID 0として使用されます。主要なデータの少なくとも32バイトがある場合、主要なデータの最初の16バイトが使用され、Telnetクライアントが送信したデータをTelnetサーバーに暗号化します。主要なデータの2番目の16バイトが使用され、Telnetサーバーから送信されたデータをTelnetクライアントに暗号化します。

Any extra key data is used as random data to be sent as an initialization vector.

追加のキーデータは、初期化ベクトルとして送信されるランダムデータとして使用されます。

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

Encryption using Output Feedback does not ensure data integrity; an active attacker may be able to substitute text, if he can predict the clear-text that was being transmitted.

出力フィードバックを使用した暗号化は、データの整合性を確保しません。アクティブな攻撃者は、送信されているクリアテキストを予測できる場合、テキストを置き換えることができる場合があります。

The tradeoff here is that adding a message authentication code (MAC) will significantly increase the number of bytes needed to send a single character in the telnet protocol, which will impact performance on slow (i.e. dialup) links.

ここでのトレードオフは、メッセージ認証コード(MAC)を追加すると、Telnetプロトコルで単一の文字を送信するのに必要なバイト数が大幅に増加し、Slow(つまりダイヤルアップ)リンクのパフォーマンスに影響を与えることです。

This option was originally drafted back when CPU speeds where not necessarily fast enough to do allow use of CFB. Since then, CPU's have gotten much faster. Given the inherent weaknesses in Output Feedback mode, perhaps it should be deprecated in favor of CFB modes?

このオプションは、CPUがCFBの使用を許可するのに十分な速度ではない場合に、CPUが速度を上げたときに元々ドラフトされました。それ以来、CPUははるかに速くなりました。出力フィードバックモードに固有の弱点を考えると、おそらくCFBモードを支持して非推奨する必要がありますか?

Encryption modes using 40-bit keys are not to be considered secure. The 40 bit key mode CAST5_40_OFB64 is listed here simply to document the implementations that are already prevalent on the Internet but have never been documented.

40ビットキーを使用した暗号化モードは、安全であるとは見なされません。40ビットキーモードCAST5_40_OFB64は、単にインターネット上で既に一般的であるが文書化されていない実装を文書化するためだけにリストされています。

7. Acknowledgments
7. 謝辞

This document was based on the "Telnet Encryption: DES 64 bit Output Feedback" document originally written by Dave Borman of Cray Research with the assistance of the IETF Telnet Working Group.

このドキュメントは、IETF Telnetワーキンググループの支援を受けて、Cray ResearchのDave Bormanが元々書いた「Telnet暗号化:DES 64ビット出力フィードバック」ドキュメントに基づいていました。

8. References
8. 参考文献

[1] Adams, C., "The CAST-128 Encryption Algorithm", RFC 2144, May 1997.

[1] Adams、C。、「The Cast-128暗号化アルゴリズム」、RFC 2144、1997年5月。

Author's Address

著者の連絡先

Jeffrey Altman, Editor Columbia University 612 West 115th Street Room 716 New York NY 10025 USA

ジェフリー・アルトマン、編集者コロンビア大学612ウェスト115thストリートルーム716ニューヨークNY 10025 USA

   Phone: +1 (212) 854-1344
   EMail: jaltman@columbia.edu
        

Full Copyright Statement

完全な著作権声明

Copyright (C) The Internet Society (2000). All Rights Reserved.

Copyright(c)The Internet Society(2000)。無断転載を禁じます。

This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to the Internet Society or other Internet organizations, except as needed for the purpose of developing Internet standards in which case the procedures for copyrights defined in the Internet Standards process must be followed, or as required to translate it into languages other than English.

このドキュメントと翻訳は他の人にコピーされて提供される場合があります。また、それについてコメントまたは説明する派生作品、またはその実装を支援することは、いかなる種類の制限なしに、準備、コピー、公開、および部分的に配布される場合があります。、上記の著作権通知とこの段落がそのようなすべてのコピーとデリバティブ作品に含まれている場合。ただし、このドキュメント自体は、インターネット協会や他のインターネット組織への著作権通知や参照を削除するなど、いかなる方法でも変更できない場合があります。インターネット標準プロセスに従うか、英語以外の言語に翻訳するために必要な場合に従う必要があります。

The limited permissions granted above are perpetual and will not be revoked by the Internet Society or its successors or assigns.

上記の限られた許可は永続的であり、インターネット社会またはその後継者または譲受人によって取り消されることはありません。

This document and the information contained herein 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.

RFCエディター機能の資金は現在、インターネット協会によって提供されています。