myproposal.h revision 1.21 1 1.9 christos /* $NetBSD: myproposal.h,v 1.21 2021/03/05 17:47:16 christos Exp $ */
2 1.21 christos /* $OpenBSD: myproposal.h,v 1.68 2020/10/03 04:15:06 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.19 christos #define KEX_SERVER_KEX \
29 1.15 christos "curve25519-sha256," \
30 1.8 christos "curve25519-sha256 (at) libssh.org," \
31 1.4 christos "ecdh-sha2-nistp256," \
32 1.4 christos "ecdh-sha2-nistp384," \
33 1.4 christos "ecdh-sha2-nistp521," \
34 1.14 christos "diffie-hellman-group-exchange-sha256," \
35 1.14 christos "diffie-hellman-group16-sha512," \
36 1.19 christos "diffie-hellman-group18-sha512," \
37 1.20 christos "diffie-hellman-group14-sha256"
38 1.8 christos
39 1.19 christos #define KEX_CLIENT_KEX KEX_SERVER_KEX
40 1.4 christos
41 1.3 adam #define KEX_DEFAULT_PK_ALG \
42 1.21 christos "ssh-ed25519-cert-v01 (at) openssh.com," \
43 1.4 christos "ecdsa-sha2-nistp256-cert-v01 (at) openssh.com," \
44 1.4 christos "ecdsa-sha2-nistp384-cert-v01 (at) openssh.com," \
45 1.4 christos "ecdsa-sha2-nistp521-cert-v01 (at) openssh.com," \
46 1.21 christos "sk-ssh-ed25519-cert-v01 (at) openssh.com," \
47 1.20 christos "sk-ecdsa-sha2-nistp256-cert-v01 (at) openssh.com," \
48 1.18 christos "rsa-sha2-512-cert-v01 (at) openssh.com," \
49 1.18 christos "rsa-sha2-256-cert-v01 (at) openssh.com," \
50 1.4 christos "ssh-rsa-cert-v01 (at) openssh.com," \
51 1.21 christos "ssh-ed25519," \
52 1.4 christos "ecdsa-sha2-nistp256," \
53 1.4 christos "ecdsa-sha2-nistp384," \
54 1.4 christos "ecdsa-sha2-nistp521," \
55 1.21 christos "sk-ssh-ed25519 (at) openssh.com," \
56 1.20 christos "sk-ecdsa-sha2-nistp256 (at) openssh.com," \
57 1.13 christos "rsa-sha2-512," \
58 1.13 christos "rsa-sha2-256," \
59 1.12 christos "ssh-rsa"
60 1.1 christos
61 1.8 christos #define KEX_SERVER_ENCRYPT \
62 1.11 christos "chacha20-poly1305 (at) openssh.com," \
63 1.1 christos "aes128-ctr,aes192-ctr,aes256-ctr," \
64 1.11 christos "aes128-gcm (at) openssh.com,aes256-gcm (at) openssh.com"
65 1.8 christos
66 1.17 christos #define KEX_CLIENT_ENCRYPT KEX_SERVER_ENCRYPT
67 1.2 christos
68 1.8 christos #define KEX_SERVER_MAC \
69 1.7 christos "umac-64-etm (at) openssh.com," \
70 1.7 christos "umac-128-etm (at) openssh.com," \
71 1.7 christos "hmac-sha2-256-etm (at) openssh.com," \
72 1.7 christos "hmac-sha2-512-etm (at) openssh.com," \
73 1.8 christos "hmac-sha1-etm (at) openssh.com," \
74 1.8 christos "umac-64 (at) openssh.com," \
75 1.8 christos "umac-128 (at) openssh.com," \
76 1.8 christos "hmac-sha2-256," \
77 1.8 christos "hmac-sha2-512," \
78 1.8 christos "hmac-sha1"
79 1.8 christos
80 1.13 christos #define KEX_CLIENT_MAC KEX_SERVER_MAC
81 1.8 christos
82 1.19 christos /* Not a KEX value, but here so all the algorithm defaults are together */
83 1.19 christos #define SSH_ALLOWED_CA_SIGALGS \
84 1.21 christos "ssh-ed25519," \
85 1.19 christos "ecdsa-sha2-nistp256," \
86 1.19 christos "ecdsa-sha2-nistp384," \
87 1.19 christos "ecdsa-sha2-nistp521," \
88 1.21 christos "sk-ssh-ed25519 (at) openssh.com," \
89 1.20 christos "sk-ecdsa-sha2-nistp256 (at) openssh.com," \
90 1.19 christos "rsa-sha2-512," \
91 1.20 christos "rsa-sha2-256"
92 1.2 christos
93 1.9 christos #define KEX_CLIENT_ENCRYPT_INCLUDE_NONE KEX_CLIENT_ENCRYPT \
94 1.9 christos ",none"
95 1.9 christos #define KEX_SERVER_ENCRYPT_INCLUDE_NONE KEX_SERVER_ENCRYPT \
96 1.9 christos ",none"
97 1.9 christos
98 1.15 christos #define KEX_DEFAULT_COMP "none,zlib (at) openssh.com"
99 1.1 christos #define KEX_DEFAULT_LANG ""
100 1.1 christos
101 1.8 christos #define KEX_CLIENT \
102 1.8 christos KEX_CLIENT_KEX, \
103 1.8 christos KEX_DEFAULT_PK_ALG, \
104 1.9 christos KEX_CLIENT_ENCRYPT_INCLUDE_NONE, \
105 1.9 christos KEX_CLIENT_ENCRYPT_INCLUDE_NONE, \
106 1.8 christos KEX_CLIENT_MAC, \
107 1.8 christos KEX_CLIENT_MAC, \
108 1.8 christos KEX_DEFAULT_COMP, \
109 1.8 christos KEX_DEFAULT_COMP, \
110 1.8 christos KEX_DEFAULT_LANG, \
111 1.8 christos KEX_DEFAULT_LANG
112 1.1 christos
113 1.8 christos #define KEX_SERVER \
114 1.8 christos KEX_SERVER_KEX, \
115 1.8 christos KEX_DEFAULT_PK_ALG, \
116 1.9 christos KEX_SERVER_ENCRYPT_INCLUDE_NONE, \
117 1.9 christos KEX_SERVER_ENCRYPT_INCLUDE_NONE, \
118 1.8 christos KEX_SERVER_MAC, \
119 1.8 christos KEX_SERVER_MAC, \
120 1.8 christos KEX_DEFAULT_COMP, \
121 1.8 christos KEX_DEFAULT_COMP, \
122 1.8 christos KEX_DEFAULT_LANG, \
123 1.1 christos KEX_DEFAULT_LANG
124