- markus@cvs.openbsd.org 2001/03/05 17:17:21
     [kex.c kex.h sshconnect2.c sshd.c]
     generate a 2*need size (~300 instead of 1024/2048) random private
     exponent during the DH key agreement. according to Niels (the great
     german advisor) this is safe since /etc/primes contains strong
     primes only.

     References:
             P. C. van Oorschot and M. J. Wiener, On Diffie-Hellman key
             agreement with short exponents, In Advances in Cryptology
             - EUROCRYPT'96, LNCS 1070, Springer-Verlag, 1996, pp.332-343.
5 files changed
tree: b80be6bceb955898948ef10527b43fc4cf005d8e
  1. contrib/
  2. openbsd-compat/
  3. acconfig.h
  4. aclocal.m4
  5. atomicio.c
  6. atomicio.h
  7. auth-chall.c
  8. auth-krb4.c
  9. auth-options.c
  10. auth-options.h
  11. auth-pam.c
  12. auth-pam.h
  13. auth-passwd.c
  14. auth-rh-rsa.c
  15. auth-rhosts.c
  16. auth-rsa.c
  17. auth-sia.c
  18. auth-sia.h
  19. auth.c
  20. auth.h
  21. auth1.c
  22. auth2-chall.c
  23. auth2-pam.c
  24. auth2-pam.h
  25. auth2.c
  26. authfd.c
  27. authfd.h
  28. authfile.c
  29. authfile.h
  30. bufaux.c
  31. bufaux.h
  32. buffer.c
  33. buffer.h
  34. canohost.c
  35. canohost.h
  36. ChangeLog
  37. channels.c
  38. channels.h
  39. cipher.c
  40. cipher.h
  41. cli.c
  42. cli.h
  43. clientloop.c
  44. clientloop.h
  45. compat.c
  46. compat.h
  47. compress.c
  48. compress.h
  49. config.guess
  50. config.sub
  51. configure.in
  52. crc32.c
  53. crc32.h
  54. CREDITS
  55. deattack.c
  56. deattack.h
  57. defines.h
  58. dh.c
  59. dh.h
  60. dispatch.c
  61. dispatch.h
  62. entropy.c
  63. entropy.h
  64. fixpaths
  65. fixprogs
  66. getput.h
  67. groupaccess.c
  68. groupaccess.h
  69. hostfile.c
  70. hostfile.h
  71. includes.h
  72. INSTALL
  73. install-sh
  74. kex.c
  75. kex.h
  76. key.c
  77. key.h
  78. LICENCE
  79. log.c
  80. log.h
  81. loginrec.c
  82. loginrec.h
  83. logintest.c
  84. mac.c
  85. mac.h
  86. Makefile.in
  87. match.c
  88. match.h
  89. md5crypt.c
  90. md5crypt.h
  91. misc.c
  92. misc.h
  93. mkinstalldirs
  94. mpaux.c
  95. mpaux.h
  96. myproposal.h
  97. nchan.c
  98. nchan.h
  99. nchan.ms
  100. nchan2.ms
  101. OVERVIEW
  102. packet.c
  103. packet.h
  104. pathnames.h
  105. primes
  106. radix.c
  107. radix.h
  108. readconf.c
  109. readconf.h
  110. README
  111. readpass.c
  112. readpass.h
  113. RFC.nroff
  114. rijndael.c
  115. rijndael.h
  116. rsa.c
  117. rsa.h
  118. scp.1
  119. scp.c
  120. servconf.c
  121. servconf.h
  122. serverloop.c
  123. serverloop.h
  124. session.c
  125. session.h
  126. sftp-client.c
  127. sftp-client.h
  128. sftp-common.c
  129. sftp-common.h
  130. sftp-int.c
  131. sftp-int.h
  132. sftp-server.8
  133. sftp-server.c
  134. sftp.1
  135. sftp.c
  136. sftp.h
  137. ssh-add.1
  138. ssh-add.c
  139. ssh-agent.1
  140. ssh-agent.c
  141. ssh-dss.c
  142. ssh-dss.h
  143. ssh-keygen.1
  144. ssh-keygen.c
  145. ssh-keyscan.1
  146. ssh-keyscan.c
  147. ssh-rsa.c
  148. ssh-rsa.h
  149. ssh.1
  150. ssh.c
  151. ssh.h
  152. ssh1.h
  153. ssh2.h
  154. ssh_config
  155. ssh_prng_cmds.in
  156. sshconnect.c
  157. sshconnect.h
  158. sshconnect1.c
  159. sshconnect2.c
  160. sshd.8
  161. sshd.c
  162. sshd_config
  163. sshlogin.c
  164. sshlogin.h
  165. sshpty.c
  166. sshpty.h
  167. tildexpand.c
  168. tildexpand.h
  169. TODO
  170. ttymodes.c
  171. ttymodes.h
  172. uidswap.c
  173. uidswap.h
  174. uuencode.c
  175. uuencode.h
  176. version.h
  177. WARNING.RNG
  178. xmalloc.c
  179. xmalloc.h