@@ -28,7 +28,7 @@ const (
2828// supportedCiphers lists ciphers we support but might not recommend.
2929var supportedCiphers = []string {
3030 "aes128-ctr" , "aes192-ctr" , "aes256-ctr" ,
31- "aes128-gcm@openssh.com" ,
31+ "aes128-gcm@openssh.com" , gcm256CipherID ,
3232 chacha20Poly1305ID ,
3333 "arcfour256" , "arcfour128" , "arcfour" ,
3434 aes128cbcID ,
@@ -37,7 +37,7 @@ var supportedCiphers = []string{
3737
3838// preferredCiphers specifies the default preference for ciphers.
3939var preferredCiphers = []string {
40- "aes128-gcm@openssh.com" ,
40+ "aes128-gcm@openssh.com" , gcm256CipherID ,
4141 chacha20Poly1305ID ,
4242 "aes128-ctr" , "aes192-ctr" , "aes256-ctr" ,
4343}
@@ -168,7 +168,7 @@ func (a *directionAlgorithms) rekeyBytes() int64 {
168168 // 2^(BLOCKSIZE/4) blocks. For all AES flavors BLOCKSIZE is
169169 // 128.
170170 switch a .Cipher {
171- case "aes128-ctr" , "aes192-ctr" , "aes256-ctr" , gcmCipherID , aes128cbcID :
171+ case "aes128-ctr" , "aes192-ctr" , "aes256-ctr" , gcm128CipherID , gcm256CipherID , aes128cbcID :
172172 return 16 * (1 << 32 )
173173
174174 }
@@ -178,7 +178,8 @@ func (a *directionAlgorithms) rekeyBytes() int64 {
178178}
179179
180180var aeadCiphers = map [string ]bool {
181- gcmCipherID : true ,
181+ gcm128CipherID : true ,
182+ gcm256CipherID : true ,
182183 chacha20Poly1305ID : true ,
183184}
184185
0 commit comments