home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1997 December / Internet_Info_CD-ROM_Walnut_Creek_December_1997.iso / drafts / draft_ietf_q_t / draft-ietf-secsh-transport-02.txt < prev    next >
Text File  |  1997-10-14  |  46KB  |  1,179 lines

  1. Network Working Group                                          T. Ylonen
  2. INTERNET-DRAFT                                                T. Kivinen
  3. draft-ietf-secsh-transport-02.txt                            M. Saarinen
  4. Expires in six months                                                SSH
  5.                                                          14 October 1997
  6.  
  7.                       SSH Transport Layer Protocol
  8.  
  9. Status of This memo
  10.  
  11. This document is an Internet-Draft. Internet-Drafts are working
  12. documents of the Internet Engineering Task Force (IETF), its areas,
  13. and its working groups. Note that other groups may also distribute
  14. working documents as Internet-Drafts.
  15.  
  16. Internet-Drafts are draft documents valid for a maximum of six
  17. months and may be updated, replaced, or obsoleted by other documents
  18. at any time. It is inappropriate to use Internet-Drafts as reference
  19. material or to cite them other than as ``work in progress.''
  20.  
  21. To learn the current status of any Internet-Draft, please check
  22. the ``1id-abstracts.txt'' listing contained in the Internet-Drafts
  23. Shadow Directories on ftp.is.co.za (Africa), nic.nordu.net (Europe),
  24. munnari.oz.au (Pacific Rim), ds.internic.net (US East Coast),
  25. or ftp.isi.edu (US West Coast).
  26.  
  27. Abstract
  28.  
  29. SSH is a protocol for secure remote login and other secure network ser-
  30. vices over an insecure network.  
  31.  
  32. This document describes the SSH transport layer protocol which typically 
  33. runs on top of TCP/IP. The protocol can be used as a basis for a number 
  34. of secure network services. It provides strong encryption, server 
  35. authentication, and integrity protection. It may also provide 
  36. compression.  
  37.  
  38. Key exchange method, public key algorithm, symmetric encryption 
  39. algorithm, message authentication algorithm, and hash algorithm are all 
  40. negotiated.
  41.  
  42. This document also describes the Diffie-Hellman key exchange method and 
  43. the minimal set of algorithms that are needed to implement the SSH 
  44. transport layer protocol.
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58. T. Ylonen, T. Kivinen, and M. Saarinen                          [page 1]
  59.  
  60. INTERNET-DRAFT                                           14 October 1997
  61.  
  62. Table of Contents
  63.  
  64. 1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . . . .  2
  65. 2.  Conventions Used in This Document   . . . . . . . . . . . . . . .  3
  66. 3.  Connection Setup  . . . . . . . . . . . . . . . . . . . . . . . .  3
  67.   3.1.  Use over TCP/IP   . . . . . . . . . . . . . . . . . . . . . .  3
  68.   3.2.  Protocol Version Exchange   . . . . . . . . . . . . . . . . .  3
  69.   3.3.  Compatibility with Old SSH Versions   . . . . . . . . . . . .  4
  70.     3.3.1.  Old Client, New Server  . . . . . . . . . . . . . . . . .  4
  71.     3.3.2.  New Client, Old Server  . . . . . . . . . . . . . . . . .  4
  72. 4.  Binary Packet Protocol  . . . . . . . . . . . . . . . . . . . . .  4
  73.   4.1.  Maximum Packet Length   . . . . . . . . . . . . . . . . . . .  5
  74.   4.2.  Compression   . . . . . . . . . . . . . . . . . . . . . . . .  5
  75.   4.3.  Encryption  . . . . . . . . . . . . . . . . . . . . . . . . .  6
  76.   4.4.  Data Integrity  . . . . . . . . . . . . . . . . . . . . . . .  7
  77.   4.5.  Key Exchange Methods  . . . . . . . . . . . . . . . . . . . .  8
  78.   4.6.  Public Key Algorithms   . . . . . . . . . . . . . . . . . . .  8
  79. 5.  Key Exchange  . . . . . . . . . . . . . . . . . . . . . . . . . .  9
  80.   5.1.  Algorithm Negotiation   . . . . . . . . . . . . . . . . . . . 10
  81.   5.2.  Output from Key Exchange  . . . . . . . . . . . . . . . . . . 12
  82.   5.3.  Taking Keys into Use  . . . . . . . . . . . . . . . . . . . . 13
  83. 6.  Diffie-Hellman Key Exchange   . . . . . . . . . . . . . . . . . . 13
  84.   6.1.  diffie-hellman-group1-sha1  . . . . . . . . . . . . . . . . . 15
  85. 7.  Key Re-Exchange   . . . . . . . . . . . . . . . . . . . . . . . . 15
  86. 8.  Service Request   . . . . . . . . . . . . . . . . . . . . . . . . 16
  87. 9.  Additional Messages   . . . . . . . . . . . . . . . . . . . . . . 16
  88.   9.1.  Disconnection Message   . . . . . . . . . . . . . . . . . . . 16
  89.   9.2.  Ignored Data Message  . . . . . . . . . . . . . . . . . . . . 17
  90.   9.3.  Debug Message   . . . . . . . . . . . . . . . . . . . . . . . 17
  91.   9.4.  Reserved Messages   . . . . . . . . . . . . . . . . . . . . . 18
  92. 10.  Summary of Message Numbers   . . . . . . . . . . . . . . . . . . 18
  93. 11.  Security Considerations  . . . . . . . . . . . . . . . . . . . . 18
  94. 12.  References   . . . . . . . . . . . . . . . . . . . . . . . . . . 19
  95. 13.  Authors' Addresses   . . . . . . . . . . . . . . . . . . . . . . 20
  96.  
  97.  
  98.  
  99. 1.  Introduction
  100.  
  101. The SSH transport layer is a secure low level transport protocol.  It
  102. provides strong encryption, cryptographic host authentication, and
  103. integrity protection.
  104.  
  105. Authentication in this protocol level is host-based; this protocol does
  106. not perform user authentication. A higher level protocol for user
  107. authentication can be designed on top of this protocol.
  108.  
  109. The protocol has been designed to be simple, flexible, to allow
  110. parameter negotiation, and to minimize the number of round-trips.  Key
  111. exchange method, public key algorithm, symmetric encryption algorithm,
  112. message authentication algorithm, and hash algorithm are all negotiated.
  113. It is expected that in most environments, only 2 round-trips will be
  114. needed for full key exchange, server authentication, service request,
  115.  
  116.  
  117. T. Ylonen, T. Kivinen, and M. Saarinen                          [page 2]
  118.  
  119. INTERNET-DRAFT                                           14 October 1997
  120.  
  121. and acceptance notification of service request.  The worst case is 3
  122. round-trips.
  123.  
  124. 2.  Conventions Used in This Document
  125.  
  126. The keywords "MUST", "MUST NOT", "REQUIRED", "SHOULD", "SHOULD NOT", and
  127. "MAY" that appear in this document are to be interpreted as described in
  128. [RFC-2119].
  129.  
  130. The used data types and terminology are specified in the architecture
  131. document [SSH-ARCH].
  132.  
  133. The architecture document also discusses the algorithm naming
  134. conventions that MUST be used with the SSH protocols.
  135. 3.  Connection Setup
  136.  
  137. SSH works over any 8-bit clean, binary-transparent packet-based
  138. transport.  The underlying transport SHOULD protect against transmission
  139. errors as such errors cause the SSH connection to terminate.
  140.  
  141. The client initiates the connection.
  142.  
  143. 3.1.  Use over TCP/IP
  144.  
  145. When used over TCP/IP, the server normally listens for connections on
  146. port 22.  This port number has been registered with the IANA, and has
  147. been officially assigned for SSH.
  148.  
  149. 3.2.  Protocol Version Exchange
  150.  
  151. When the connection has been established, both sides MUST send an
  152. identification string of the form "SSH-protoversion-softwareversion
  153. comments", followed by carriage return and newline characters (ascii 13
  154. and 10, respectively).  No null character is sent.  The maximum length
  155. of the string is 255 characters, including the carriage return and
  156. newline.
  157.  
  158. The part of the identification string preceding carriage return and
  159. newline is used in the Diffie-Hellman key exchange (Section ``Diffie-
  160. Hellman Key Exchange'').
  161.  
  162. The server MAY send other lines of data before sending the version
  163. string.  Each line SHOULD be terminated by a carriage return and
  164. newline.  Such lines MUST NOT begin with "SSH-", and SHOULD be encoded
  165. in ISO-10646 UTF-8 [RFC-2044] (language is not specified).  Clients MUST
  166. be able to process such lines; they MAY be silently ignored, or MAY be
  167. displayed to the client user; if they are displayed, control character
  168. filtering discussed in [SSH-ARCH] SHOULD be used.  The primary use of
  169. this feature is to allow TCP-wrappers to display an error message before
  170. disconnecting.
  171.  
  172. Version strings MUST consist of printable US-ASCII characters, not
  173. including whitespaces or a minus sign (-).  The version string is
  174.  
  175.  
  176. T. Ylonen, T. Kivinen, and M. Saarinen                          [page 3]
  177.  
  178. INTERNET-DRAFT                                           14 October 1997
  179.  
  180. primarily used to trigger compatible extensions and to indicate the
  181. capabilities of an implementation. The comment string should contain
  182. additional information that might be useful in solving user problems.
  183.  
  184. The protocol version described in this document is 2.0.
  185.  
  186. Key exchange will begin immediately after sending this identifier.  All
  187. packets following the identification string SHALL use the binary packet
  188. protocol, to be described below.
  189.  
  190. 3.3.  Compatibility with Old SSH Versions
  191.  
  192. During a transition period, it is important to be able to work
  193. compatibly with installed SSH clients and servers using an older version
  194. of the protocol.  Information in this section is only relevant for
  195. implementations supporting compatibility with SSH versions 1.x.
  196.  
  197. 3.3.1.  Old Client, New Server
  198.  
  199. Server implementations MAY support a configurable "compatibility" flag
  200. that enables compatibility with old versions.  When this flag is on, the
  201. server SHOULD not send any further data after its initialization string
  202. until it has received an identification string from the client.  The
  203. server can then determine whether the client is using an old protocol,
  204. and can revert to the old protocol if desired.
  205.  
  206. When compatibility with old clients is not needed, the server MAY send
  207. its initial key exchange data immediately after the identification
  208. string.
  209.  
  210. 3.3.2.  New Client, Old Server
  211.  
  212. Since the new client MAY immediately send additional data after its
  213. identification string (before receiving server's identification), the
  214. old protocol may already have been corrupted when the client learns that
  215. the server is old.  When this happens, the client SHOULD close the
  216. connection to the server, and reconnect using the old protocol.
  217.  
  218. 4.  Binary Packet Protocol
  219.  
  220. Each packet is of the following format.
  221.  
  222.   uint32    packet_length
  223.   byte      padding_length
  224.   byte[n1]  payload; n1 = packet_length - padding_length - 1
  225.   byte[n2]  random padding; n2 = padding_length
  226.   byte[m]   mac (message authentication code); m = mac_length
  227.  
  228.     packet_length
  229.       The length of the packet (bytes), not including MAC or the
  230.       packet_length field itself.
  231.  
  232.     padding_length
  233.  
  234.  
  235. T. Ylonen, T. Kivinen, and M. Saarinen                          [page 4]
  236.  
  237. INTERNET-DRAFT                                           14 October 1997
  238.  
  239.       Length of padding (bytes).
  240.  
  241.     payload
  242.       The useful contents of the packet.  If compression has been
  243.       negotiated, this field is compressed.  Initially, compression MUST
  244.       be "none".
  245.  
  246.     Padding
  247.       Arbitrary-length padding, such that the total length of
  248.       (packet_length || padding_length || payload || padding) is a
  249.       multiple of the cipher block size or 8, whichever is larger.
  250.       There MUST be at least four bytes of padding.  The padding SHOULD
  251.       consist of random bytes.  The maximum amount of padding is 255
  252.       bytes.
  253.  
  254.     MAC
  255.       Message authentication code.  If message authentication has been
  256.       negotiated, this field contains the MAC bytes.  Initially, the MAC
  257.       algorithm MUST be "none".
  258.  
  259. Note that length of the concatenation of packet length, padding length,
  260. payload, and padding MUST be a multiple of the cipher block size or 8,
  261. whichever is larger.  This constraint MUST be enforced even when using
  262. stream ciphers.  Note that the packet length field is also encrypted,
  263. and processing it requires special care when sending or receiving
  264. packets.
  265.  
  266. The minimum size of a packet is 16 (or the cipher block size, whichever
  267. is larger) bytes (plus MAC); implementations SHOULD decrypt the length
  268. after receiving the first 8 (or cipher block size, whichever is larger)
  269. bytes of a packet.
  270.  
  271. 4.1.  Maximum Packet Length
  272.  
  273. All implementations MUST be able to process packets with uncompressed
  274. payload length of 32768 bytes or less and total packet size of 35000
  275. bytes or less (including length, padding length, payload, padding, and
  276. MAC).  Implementations SHOULD support longer packets, where they might
  277. be needed e.g. if an implementation wants to send a very large number of
  278. certificates.  Such packets MAY be sent if the version string indicates
  279. that the other party is able to process them.  However, implementations
  280. SHOULD check that the packet length is reasonable for the implementation
  281. to avoid denial-of-service and/or buffer overflow attacks.
  282.  
  283. 4.2.  Compression
  284.  
  285. If compression has been negotiated, the payload field (and only it) will
  286. be compressed using the negotiated algorithm. The length field and MAC
  287. will be computed from the compressed payload.
  288.  
  289. Compression MAY be stateful, depending on the method. Compression MUST
  290. be independent for each direction, and implementations MUST allow
  291. independently choosing the algorithm for each direction.
  292.  
  293.  
  294. T. Ylonen, T. Kivinen, and M. Saarinen                          [page 5]
  295.  
  296. INTERNET-DRAFT                                           14 October 1997
  297.  
  298. The following compression methods are currently defined:
  299.  
  300.   none     REQUIRED        no compression
  301.   zlib     OPTIONAL        GNU ZLIB (LZ77) compression
  302.  
  303. The "zlib" compression is described in [RFC-1950] and in [RFC-1951].
  304. The compression context is initialized after each key exchange, and is
  305. passed from one packet to the next with only a partial flush being
  306. performed at the end of each packet.  A partial flush means that all
  307. data will be output, but the next packet will continue using compression
  308. tables from the end of the previous packet.
  309.  
  310. Additional methods may be defined as specified in [SSH-ARCH].
  311.  
  312. 4.3.  Encryption
  313.  
  314. An encryption algorithm and a key will be negotiated during the key
  315. exchange.  When encryption is in effect, the packet length, padding
  316. length, payload and padding fields of each packet MUST be encrypted with
  317. the given algorithm.
  318.  
  319. The encrypted data in all packets sent in one direction SHOULD be
  320. considered a single data stream.  For example, initialization vectors
  321. SHOULD be passed from the end of one packet to the beginning of the next
  322. packet. All ciphers SHOULD use keys with an effective key length of 128
  323. bits or more.
  324.  
  325. The ciphers in each direction MUST run independently of each other, and
  326. implementations MUST allow independently choosing the algorithm for each
  327. direction (if multiple algorithms are allowed by local policy).
  328.  
  329. The following ciphers are currently defined:
  330.  
  331.   3des-cbc         REQUIRED          three-key 3DES in CBC mode
  332.   blowfish-cbc     RECOMMENDED       Blowfish in CBC mode
  333.   arcfour          OPTIONAL          the ARCFOUR stream cipher
  334.   idea-cbc         OPTIONAL          IDEA in CBC mode
  335.   cast128-cbc      OPTIONAL          CAST-128 in CBC mode
  336.   none             OPTIONAL          no encryption; NOT RECOMMENDED
  337.  
  338. The "3des-cbc" cipher is three-key triple-DES (encrypt-decrypt-encrypt),
  339. where the first 8 bytes of the key are used for the first encryption,
  340. the next 8 bytes for the decryption, and the following 8 bytes for the
  341. final encryption.  This requires 24 bytes of key data (of which 168 bits
  342. are actually used).  To implement CBC mode, outer chaining MUST be used
  343. (i.e., there is only one initialization vector).  This is a block cipher
  344. with 8 byte blocks.  This algorithm is defined in [Schneier].
  345.  
  346. The "blowfish-cbc" cipher is Blowfish in CBC mode, with 128 bit keys
  347. [Schneier].  This is a block cipher with 8 byte blocks.
  348.  
  349. The "arcfour" is the Arcfour stream cipher with 128 bit keys. The
  350. Arcfour cipher is believed to be compatible with the RC4 cipher
  351.  
  352.  
  353. T. Ylonen, T. Kivinen, and M. Saarinen                          [page 6]
  354.  
  355. INTERNET-DRAFT                                           14 October 1997
  356.  
  357. [Schneier]. RC4 is a registered trademark of RSA Data Security Inc.
  358.  
  359. The "idea-cbc" cipher is the IDEA cipher in CBC mode [Schneier].  IDEA
  360. is patented by Ascom AG.
  361.  
  362. The "cast128-cbc" cipher is the CAST-128 cipher in CBC mode [RFC-2144].
  363.  
  364. The "none" algorithm specifies that no encryption is to be done.  Note
  365. that this method provides no confidentiality protection, and it is not
  366. recommended.  Some functionality (e.g. password authentication) may be
  367. disabled for security reasons if this cipher is chosen.
  368.  
  369. Additional methods may be defined as specified in [SSH-ARCH].
  370.  
  371. 4.4.  Data Integrity
  372.  
  373. Data integrity is protected by including with each packet a message
  374. authentication code (MAC) that is computed from a shared secret, packet
  375. sequence number, and the contents of the packet.
  376.  
  377. The message authentication algorithm and key are negotiated during key
  378. exchange.  Initially, no MAC will be in effect, and its length MUST be
  379. zero.  After key exchange, the selected MAC will be computed before
  380. encryption from the concatenation of packet data:
  381.  
  382.   mac = MAC(key, sequence_number || unencrypted_packet)
  383.  
  384. where unencrypted_packet is the entire packet without MAC (the length
  385. fields, payload and padding), and sequence_number is an implicit packet
  386. sequence number represented as uint32.  The sequence number is initial-
  387. ized to zero for the first packet, and is incremented after every packet
  388. (regardless of whether encryption or MAC is in use).  It is never reset,
  389. even if keys/algorithms are renegotiated later.  It wraps around to zero
  390. after every 2^32 packets. The packet sequence number itself is not
  391. included in the packet sent over the wire.
  392.  
  393. The MAC algorithms for each direction MUST run independently, and
  394. implementations MUST allow choosing the algorithm independently for both
  395. directions.
  396.  
  397. The MAC bytes resulting from the MAC algorithm MUST be transmitted
  398. without encryption as the last part of the packet.  The number of MAC
  399. bytes depends on the algorithm chosen.
  400.  
  401. The following MAC algorithms are currently defined:
  402.  
  403.   hmac-sha1   REQUIRED         HMAC-SHA1 (length = 20)
  404.   hmac-sha-96 RECOMMENDED      first 96 bits of HMAC-SHA1 (length = 12)
  405.   hmac-md5    OPTIONAL         HMAC-MD5 (length = 16)
  406.   hmac-md5-96 OPTIONAL         first 96 bits of HMAC-MD5 (length = 12)
  407.   none        OPTIONAL         no MAC; NOT RECOMMENDED
  408.  
  409. The "hmac-*" algorithms are described in [RFC-2104].  The "*-n" MACs use
  410.  
  411.  
  412. T. Ylonen, T. Kivinen, and M. Saarinen                          [page 7]
  413.  
  414. INTERNET-DRAFT                                           14 October 1997
  415.  
  416. only the first n bits of the resulting value.
  417.  
  418. The hash algorithms are described in [Schneier].
  419.  
  420. The "none" method is NOT RECOMMENDED.  An active attacker may be able to
  421. modify transmitted data if this is used.
  422.  
  423. Additional methods may be defined as specified in [SSH-ARCH].
  424.  
  425. 4.5.  Key Exchange Methods
  426.  
  427. The key exchange method specifies how one-time session keys are
  428. generated for encryption and for authentication, and how the server
  429. authentication is done.
  430.  
  431. Only one REQUIRED key exchange method has been defined:
  432.  
  433.   diffie-hellman-group1-sha1       REQUIRED
  434.  
  435. This method is described later in this document.
  436.  
  437. Additional methods may be defined as specified in [SSH-ARCH].
  438.  
  439. 4.6.  Public Key Algorithms
  440.  
  441. This protocol has been designed to be able to operate with almost any
  442. public key format, encoding, and algorithm (signature and/or
  443. encryption).
  444.  
  445. There are several aspects that define a public key type:
  446.  
  447. o  Key format: how is the key encoded and how are certificates
  448.    represented.  The key blobs in this protocol MAY contain certificates
  449.    in addition to keys.
  450.  
  451. o  Signature and/or encryption algorithms.  Some key types may not
  452.    support both signing and encryption.  Key usage may also be
  453.    restricted by policy statements in e.g. certificates.  In this case,
  454.    different key types SHOULD be defined for the different policy
  455.    alternatives.
  456.  
  457. o  Encoding of signatures and/or encrypted data. This includes but is
  458.    not limited to padding, byte order, and data formats.
  459.  
  460. The following public key and/or certificate formats are currently
  461. defined:
  462.  
  463. ssh-dss              REQUIRED     sign      Simple DSS
  464. x509v3               RECOMMENDED  sign      X.509 certificates
  465. spki                 OPTIONAL     sign      SPKI certificates
  466. pgp                  OPTIONAL     sign      OpenPGP certificates
  467.  
  468. Additional key types may be defined as specified in [SSH-ARCH].
  469.  
  470.  
  471. T. Ylonen, T. Kivinen, and M. Saarinen                          [page 8]
  472.  
  473. INTERNET-DRAFT                                           14 October 1997
  474.  
  475. The key type MUST always be explicitly known (from algorithm negotiation
  476. or some other source).  It is not normally included in the key blob.
  477.  
  478. Certificates and public keys are encoded as:
  479.  
  480.   uint32   the combined length of the format identifier and associated data
  481.   string   certificate or public key format identifier
  482.   byte[n]  key/certificate data
  483.  
  484. The certificate part may have be a zero length string, but a public key
  485. is required. This is the public key that will be used for
  486. authentication; the certificate sequence contained in the certificate
  487. blob can be used to provide authorization.
  488.  
  489. The "ssh-dss" key format has the following specific encoding:
  490.  
  491.   uint32    length
  492.   string    "ssh-dss"
  493.   mpint     p
  494.   mpint     q
  495.   mpint     g
  496.   mpint     y
  497.  
  498. Here the "p", "q", "g", and "y" parameters form the signature key blob.
  499.  
  500. Signing and verifying using this key format are done according to the
  501. Digital Signature Standard [FIPS-186] using the SHA-1 hash.  A
  502. description can also be found in [Schneier].
  503.  
  504. The resulting signature is encoded as:
  505.  
  506.   uint32    length
  507.   string    "ssh-dss"
  508.   mpint     r
  509.   mpint     s
  510.  
  511. The "x509v3" method indicates that the certificates, the public key, and
  512. the resulting signature are in X.509v3 compatible DER-encoded format.
  513. The formats used in X.509v3 is described in [PKIX-Part1].
  514.  
  515. The "spki" method indicates that the certificate blob contains a
  516. sequence of SPKI certificates. The format of SPKI certificates is
  517. described in [SPKI].
  518.  
  519. The "pgp" method indicates the the certificates, the public key, and the
  520. signature are in OpenPGP compatible binary format. [PGP]
  521.  
  522. 5.  Key Exchange
  523.  
  524. Key exchange begins by each side sending lists of supported algorithms.
  525. Each side has a preferred algorithm in each category, and it is assumed
  526. that most implementations at any given time will use the same preferred
  527. algorithm.  Each side MAY guess which algorithm the other side is using,
  528.  
  529.  
  530. T. Ylonen, T. Kivinen, and M. Saarinen                          [page 9]
  531.  
  532. INTERNET-DRAFT                                           14 October 1997
  533.  
  534. and MAY send an initial key exchange packet according to the algorithm
  535. if appropriate for the preferred method.  If all algorithms were guessed
  536. right, the optimistically sent packet MUST be handled as the first key
  537. exchange packet.  However, if the guess was wrong, and a packet was
  538. optimistically sent by one or both parties, such packets MUST be ignored
  539. (even if the error in the guess would not affect the contents of the
  540. initial packet(s)), and the appropriate side MUST send the correct
  541. initial packet.
  542.  
  543. Server authentication in the key exchange MAY be implicit.  After a key
  544. exchange with implicit server authentication, the client MUST wait for
  545. response to its service request message before sending any further data.
  546.  
  547. 5.1.  Algorithm Negotiation
  548.  
  549. Key exchange begins by each side sending the following packet:
  550.  
  551.   byte      SSH_MSG_KEXINIT
  552.   byte[16]  cookie (random bytes)
  553.   string    kex_algorithms
  554.   string    server_host_key_algorithms
  555.   string    encryption_algorithms_client_to_server
  556.   string    encryption_algorithms_server_to_client
  557.   string    mac_algorithms_client_to_server
  558.   string    mac_algorithms_server_to_client
  559.   string    compression_algorithms_client_to_server
  560.   string    compression_algorithms_server_to_client
  561.   boolean   first_kex_packet_follows
  562.   uint32    0 (reserved for future extension)
  563.  
  564. Each of the algorithm strings MUST be a comma-separated list of
  565. algorithm names (see ``Algorithm Naming'' in [SSH-ARCH]).  Each
  566. supported (allowed) algorithm MUST be listed, in order of preference.
  567.  
  568. The first algorithm in each list MUST be the preferred (guessed)
  569. algorithm.  Each string MUST contain at least one algorithm name.
  570.  
  571.     cookie
  572.       The cookie MUST be a random value generated by the sender.  Its
  573.       purpose is to make it impossible for either side to fully
  574.       determine the keys and the session identifier.
  575.  
  576.     kex_algorithms
  577.       Key exchange algorithms were defined above.  The first algorithm
  578.       MUST be the preferred (and guessed) algorithm.  If both sides make
  579.       the same guess, that algorithm MUST used.  Otherwise, the
  580.       following algorithm MUST be used to choose a key exchange method:
  581.       iterate over client's kex algorithms, one at a time.  Choose the
  582.       first algorithm that satisfies the following conditions:
  583.  
  584.    o  the server also supports the algorithm,
  585.  
  586.    o  if the algorithm requires an encryption-capable host key, there is
  587.  
  588.  
  589. T. Ylonen, T. Kivinen, and M. Saarinen                         [page 10]
  590.  
  591. INTERNET-DRAFT                                           14 October 1997
  592.  
  593.       an encryption-capable algorithm on the server's
  594.       server_host_key_algorithms  that is also supported by the client,
  595.       and
  596.  
  597.    o  if the algorithm requires a signature-capable host key, there is a
  598.       signature-capable algorithm on the server's
  599.       server_host_key_algorithms  that is also supported by the client.
  600.  
  601.       If no algorithm satisfying all these conditions can be found,
  602.       connection fails, and both sides MUST disconnect.
  603.     server_host_key_algorithms
  604.       List of the algorithms supported for the server host key.  The
  605.       server lists the algorithms for which it has host keys; the client
  606.       lists the algorithms that it is willing to accept.  (There MAY be
  607.       multiple host keys for a host, possibly with different
  608.       algorithms.)
  609.  
  610.       Some host keys may not support both signatures and encryption
  611.       (this can be determined from the algorithm), and thus not all host
  612.       keys are valid for all key exchange methods.
  613.  
  614.       Algorithm selection depends on whether the chosen key exchange
  615.       algorithm requires a signature- or encryption capable host key.
  616.       It MUST be possible to determine this from the public key
  617.       algorithm name.  The first algorithm on the client's list that
  618.       satisfies the requirements and is also supported by the server
  619.       MUST be chosen.  If there is no such algorithm, both sides MUST
  620.       disconnect.
  621.  
  622.     encryption_algorithms
  623.       Lists the acceptable symmetric encryption algorithms in order of
  624.       preference.  The chosen encryption algorithm to each direction
  625.       MUST be the first algorithm  on the client's list that is also on
  626.       the server's list. If there is no such algorithm, both sides MUST
  627.       disconnect.
  628.  
  629.       Note that "none" must be explicitly listed if it is to be
  630.       acceptable.  The defined algorithm names are listed in Section
  631.       ``Encryption''.
  632.  
  633.     mac_algorithms
  634.       Lists the acceptable MAC algorithms in order of preference.  The
  635.       chosen MAC algorithm MUST be the first algorithm on the client's
  636.       list that is also on the server's list.  If there is no such
  637.       algorithm, both sides MUST disconnect.
  638.  
  639.       Note that "none" must be explicitly listed if it is to be
  640.       acceptable.  The MAC algorithm names are listed in Section ``Data
  641.       Integrity''.
  642.  
  643.     compression_algorithms
  644.       Lists the acceptable compression algorithms in order of
  645.       preference.  The chosen compression algorithm MUST be the first
  646.  
  647.  
  648. T. Ylonen, T. Kivinen, and M. Saarinen                         [page 11]
  649.  
  650. INTERNET-DRAFT                                           14 October 1997
  651.  
  652.       algorithm on the client's list that is also on the server's list.
  653.       If there is no such algorithm, both sides MUST disconnect.
  654.  
  655.       Note that "none" must be explicitly listed if it is to be
  656.       acceptable.  The compression algorithm names are listed in Section
  657.       ``Compression''.
  658.  
  659.     first_kex_packet_follows
  660.       Indicates whether a guessed key exchange packet follows.  If a
  661.       guessed packet will be sent, this MUST be true.  If no guessed
  662.       packet will be sent, this MUST be false.
  663.  
  664.       After receiving the SSH_MSG_KEXINIT packet from the other side,
  665.       each party will know whether their guess was right.  If the other
  666.       party's guess was wrong, and this field was true, the next packet
  667.       MUST be silently ignored, and both sides MUST then act as
  668.       determined by the negotiated key exchange method.  If the guess
  669.       was right, key exchange MUST continue using the guessed packet.
  670.  
  671. After the KEXINIT packet exchange, the key exchange algorithm is run.
  672. It may involve several packet exchanges, as specified by the key
  673. exchange method.
  674.  
  675. 5.2.  Output from Key Exchange
  676.  
  677. The key exchange produces two values: a shared secret K, and an exchange
  678. hash H.  Encryption and authentication keys are derived from these. The
  679. exchange hash H from the first key exchange is additionally used as the
  680. session identifier, which is a unique identifier for this connection.
  681. It is used by authentication methods as a part of the data that is
  682. signed as a proof of possession of a private key.  Once computed, the
  683. session identifier is not changed, even if keys are later re-exchanged.
  684.  
  685. Each key exchange method specifies a hash function that is used in the
  686. key exchange.  The same hash algorithm MUST be used in key derivation.
  687. Here, we'll call it HASH.
  688.  
  689. Encryption keys MUST be computed as HASH of a known value and K as
  690. follows:
  691.  
  692. o  Initial IV client to server: HASH(K || "A" || session_id) ("A" means
  693.    the single character A, ascii 65).
  694.  
  695. o  Initial IV server to client: HASH(K || "B" || session_id)
  696.  
  697. o  Encryption key client to server: HASH(K || "C" || session_id)
  698.  
  699. o  Encryption key server to client: HASH(K || "D" || session_id)
  700.  
  701. o  Integrity key client to server: HASH(K || "E" || session_id)
  702.  
  703. o  Integrity key server to client: HASH(K || "F" || session_id)
  704.  
  705.  
  706.  
  707. T. Ylonen, T. Kivinen, and M. Saarinen                         [page 12]
  708.  
  709. INTERNET-DRAFT                                           14 October 1997
  710.  
  711. Key data MUST be taken from the beginning of the hash output. 128 bits
  712. (16 bytes) SHOULD be used for algorithms with variable-length keys.  For
  713. other algorithms, as many bytes as are needed are taken from the
  714. beginning of the hash value. If the key length in longer than the output
  715. of the HASH, the key is extended by computing HASH of the concatenation
  716. of K and the entire key so far, and appending the resulting bytes (as
  717. many as HASH generates) to the key.  This process is repeated until
  718. enough key material is available; the key is taken from the beginning of
  719. this value.  In other words,
  720.  
  721.   K1 = HASH(K || X || session_id)   (X is e.g. "A")
  722.   K2 = HASH(K || K1)
  723.   K3 = HASH(K || K1 || K2)
  724.   ...
  725.   key = K1 || K2 || K3 || ...
  726.  
  727. 5.3.  Taking Keys into Use
  728.  
  729. Key exchange ends by each side sending an SSH_MSG_NEWKEYS message.  This
  730. message is sent with the old keys and algorithms.  All messages sent
  731. after this message MUST use the new keys and algorithms.
  732.  
  733. When this message is received, the new keys and algorithms MUST be taken
  734. into use for receiving.
  735.  
  736. This message is the only valid message after key exchange, in addition
  737. to SSH_MSG_DEBUG, SSH_MSG_DISCONNECT and SSH_MSG_IGNORE messages.  The
  738. purpose of this message is to ensure that a party is able to respond
  739. with a disconnect message that the other party can understand if
  740. something goes wrong with the key exchange.  Implementations MUST NOT
  741. accept any other messages after key exchange before receiving
  742. SSH_MSG_NEWKEYS.
  743.  
  744.   byte      SSH_MSG_NEWKEYS
  745.  
  746. 6.  Diffie-Hellman Key Exchange
  747.  
  748. The Diffie-Hellman key exchange provides a shared secret that can not be
  749. determined by either party alone. The key exchange is combined with a
  750. signature with the host key to provide host authentication.
  751.  
  752. In the following description (C is the client, S is the server; p is a
  753. large safe prime, g is a generator for a subgroup of GF(p), and q is the
  754. order of the subgroup; V_S is S's version string; V_C is C's version
  755. string; K_S is S's public host key; I_C is C's KEXINIT  message and I_S
  756. S's KEXINIT message which have been exchanged before this part begins):
  757.  
  758. 1. C generates a random number x (1 < x < q) and computes e = g^x mod p.
  759.    C sends "e" to S.
  760.  
  761. 2. S generates a random number y (0 < y < q) and computes f = g^y mod p.
  762.    S receives "e".  It computes K = e^y mod p, H = hash(V_C || V_S ||
  763.    I_C || I_S || K_S || e || f || K), and signature s on H with its
  764.  
  765.  
  766. T. Ylonen, T. Kivinen, and M. Saarinen                         [page 13]
  767.  
  768. INTERNET-DRAFT                                           14 October 1997
  769.  
  770.    private host key.  S sends "K_S || f || s" to C.  The signing
  771.    operation may involve a second hashing operation.
  772.  
  773. 3. C verifies that K_S really is the host key for S (e.g. using
  774.    certificates or a local database).  C is also allowed to accept the
  775.    key without verification; however, doing so will render the protocol
  776.    insecure against active attacks (but may be desirable for practical
  777.    reasons in the short term in many environments).  C then computes K =
  778.    f^x mod p, H = hash(V_C || V_S || I_C || I_S || K_S || e || f || K),
  779.    and verifies the signature s on H.
  780.  
  781.    Either side MUST NOT send or accept e or f values that are not in the
  782.    range [1, p-1]. If this condition is violated, the key exchange
  783.    fails.
  784.  
  785. This is implemented with the following messages.  The hash algorithm for
  786. computing the exchange hash is defined by the method name, and is called
  787. HASH.  The public key algorithm for signing is negotiated with the
  788. KEXINIT messages.
  789.  
  790. First, the client sends:
  791.  
  792.   byte      SSH_MSG_KEXDH_INIT
  793.   mpint     e
  794.  
  795. The server responds with:
  796.  
  797.   byte      SSH_MSG_KEXDH_REPLY
  798.   string    server public host key and certificates (K_S)
  799.   mpint     f
  800.   string    signature of H
  801.  
  802. The hash H is computed as the HASH hash of the concatenation of the
  803. following:
  804.  
  805.   string    V_C, the client's version string (CR and NL excluded)
  806.   string    V_S, the server's version string (CR and NL excluded)
  807.   string    I_C, the payload of the client's SSH_MSG_KEXINIT
  808.   string    I_S, the payload of the server's SSH_MSG_KEXINIT
  809.   string    K_S, the host key
  810.   mpint     e, exchange value sent by the client
  811.   mpint     f, exchange value sent by the server
  812.   mpint     K, the shared secret
  813.  
  814. This value is called the exchange hash, and it is used to authenticate
  815. the key exchange.
  816.  
  817. The signature algorithm MUST be applied over H, not the original data.
  818. Most signature algorithms include hashing and additional padding.  For
  819. example, a "ssh-dss" specifies SHA-1 hashing; in that case, the data is
  820. first hashed with HASH to compute H, and H is then hashed with SHA-1 as
  821. part of the signing operation.
  822.  
  823.  
  824.  
  825. T. Ylonen, T. Kivinen, and M. Saarinen                         [page 14]
  826.  
  827. INTERNET-DRAFT                                           14 October 1997
  828.  
  829. 6.1.  diffie-hellman-group1-sha1
  830.  
  831. The "diffie-hellman-group1-sha1" method specifies Diffie-Hellman key
  832. exchange with SHA-1 as HASH, and the following group:
  833.  
  834. The prime p is equal to 2^1024 - 2^960 - 1 + 2^64 * floor( 2^894 Pi +
  835. 129093 ).  Its hexadecimal value is
  836.  
  837.       FFFFFFFF FFFFFFFF C90FDAA2 2168C234 C4C6628B 80DC1CD1
  838.       29024E08 8A67CC74 020BBEA6 3B139B22 514A0879 8E3404DD
  839.       EF9519B3 CD3A431B 302B0A6D F25F1437 4FE1356D 6D51C245
  840.       E485B576 625E7EC6 F44C42E9 A637ED6B 0BFF5CB6 F406B7ED
  841.       EE386BFB 5A899FA5 AE9F2411 7C4B1FE6 49286651 ECE65381
  842.       FFFFFFFF FFFFFFFF.
  843.  
  844. In decimal, this value is
  845.  
  846.       179769313486231590770839156793787453197860296048756011706444
  847.       423684197180216158519368947833795864925541502180565485980503
  848.       646440548199239100050792877003355816639229553136239076508735
  849.       759914822574862575007425302077447712589550957937778424442426
  850.       617334727629299387668709205606050270810842907692932019128194
  851.       467627007.
  852.  
  853. The generator used with this prime is g = 2. The group order q is (p -
  854. 1) / 2.
  855.  
  856. This group was taken from the ISAKMP/Oakley specification, and was
  857. originally generated by Richard Schroeppel at the University of Arizona.
  858. Properties of this prime are described in [Orm96].
  859.  
  860. 7.  Key Re-Exchange
  861.  
  862. Key re-exchange is started by sending a SSH_MSG_KEXINIT packet when not
  863. already doing a key exchange (as described in Section ``Algorithm
  864. Negotiation'').  When this message is received, a party MUST respond
  865. with its own SSH_MSG_KEXINIT message except when the received
  866. SSH_MSG_KEXINIT already was a reply.  Either party MAY initiate the re-
  867. exchange, but roles MUST NOT be changed (i.e., the server remains the
  868. server, and the client remains the client).
  869.  
  870. Key re-exchange is performed using whatever encryption was in effect
  871. when the exchange was started.  Encryption, compression, and MAC methods
  872. are not changed before a new SSH_MSG_NEWKEYS is sent after the key
  873. exchange (as in the initial key exchange).  Re-exchange is processed
  874. identically to the initial key exchange, except for the session
  875. identifier that will remain unchanged. It is permissible to change some
  876. or all of the algorithms during the re-exchange.  Host keys can also
  877. change.  All keys and initialization vectors are recomputed after the
  878. exchange.  Compression and encryption contexts are reset.
  879.  
  880. It is recommended that the keys are changed after each gigabyte of
  881. transmitted data or after each hour of connection time, whichever comes
  882.  
  883.  
  884. T. Ylonen, T. Kivinen, and M. Saarinen                         [page 15]
  885.  
  886. INTERNET-DRAFT                                           14 October 1997
  887.  
  888. sooner. However, since the re-exchange is a public key operation, it
  889. requires a fair amount of processing power and should not be performed
  890. too often.
  891.  
  892. More application data may be sent after the SSH_MSG_NEWKEYS packet has
  893. been sent; key exchange does not affect the protocols that lie above the
  894. SSH transport layer.
  895.  
  896. 8.  Service Request
  897.  
  898. After the key exchange, the client requests a service.  The service is
  899. identified by a name.  The format of names and procedures for defining
  900. new names are defined in [SSH-ARCH].
  901.  
  902. Currently, the following names have been reserved:
  903.  
  904.   ssh-userauth
  905.   ssh-connection
  906.  
  907. Similar local naming policy is applied to the service names that is
  908. applied to the algorithm names; a local service should use the
  909. servicename@domain syntax.
  910.  
  911.   byte      SSH_MSG_SERVICE_REQUEST
  912.   string    service name
  913.  
  914. If the server rejects the service request, it SHOULD send an appropriate
  915. SSH_MSG_DISCONNECT message and MUST disconnect.
  916.  
  917. When the service starts, it may have access to the session identifier
  918. generated during the key exchange.
  919.  
  920. If the server supports the service (and permits the client to use it),
  921. it MUST respond with
  922.  
  923.   byte      SSH_MSG_SERVICE_ACCEPT
  924.   string    service name
  925.  
  926. Message numbers used by services should be in the area reserved for them
  927. (see Section ``Summary of Message Numbers'').  The transport level will
  928. continue to process its own messages.
  929.  
  930. Note that after a key exchange with implicit server authentication, the
  931. client MUST wait for response to its service request message before
  932. sending any further data.
  933.  
  934. 9.  Additional Messages
  935.  
  936. Either party may send any of the following messages at any time.
  937.  
  938. 9.1.  Disconnection Message
  939.  
  940.   byte      SSH_MSG_DISCONNECT
  941.  
  942.  
  943. T. Ylonen, T. Kivinen, and M. Saarinen                         [page 16]
  944.  
  945. INTERNET-DRAFT                                           14 October 1997
  946.  
  947.   uint32    reason code
  948.   string    description [[RFC-2044]]
  949.   string    language tag [[RFC-1766]]
  950.  
  951. This message causes immediate termination of the connection.  All
  952. implementations MUST be able to process this message; they SHOULD be
  953. able to send this message.
  954.  
  955. The sender MUST NOT send or receive any data after this message, and the
  956. recipient MUST NOT accept any data after receiving this message.  The
  957. description field gives a more specific explanation in a human-readable
  958. form.  The error code gives the reason in a more machine-readable format
  959. (suitable for localization), and can have the following values:
  960.  
  961.   #define SSH_DISCONNECT_HOST_NOT_ALLOWED_TO_CONNECT      1
  962.   #define SSH_DISCONNECT_PROTOCOL_ERROR                   2
  963.   #define SSH_DISCONNECT_KEY_EXCHANGE_FAILED              3
  964.   #define SSH_DISCONNECT_HOST_AUTHENTICATION_FAILED       4
  965.   #define SSH_DISCONNECT_MAC_ERROR                        5
  966.   #define SSH_DISCONNECT_COMPRESSION_ERROR                6
  967.   #define SSH_DISCONNECT_SERVICE_NOT_AVAILABLE            7
  968.   #define SSH_DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED   8
  969.   #define SSH_DISCONNECT_HOST_KEY_NOT_VERIFIABLE          9
  970.   #define SSH_DISCONNECT_CONNECTION_LOST                 10
  971.   #define SSH_DISCONNECT_BY_APPLICATION                  11
  972.  
  973. If the description string is displayed, control character filtering
  974. discussed in [SSH-ARCH] should be used to avoid attacks by sending
  975. terminal control characters.
  976.  
  977. 9.2.  Ignored Data Message
  978.  
  979.   byte      SSH_MSG_IGNORE
  980.   string    data
  981.  
  982. All implementations MUST understand (and ignore) this message at any
  983. time (after receiving the protocol version). No implementation is
  984. required to send them. This message can be used as an additional
  985. protection measure against advanced traffic analysis techniques.
  986.  
  987. 9.3.  Debug Message
  988.  
  989.   byte      SSH_MSG_DEBUG
  990.   boolean   always_display
  991.   string    message [[RFC-2044]]
  992.   string    language tag [[RFC-1766]]
  993.  
  994. All implementations MUST understand this message, but they are allowed
  995. to ignore it.  This message is used to pass information to the other
  996. side that may help debugging.  If always_display is true, the message
  997. SHOULD be displayed.  Otherwise, it SHOULD NOT be displayed unless
  998. debugging information has been explicitly requested by the user.
  999.  
  1000.  
  1001.  
  1002. T. Ylonen, T. Kivinen, and M. Saarinen                         [page 17]
  1003.  
  1004. INTERNET-DRAFT                                           14 October 1997
  1005.  
  1006. The message doesn't need to contain a newline.  It is, however, allowed
  1007. to consist of multiple lines separated by newlines.
  1008.  
  1009. If the message string is displayed, terminal control character filtering
  1010. discussed in [SSH-ARCH] should be used to avoid attacks by sending
  1011. terminal control characters.
  1012.  
  1013. 9.4.  Reserved Messages
  1014.  
  1015. An implementation MUST respond to all unrecognized messages with an
  1016. SSH_MSG_UNIMPLEMENTED message in the order in which they were received.
  1017. Such messages MUST be otherwise ignored.  Later protocol versions may
  1018. define other meanings for these message types.
  1019.  
  1020.   byte      SSH_MSG_UNIMPLEMENTED
  1021.   uint32    packet sequence number of rejected message
  1022.  
  1023. 10.  Summary of Message Numbers
  1024.  
  1025. The following message numbers have been defined in this protocol.
  1026.  
  1027.   #define SSH_MSG_DISCONNECT             1
  1028.   #define SSH_MSG_IGNORE                 2
  1029.   #define SSH_MSG_UNIMPLEMENTED          3
  1030.   #define SSH_MSG_DEBUG                  4
  1031.   #define SSH_MSG_SERVICE_REQUEST        5
  1032.   #define SSH_MSG_SERVICE_ACCEPT         6
  1033.  
  1034.   #define SSH_MSG_KEXINIT                20
  1035.   #define SSH_MSG_NEWKEYS                21
  1036.  
  1037.   /* Numbers 30-49 used for kex packets.
  1038.      Different kex methods may reuse message numbers in
  1039.      this range. */
  1040.   #define SSH_MSG_KEXDH_INIT             30
  1041.   #define SSH_MSG_KEXDH_REPLY            31
  1042.  
  1043. 11.  Security Considerations
  1044.  
  1045. This protocol provides a secure encrypted channel over an unsecure
  1046. network.  It performs server host authentication, key exchange,
  1047. encryption, and integrity protection.  It also derives a unique session
  1048. id that may be by higher-level protocols.
  1049.  
  1050. It is expected that this protocol will sometimes be used without
  1051. insisting on reliable association between the server host key and the
  1052. server host name.  Such use is inherently insecure, but may be necessary
  1053. in non-security critical environments, and still provides protection
  1054. against passive attacks.  However, implementors of protocols running on
  1055. top of this protocol should keep this possibility in mind.
  1056.  
  1057. This protocol is designed to be used over an reliable transport. If
  1058. transmission errors or message manipulation occur, the connection is
  1059.  
  1060.  
  1061. T. Ylonen, T. Kivinen, and M. Saarinen                         [page 18]
  1062.  
  1063. INTERNET-DRAFT                                           14 October 1997
  1064.  
  1065. closed. The connection SHOULD be re-established if this occurs. Denial
  1066. of service attacks of this type ("wire cutter") are almost impossible to
  1067. avoid.
  1068.  
  1069. 12.  References
  1070.  
  1071. [FIPS-186] Federal Information Processing Standards Publication (FIPS
  1072. PUB) 186, Digital Signature Standard, 18 May 1994.
  1073.  
  1074. [Orm96] Orman, H., "The Oakley Key Determination Protocol", version 1,
  1075. TR97-92, Department of Computer Science Technical Report, University of
  1076. Arizona.
  1077.  
  1078. [RFC-1034] Mockapetris, P., "Domain Names - Concepts and Facilities",
  1079. November 1987.
  1080.  
  1081. [RFC-1766] Alvestrand, H., "Tags for the Identification of Languages",
  1082. March 1995.
  1083.  
  1084. [RFC-1950] Deutch, P. and Gailly, J-L., "ZLIB Compressed Data Format
  1085. Specification version 3.3", May 1996.
  1086.  
  1087. [RFC-1951] Deutch, P., "DEFLATE Compressed Data Format Specification
  1088. version 1.3", May 1996.
  1089.  
  1090. [RFC-2044] Yergeau, F., "UTF-8, a Transformation Format of Unicode and
  1091. ISO 10646", October 1996.
  1092.  
  1093. [RFC-2104] Krawczyk, H., Bellare, M., and Canetti, R., "HMAC: Keyed-
  1094. Hashing for Message Authentication", February 1997
  1095.  
  1096. [RFC-2119] Bradner, S., "Key words for use in RFCs to indicate
  1097. Requirement Levels", March 1997.
  1098.  
  1099. [RFC-2144] Adams, C., "The CAST-128 Encryption Algorithm", May 1997.
  1100.  
  1101. [Schneier] Schneier, B., "Applied Cryptography Second Edition:
  1102. protocols, algorithms, and source code in C", 2nd edition, John Wiley &
  1103. Sons, New York, NY, 1996.
  1104.  
  1105. [SSH-ARCH] Ylonen, T., Kivinen, T, and Saarinen, M., "SSH Protocol
  1106. Architecture", Internet Draft, draft-ietf-secsh-architecture-00.txt
  1107.  
  1108. #91;SSH-USERAUTH] Ylonen, T., Kivinen, T, and Saarinen, M., "SSH
  1109. Authentication Protocol", Internet Draft, draft-ietf-secsh-
  1110. userauth-02.txt
  1111.  
  1112. [SSH-CONNECT] Ylonen, T., Kivinen, T, and Saarinen, M., "SSH Connection
  1113. Protocol", Internet Draft, draft-ietf-secsh-connect-02.txt
  1114.  
  1115. [PGP] (XXX n.a.)
  1116.  
  1117. [PKIX-Part1] (XXX n.a.)
  1118.  
  1119.  
  1120. T. Ylonen, T. Kivinen, and M. Saarinen                         [page 19]
  1121.  
  1122. INTERNET-DRAFT                                           14 October 1997
  1123.  
  1124. 13.  Authors' Addresses
  1125.  
  1126.     Tatu Ylonen
  1127.     SSH Communications Security Ltd.
  1128.     Tekniikantie 12
  1129.     FIN-02150 ESPOO
  1130.     Finland
  1131.     E-mail: ylo@ssh.fi
  1132.  
  1133.     Tero Kivinen
  1134.     SSH Communications Security Ltd.
  1135.     Tekniikantie 12
  1136.     FIN-02150 ESPOO
  1137.     Finland
  1138.     E-mail: kivinen@ssh.fi
  1139.  
  1140.     Markku-Juhani O. Saarinen
  1141.     SSH Communications Security Ltd.
  1142.     Tekniikantie 12
  1143.     FIN-02150 ESPOO
  1144.     Finland
  1145.     E-mail: mjos@ssh.fi
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178. T. Ylonen, T. Kivinen, and M. Saarinen                         [page 20]
  1179.