Files
go-transcrypt/pkg/transcrypt/cipherSuite.go
2024-10-25 17:11:27 +02:00

20 lines
299 B
Go

package transcrypt
type CipherSuite byte
const (
AES_256_GCM CipherSuite = iota
CHACHA20_POLY1305
)
func GetCipherSuite(s string) CipherSuite {
switch s {
case "AES_256_GCM":
return AES_256_GCM
case "CHACHA20_POLY1305":
return CHACHA20_POLY1305
default:
return CHACHA20_POLY1305
}
}