pkg/cryptstate: add XSalsa20-Poly1305 to the SupportedModes list.

This commit is contained in:
Mikkel Krautz 2012-12-09 13:14:45 +01:00
parent cbe2ffea3d
commit 5d9df8383a

View file

@ -45,7 +45,10 @@ type CryptState struct {
// SupportedModes returns the list of supported CryptoModes.
func SupportedModes() []string {
return []string{"OCB2-AES128"}
return []string{
"OCB2-AES128",
"XSalsa20-Poly1305",
}
}
// createMode creates the CryptoMode with the given mode name.