From 5d9df8383a4cc3fc6256d9d3d9661ee9e49a9404 Mon Sep 17 00:00:00 2001 From: Mikkel Krautz Date: Sun, 9 Dec 2012 13:14:45 +0100 Subject: [PATCH] pkg/cryptstate: add XSalsa20-Poly1305 to the SupportedModes list. --- pkg/cryptstate/cryptstate.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/cryptstate/cryptstate.go b/pkg/cryptstate/cryptstate.go index 3b8e205..ffffd1e 100644 --- a/pkg/cryptstate/cryptstate.go +++ b/pkg/cryptstate/cryptstate.go @@ -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.