myproposal.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /* $OpenBSD: myproposal.h,v 1.68 2020/10/03 04:15:06 djm Exp $ */
  2. /*
  3. * Copyright (c) 2000 Markus Friedl. All rights reserved.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions
  7. * are met:
  8. * 1. Redistributions of source code must retain the above copyright
  9. * notice, this list of conditions and the following disclaimer.
  10. * 2. Redistributions in binary form must reproduce the above copyright
  11. * notice, this list of conditions and the following disclaimer in the
  12. * documentation and/or other materials provided with the distribution.
  13. *
  14. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  15. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  16. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  17. * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  18. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  19. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  20. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  21. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  22. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  23. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  24. */
  25. #define KEX_SERVER_KEX \
  26. "curve25519-sha256," \
  27. "curve25519-sha256@libssh.org," \
  28. "ecdh-sha2-nistp256," \
  29. "ecdh-sha2-nistp384," \
  30. "ecdh-sha2-nistp521," \
  31. "diffie-hellman-group-exchange-sha256," \
  32. "diffie-hellman-group16-sha512," \
  33. "diffie-hellman-group18-sha512," \
  34. "diffie-hellman-group14-sha256"
  35. #define KEX_CLIENT_KEX KEX_SERVER_KEX
  36. #define KEX_DEFAULT_PK_ALG \
  37. "ssh-ed25519-cert-v01@openssh.com," \
  38. "ecdsa-sha2-nistp256-cert-v01@openssh.com," \
  39. "ecdsa-sha2-nistp384-cert-v01@openssh.com," \
  40. "ecdsa-sha2-nistp521-cert-v01@openssh.com," \
  41. "sk-ssh-ed25519-cert-v01@openssh.com," \
  42. "sk-ecdsa-sha2-nistp256-cert-v01@openssh.com," \
  43. "rsa-sha2-512-cert-v01@openssh.com," \
  44. "rsa-sha2-256-cert-v01@openssh.com," \
  45. "ssh-rsa-cert-v01@openssh.com," \
  46. "ssh-ed25519," \
  47. "ecdsa-sha2-nistp256," \
  48. "ecdsa-sha2-nistp384," \
  49. "ecdsa-sha2-nistp521," \
  50. "sk-ssh-ed25519@openssh.com," \
  51. "sk-ecdsa-sha2-nistp256@openssh.com," \
  52. "rsa-sha2-512," \
  53. "rsa-sha2-256," \
  54. "ssh-rsa"
  55. #define KEX_SERVER_ENCRYPT \
  56. "chacha20-poly1305@openssh.com," \
  57. "aes128-ctr,aes192-ctr,aes256-ctr," \
  58. "aes128-gcm@openssh.com,aes256-gcm@openssh.com"
  59. #define KEX_CLIENT_ENCRYPT KEX_SERVER_ENCRYPT
  60. #define KEX_SERVER_MAC \
  61. "umac-64-etm@openssh.com," \
  62. "umac-128-etm@openssh.com," \
  63. "hmac-sha2-256-etm@openssh.com," \
  64. "hmac-sha2-512-etm@openssh.com," \
  65. "hmac-sha1-etm@openssh.com," \
  66. "umac-64@openssh.com," \
  67. "umac-128@openssh.com," \
  68. "hmac-sha2-256," \
  69. "hmac-sha2-512," \
  70. "hmac-sha1"
  71. #define KEX_CLIENT_MAC KEX_SERVER_MAC
  72. /* Not a KEX value, but here so all the algorithm defaults are together */
  73. #define SSH_ALLOWED_CA_SIGALGS \
  74. "ssh-ed25519," \
  75. "ecdsa-sha2-nistp256," \
  76. "ecdsa-sha2-nistp384," \
  77. "ecdsa-sha2-nistp521," \
  78. "sk-ssh-ed25519@openssh.com," \
  79. "sk-ecdsa-sha2-nistp256@openssh.com," \
  80. "rsa-sha2-512," \
  81. "rsa-sha2-256"
  82. #define KEX_DEFAULT_COMP "none,zlib@openssh.com"
  83. #define KEX_DEFAULT_LANG ""
  84. #define KEX_CLIENT \
  85. KEX_CLIENT_KEX, \
  86. KEX_DEFAULT_PK_ALG, \
  87. KEX_CLIENT_ENCRYPT, \
  88. KEX_CLIENT_ENCRYPT, \
  89. KEX_CLIENT_MAC, \
  90. KEX_CLIENT_MAC, \
  91. KEX_DEFAULT_COMP, \
  92. KEX_DEFAULT_COMP, \
  93. KEX_DEFAULT_LANG, \
  94. KEX_DEFAULT_LANG
  95. #define KEX_SERVER \
  96. KEX_SERVER_KEX, \
  97. KEX_DEFAULT_PK_ALG, \
  98. KEX_SERVER_ENCRYPT, \
  99. KEX_SERVER_ENCRYPT, \
  100. KEX_SERVER_MAC, \
  101. KEX_SERVER_MAC, \
  102. KEX_DEFAULT_COMP, \
  103. KEX_DEFAULT_COMP, \
  104. KEX_DEFAULT_LANG, \
  105. KEX_DEFAULT_LANG