stupidgcm: fix copy-paste error in panic message
Also, print the openssl version in Travis CI
This commit is contained in:
parent
86eb37e41a
commit
6c010c3080
|
@ -14,6 +14,7 @@ install:
|
||||||
|
|
||||||
# Travis does not support FUSE, so we can't just run "go test ./..."
|
# Travis does not support FUSE, so we can't just run "go test ./..."
|
||||||
script:
|
script:
|
||||||
|
- openssl version
|
||||||
- go build
|
- go build
|
||||||
- ./build.bash
|
- ./build.bash
|
||||||
- go test ./internal/...
|
- go test ./internal/...
|
||||||
|
|
|
@ -147,7 +147,7 @@ func (g stupidGCM) Open(dst, iv, in, authData []byte) ([]byte, error) {
|
||||||
// Provide authentication data
|
// Provide authentication data
|
||||||
var resultLen C.int
|
var resultLen C.int
|
||||||
if C.EVP_DecryptUpdate(ctx, nil, &resultLen, (*C.uchar)(&authData[0]), C.int(len(authData))) != 1 {
|
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) {
|
if int(resultLen) != len(authData) {
|
||||||
log.Panicf("Unexpected length %d", resultLen)
|
log.Panicf("Unexpected length %d", resultLen)
|
||||||
|
|
Loading…
Reference in New Issue