diff --git a/parse/message.go b/parse/message.go index 6b7b2ee215431c5b9b015d5c196dd4dcfb176f00..b19f121e0bff039b5afac1cf6b6136edf2df6ca9 100644 --- a/parse/message.go +++ b/parse/message.go @@ -34,8 +34,10 @@ const ( E2E ) -func (CryptoType) String() string { - return "yo, there's probably a crypto type that needs to get got around here" +var cryptoTypeStrArr = []string{"None", "Unencrypted", "Rekey", "E2E"} + +func (ct CryptoType) String() string { + return cryptoTypeStrArr[ct] } // Interface used to standardize message definitions