Network Working Group T. Ts'o
Request for Comments: 2952 VA Linux Systems
Category: Informational September 2000
Telnet Encryption: DES 64 bit Cipher Feedback
1. Command Names and Codes
Encryption Type
2. Command Meanings
IAC SB ENCRYPT IS DES_CFB64 CFB64_IV <initial vector> IAC SE
T'so Informational [Page 1]
RFC 2952 DES 64 bit Cipher Feedback September 2000 3. Implementation RulesOnce a CFB64_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 DES 64 bit Cipher Feedback algorithm.
T'so Informational [Page 2]
RFC 2952 DES 64 bit Cipher Feedback September 2000 4. AlgorithmGiven that V[i] is the initial 64 bit vector, V[n] is the nth 64 bit vector, D[n] is the nth chunk of 64 bits of data to encrypt (decrypt), and O[n] is the nth chunk of 64 bits of encrypted (decrypted) data, then:
5. Integration with the AUTHENTICATION telnet option
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 8 bytes, then the DES_CFB64 option must not be offered or used as a valid telnet encryption option. If the encryption key negotiated as a result of the telnet AUTHENTICATION option is greater than 16 bytes the first 8 bytes of the key should be used as keyid 0 for data sent from the telnet client to the telnet server, and the second 8 bytes of the key should be used as keyid 0 for data sent by the telnet server to the telnet client. Otherwise, the first 8 bytes of the encryption key is used as keyid zero for the telnet ENCRYPTION option in both directions (with the client as WILL ENCRYPT and the server as WILL ENCRYPT).
T'so Informational [Page 3]
RFC 2952 DES 64 bit Cipher Feedback September 2000 6. Security ConsiderationsEncryption using Cipher Feedback does not ensure data integrity; the active attacker has a limited ability to modify text, if he can predict the clear-text that was being transmitted. The limitations faced by the attacker (that only 8 bytes can be modified at a time, and the following 8-byte block of data will be corrupted, thus making detection likely) are significant, but it is possible that an active attacker still might be able to exploit this weakness.
7. Acknowledgments
This document was originally written by Dave Borman of Cray Research with the assistance of the IETF Telnet Working Group.
T'so Informational [Page 4]
RFC 2952 DES 64 bit Cipher Feedback September 2000
Full Copyright Statement