Grid Community Toolkit  6.2.1705709074 (tag: v6.2.20240202)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
myproposal.h
1 /* $OpenBSD: myproposal.h,v 1.71 2022/03/30 21:13:23 djm Exp $ */
2 
3 /*
4  * Copyright (c) 2000 Markus Friedl. All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions
8  * are met:
9  * 1. Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  * 2. Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the distribution.
14  *
15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25  */
26 
27 #define KEX_SERVER_KEX \
29  "curve25519-sha256," \
31  "ecdh-sha2-nistp256," \
32  "ecdh-sha2-nistp384," \
33  "ecdh-sha2-nistp521," \
34  "diffie-hellman-group-exchange-sha256," \
35  "diffie-hellman-group16-sha512," \
36  "diffie-hellman-group18-sha512," \
37  "diffie-hellman-group14-sha256"
38 
39 #define KEX_CLIENT_KEX KEX_SERVER_KEX
40 
41 #define KEX_DEFAULT_PK_ALG \
50  "ssh-ed25519," \
51  "ecdsa-sha2-nistp256," \
52  "ecdsa-sha2-nistp384," \
53  "ecdsa-sha2-nistp521," \
56  "rsa-sha2-512," \
57  "rsa-sha2-256"
58 
59 #define KEX_FIPS_PK_ALG \
65  "ecdsa-sha2-nistp256," \
66  "ecdsa-sha2-nistp384," \
67  "ecdsa-sha2-nistp521," \
68  "rsa-sha2-512," \
69  "rsa-sha2-256"
70 
71 #define KEX_SERVER_ENCRYPT \
73  "aes128-ctr,aes192-ctr,aes256-ctr," \
75 
76 #define KEX_CLIENT_ENCRYPT KEX_SERVER_ENCRYPT
77 
78 #define KEX_SERVER_MAC \
86  "hmac-sha2-256," \
87  "hmac-sha2-512," \
88  "hmac-sha1"
89 
90 #define KEX_CLIENT_MAC KEX_SERVER_MAC
91 
92 #define KEX_FIPS_ENCRYPT \
93  "aes128-ctr,aes192-ctr,aes256-ctr," \
94  "aes128-cbc,3des-cbc," \
95  "aes192-cbc,aes256-cbc,[email protected]," \
97 #define KEX_DEFAULT_KEX_FIPS \
98  "ecdh-sha2-nistp256," \
99  "ecdh-sha2-nistp384," \
100  "ecdh-sha2-nistp521," \
101  "diffie-hellman-group-exchange-sha256," \
102  "diffie-hellman-group16-sha512," \
103  "diffie-hellman-group18-sha512," \
104  "diffie-hellman-group14-sha256"
105 #define KEX_FIPS_MAC \
106  "hmac-sha1," \
107  "hmac-sha2-256," \
108  "hmac-sha2-512," \
109  "[email protected]," \
110  "[email protected]," \
112 
113 /* Not a KEX value, but here so all the algorithm defaults are together */
114 #define SSH_ALLOWED_CA_SIGALGS \
115  "ssh-ed25519," \
116  "ecdsa-sha2-nistp256," \
117  "ecdsa-sha2-nistp384," \
118  "ecdsa-sha2-nistp521," \
119  "[email protected]," \
120  "[email protected]," \
121  "rsa-sha2-512," \
122  "rsa-sha2-256"
123 
124 #define KEX_DEFAULT_COMP "none,[email protected]"
125 #define KEX_DEFAULT_LANG ""
126 
127 #define KEX_CLIENT \
128  KEX_CLIENT_KEX, \
129  KEX_DEFAULT_PK_ALG, \
130  KEX_CLIENT_ENCRYPT, \
131  KEX_CLIENT_ENCRYPT, \
132  KEX_CLIENT_MAC, \
133  KEX_CLIENT_MAC, \
134  KEX_DEFAULT_COMP, \
135  KEX_DEFAULT_COMP, \
136  KEX_DEFAULT_LANG, \
137  KEX_DEFAULT_LANG
138 
139 #define KEX_SERVER \
140  KEX_SERVER_KEX, \
141  KEX_DEFAULT_PK_ALG, \
142  KEX_SERVER_ENCRYPT, \
143  KEX_SERVER_ENCRYPT, \
144  KEX_SERVER_MAC, \
145  KEX_SERVER_MAC, \
146  KEX_DEFAULT_COMP, \
147  KEX_DEFAULT_COMP, \
148  KEX_DEFAULT_LANG, \
149  KEX_DEFAULT_LANG