@@ -28,7 +28,7 @@ const (
28
28
// supportedCiphers lists ciphers we support but might not recommend.
29
29
var supportedCiphers = []string {
30
30
"aes128-ctr" , "aes192-ctr" , "aes256-ctr" ,
31
-
31
+ "[email protected] " ,
gcm256CipherID ,
32
32
chacha20Poly1305ID ,
33
33
"arcfour256" , "arcfour128" , "arcfour" ,
34
34
aes128cbcID ,
@@ -37,7 +37,7 @@ var supportedCiphers = []string{
37
37
38
38
// preferredCiphers specifies the default preference for ciphers.
39
39
var preferredCiphers = []string {
40
-
40
+ "[email protected] " ,
gcm256CipherID ,
41
41
chacha20Poly1305ID ,
42
42
"aes128-ctr" , "aes192-ctr" , "aes256-ctr" ,
43
43
}
@@ -168,7 +168,7 @@ func (a *directionAlgorithms) rekeyBytes() int64 {
168
168
// 2^(BLOCKSIZE/4) blocks. For all AES flavors BLOCKSIZE is
169
169
// 128.
170
170
switch a .Cipher {
171
- case "aes128-ctr" , "aes192-ctr" , "aes256-ctr" , gcmCipherID , aes128cbcID :
171
+ case "aes128-ctr" , "aes192-ctr" , "aes256-ctr" , gcm128CipherID , gcm256CipherID , aes128cbcID :
172
172
return 16 * (1 << 32 )
173
173
174
174
}
@@ -178,7 +178,8 @@ func (a *directionAlgorithms) rekeyBytes() int64 {
178
178
}
179
179
180
180
var aeadCiphers = map [string ]bool {
181
- gcmCipherID : true ,
181
+ gcm128CipherID : true ,
182
+ gcm256CipherID : true ,
182
183
chacha20Poly1305ID : true ,
183
184
}
184
185
0 commit comments