Home | History | Annotate | Line # | Download | only in dist
myproposal.h revision 1.22
      1   1.9  christos /*	$NetBSD: myproposal.h,v 1.22 2021/09/27 17:03:13 christos Exp $	*/
      2  1.22  christos /* $OpenBSD: myproposal.h,v 1.69 2021/08/29 23:53:10 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.21  christos 	"ssh-ed25519," \
     51   1.4  christos 	"ecdsa-sha2-nistp256," \
     52   1.4  christos 	"ecdsa-sha2-nistp384," \
     53   1.4  christos 	"ecdsa-sha2-nistp521," \
     54  1.21  christos 	"sk-ssh-ed25519 (at) openssh.com," \
     55  1.20  christos 	"sk-ecdsa-sha2-nistp256 (at) openssh.com," \
     56  1.13  christos 	"rsa-sha2-512," \
     57  1.22  christos 	"rsa-sha2-256"
     58   1.1  christos 
     59   1.8  christos #define	KEX_SERVER_ENCRYPT \
     60  1.11  christos 	"chacha20-poly1305 (at) openssh.com," \
     61   1.1  christos 	"aes128-ctr,aes192-ctr,aes256-ctr," \
     62  1.11  christos 	"aes128-gcm (at) openssh.com,aes256-gcm (at) openssh.com"
     63   1.8  christos 
     64  1.17  christos #define KEX_CLIENT_ENCRYPT KEX_SERVER_ENCRYPT
     65   1.2  christos 
     66   1.8  christos #define	KEX_SERVER_MAC \
     67   1.7  christos 	"umac-64-etm (at) openssh.com," \
     68   1.7  christos 	"umac-128-etm (at) openssh.com," \
     69   1.7  christos 	"hmac-sha2-256-etm (at) openssh.com," \
     70   1.7  christos 	"hmac-sha2-512-etm (at) openssh.com," \
     71   1.8  christos 	"hmac-sha1-etm (at) openssh.com," \
     72   1.8  christos 	"umac-64 (at) openssh.com," \
     73   1.8  christos 	"umac-128 (at) openssh.com," \
     74   1.8  christos 	"hmac-sha2-256," \
     75   1.8  christos 	"hmac-sha2-512," \
     76   1.8  christos 	"hmac-sha1"
     77   1.8  christos 
     78  1.13  christos #define KEX_CLIENT_MAC KEX_SERVER_MAC
     79   1.8  christos 
     80  1.19  christos /* Not a KEX value, but here so all the algorithm defaults are together */
     81  1.19  christos #define	SSH_ALLOWED_CA_SIGALGS	\
     82  1.21  christos 	"ssh-ed25519," \
     83  1.19  christos 	"ecdsa-sha2-nistp256," \
     84  1.19  christos 	"ecdsa-sha2-nistp384," \
     85  1.19  christos 	"ecdsa-sha2-nistp521," \
     86  1.21  christos 	"sk-ssh-ed25519 (at) openssh.com," \
     87  1.20  christos 	"sk-ecdsa-sha2-nistp256 (at) openssh.com," \
     88  1.19  christos 	"rsa-sha2-512," \
     89  1.20  christos 	"rsa-sha2-256"
     90   1.2  christos 
     91   1.9  christos #define KEX_CLIENT_ENCRYPT_INCLUDE_NONE KEX_CLIENT_ENCRYPT \
     92   1.9  christos 	",none"
     93   1.9  christos #define KEX_SERVER_ENCRYPT_INCLUDE_NONE KEX_SERVER_ENCRYPT \
     94   1.9  christos 	",none"
     95   1.9  christos 
     96  1.15  christos #define	KEX_DEFAULT_COMP	"none,zlib (at) openssh.com"
     97   1.1  christos #define	KEX_DEFAULT_LANG	""
     98   1.1  christos 
     99   1.8  christos #define KEX_CLIENT \
    100   1.8  christos 	KEX_CLIENT_KEX, \
    101   1.8  christos 	KEX_DEFAULT_PK_ALG, \
    102   1.9  christos 	KEX_CLIENT_ENCRYPT_INCLUDE_NONE, \
    103   1.9  christos 	KEX_CLIENT_ENCRYPT_INCLUDE_NONE, \
    104   1.8  christos 	KEX_CLIENT_MAC, \
    105   1.8  christos 	KEX_CLIENT_MAC, \
    106   1.8  christos 	KEX_DEFAULT_COMP, \
    107   1.8  christos 	KEX_DEFAULT_COMP, \
    108   1.8  christos 	KEX_DEFAULT_LANG, \
    109   1.8  christos 	KEX_DEFAULT_LANG
    110   1.1  christos 
    111   1.8  christos #define KEX_SERVER \
    112   1.8  christos 	KEX_SERVER_KEX, \
    113   1.8  christos 	KEX_DEFAULT_PK_ALG, \
    114   1.9  christos 	KEX_SERVER_ENCRYPT_INCLUDE_NONE, \
    115   1.9  christos 	KEX_SERVER_ENCRYPT_INCLUDE_NONE, \
    116   1.8  christos 	KEX_SERVER_MAC, \
    117   1.8  christos 	KEX_SERVER_MAC, \
    118   1.8  christos 	KEX_DEFAULT_COMP, \
    119   1.8  christos 	KEX_DEFAULT_COMP, \
    120   1.8  christos 	KEX_DEFAULT_LANG, \
    121   1.1  christos 	KEX_DEFAULT_LANG
    122