myproposal.h revision 1.15 1 1.9 christos /* $NetBSD: myproposal.h,v 1.15 2016/12/25 00:07:47 christos Exp $ */
2 1.15 christos /* $OpenBSD: myproposal.h,v 1.54 2016/09/28 16:33:07 djm Exp $ */
3 1.1 christos
4 1.1 christos /*
5 1.1 christos * Copyright (c) 2000 Markus Friedl. All rights reserved.
6 1.1 christos *
7 1.1 christos * Redistribution and use in source and binary forms, with or without
8 1.1 christos * modification, are permitted provided that the following conditions
9 1.1 christos * are met:
10 1.1 christos * 1. Redistributions of source code must retain the above copyright
11 1.1 christos * notice, this list of conditions and the following disclaimer.
12 1.1 christos * 2. Redistributions in binary form must reproduce the above copyright
13 1.1 christos * notice, this list of conditions and the following disclaimer in the
14 1.1 christos * documentation and/or other materials provided with the distribution.
15 1.1 christos *
16 1.1 christos * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 1.1 christos * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 1.1 christos * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 1.1 christos * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 1.1 christos * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 1.1 christos * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 1.1 christos * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 1.1 christos * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 1.1 christos * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 1.1 christos * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 1.1 christos */
27 1.4 christos
28 1.8 christos #ifdef WITH_OPENSSL
29 1.8 christos
30 1.11 christos #define KEX_COMMON_KEX \
31 1.15 christos "curve25519-sha256," \
32 1.8 christos "curve25519-sha256 (at) libssh.org," \
33 1.4 christos "ecdh-sha2-nistp256," \
34 1.4 christos "ecdh-sha2-nistp384," \
35 1.4 christos "ecdh-sha2-nistp521," \
36 1.14 christos "diffie-hellman-group-exchange-sha256," \
37 1.14 christos "diffie-hellman-group16-sha512," \
38 1.14 christos "diffie-hellman-group18-sha512" \
39 1.11 christos
40 1.11 christos #define KEX_SERVER_KEX KEX_COMMON_KEX "," \
41 1.14 christos "diffie-hellman-group14-sha256," \
42 1.11 christos "diffie-hellman-group14-sha1"
43 1.8 christos
44 1.11 christos #define KEX_CLIENT_KEX KEX_COMMON_KEX "," \
45 1.1 christos "diffie-hellman-group-exchange-sha1," \
46 1.14 christos "diffie-hellman-group14-sha256," \
47 1.12 christos "diffie-hellman-group14-sha1"
48 1.4 christos
49 1.3 adam #define KEX_DEFAULT_PK_ALG \
50 1.4 christos "ecdsa-sha2-nistp256-cert-v01 (at) openssh.com," \
51 1.4 christos "ecdsa-sha2-nistp384-cert-v01 (at) openssh.com," \
52 1.4 christos "ecdsa-sha2-nistp521-cert-v01 (at) openssh.com," \
53 1.8 christos "ssh-ed25519-cert-v01 (at) openssh.com," \
54 1.4 christos "ssh-rsa-cert-v01 (at) openssh.com," \
55 1.4 christos "ecdsa-sha2-nistp256," \
56 1.4 christos "ecdsa-sha2-nistp384," \
57 1.4 christos "ecdsa-sha2-nistp521," \
58 1.8 christos "ssh-ed25519," \
59 1.13 christos "rsa-sha2-512," \
60 1.13 christos "rsa-sha2-256," \
61 1.12 christos "ssh-rsa"
62 1.1 christos
63 1.8 christos #define KEX_SERVER_ENCRYPT \
64 1.11 christos "chacha20-poly1305 (at) openssh.com," \
65 1.1 christos "aes128-ctr,aes192-ctr,aes256-ctr," \
66 1.11 christos "aes128-gcm (at) openssh.com,aes256-gcm (at) openssh.com"
67 1.8 christos
68 1.8 christos #define KEX_CLIENT_ENCRYPT KEX_SERVER_ENCRYPT "," \
69 1.15 christos "aes128-cbc,aes192-cbc,aes256-cbc"
70 1.2 christos
71 1.8 christos #define KEX_SERVER_MAC \
72 1.7 christos "umac-64-etm (at) openssh.com," \
73 1.7 christos "umac-128-etm (at) openssh.com," \
74 1.7 christos "hmac-sha2-256-etm (at) openssh.com," \
75 1.7 christos "hmac-sha2-512-etm (at) openssh.com," \
76 1.8 christos "hmac-sha1-etm (at) openssh.com," \
77 1.8 christos "umac-64 (at) openssh.com," \
78 1.8 christos "umac-128 (at) openssh.com," \
79 1.8 christos "hmac-sha2-256," \
80 1.8 christos "hmac-sha2-512," \
81 1.8 christos "hmac-sha1"
82 1.8 christos
83 1.13 christos #define KEX_CLIENT_MAC KEX_SERVER_MAC
84 1.8 christos
85 1.13 christos #else /* WITH_OPENSSL */
86 1.8 christos
87 1.8 christos #define KEX_SERVER_KEX \
88 1.15 christos "curve25519-sha256," \
89 1.8 christos "curve25519-sha256 (at) libssh.org"
90 1.8 christos #define KEX_DEFAULT_PK_ALG \
91 1.8 christos "ssh-ed25519-cert-v01 (at) openssh.com," \
92 1.8 christos "ssh-ed25519"
93 1.8 christos #define KEX_SERVER_ENCRYPT \
94 1.11 christos "chacha20-poly1305 (at) openssh.com," \
95 1.11 christos "aes128-ctr,aes192-ctr,aes256-ctr"
96 1.8 christos #define KEX_SERVER_MAC \
97 1.8 christos "umac-64-etm (at) openssh.com," \
98 1.8 christos "umac-128-etm (at) openssh.com," \
99 1.8 christos "hmac-sha2-256-etm (at) openssh.com," \
100 1.8 christos "hmac-sha2-512-etm (at) openssh.com," \
101 1.8 christos "hmac-sha1-etm (at) openssh.com," \
102 1.5 christos "umac-64 (at) openssh.com," \
103 1.7 christos "umac-128 (at) openssh.com," \
104 1.5 christos "hmac-sha2-256," \
105 1.5 christos "hmac-sha2-512," \
106 1.8 christos "hmac-sha1"
107 1.8 christos
108 1.8 christos #define KEX_CLIENT_KEX KEX_SERVER_KEX
109 1.8 christos #define KEX_CLIENT_ENCRYPT KEX_SERVER_ENCRYPT
110 1.8 christos #define KEX_CLIENT_MAC KEX_SERVER_MAC
111 1.8 christos
112 1.8 christos #endif /* WITH_OPENSSL */
113 1.2 christos
114 1.9 christos #define KEX_CLIENT_ENCRYPT_INCLUDE_NONE KEX_CLIENT_ENCRYPT \
115 1.9 christos ",none"
116 1.9 christos #define KEX_SERVER_ENCRYPT_INCLUDE_NONE KEX_SERVER_ENCRYPT \
117 1.9 christos ",none"
118 1.9 christos
119 1.15 christos #define KEX_DEFAULT_COMP "none,zlib (at) openssh.com"
120 1.1 christos #define KEX_DEFAULT_LANG ""
121 1.1 christos
122 1.8 christos #define KEX_CLIENT \
123 1.8 christos KEX_CLIENT_KEX, \
124 1.8 christos KEX_DEFAULT_PK_ALG, \
125 1.9 christos KEX_CLIENT_ENCRYPT_INCLUDE_NONE, \
126 1.9 christos KEX_CLIENT_ENCRYPT_INCLUDE_NONE, \
127 1.8 christos KEX_CLIENT_MAC, \
128 1.8 christos KEX_CLIENT_MAC, \
129 1.8 christos KEX_DEFAULT_COMP, \
130 1.8 christos KEX_DEFAULT_COMP, \
131 1.8 christos KEX_DEFAULT_LANG, \
132 1.8 christos KEX_DEFAULT_LANG
133 1.1 christos
134 1.8 christos #define KEX_SERVER \
135 1.8 christos KEX_SERVER_KEX, \
136 1.8 christos KEX_DEFAULT_PK_ALG, \
137 1.9 christos KEX_SERVER_ENCRYPT_INCLUDE_NONE, \
138 1.9 christos KEX_SERVER_ENCRYPT_INCLUDE_NONE, \
139 1.8 christos KEX_SERVER_MAC, \
140 1.8 christos KEX_SERVER_MAC, \
141 1.8 christos KEX_DEFAULT_COMP, \
142 1.8 christos KEX_DEFAULT_COMP, \
143 1.8 christos KEX_DEFAULT_LANG, \
144 1.1 christos KEX_DEFAULT_LANG
145