From 6c010c30805f674de0f92072bb54c08d2e5b37e9 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 4 May 2016 20:15:11 +0200 Subject: stupidgcm: fix copy-paste error in panic message Also, print the openssl version in Travis CI --- internal/stupidgcm/stupidgcm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/stupidgcm') diff --git a/internal/stupidgcm/stupidgcm.go b/internal/stupidgcm/stupidgcm.go index 6773a35..f92bc01 100644 --- a/internal/stupidgcm/stupidgcm.go +++ b/internal/stupidgcm/stupidgcm.go @@ -147,7 +147,7 @@ func (g stupidGCM) Open(dst, iv, in, authData []byte) ([]byte, error) { // Provide authentication data var resultLen C.int if C.EVP_DecryptUpdate(ctx, nil, &resultLen, (*C.uchar)(&authData[0]), C.int(len(authData))) != 1 { - log.Panic("EVP_EncryptUpdate authData failed") + log.Panic("EVP_DecryptUpdate authData failed") } if int(resultLen) != len(authData) { log.Panicf("Unexpected length %d", resultLen) -- cgit v1.2.3