Use NewGCMWithNonceSize only through goGCMWrapper to support Go 1.4
This commit is contained in:
parent
1caa925868
commit
8c7e31329d
@ -50,7 +50,7 @@ func NewCryptFS(key []byte, useOpenssl bool, plaintextNames bool, GCMIV128 bool)
|
|||||||
if useOpenssl {
|
if useOpenssl {
|
||||||
gcm = opensslGCM{key}
|
gcm = opensslGCM{key}
|
||||||
} else {
|
} else {
|
||||||
gcm, err = cipher.NewGCMWithNonceSize(b, gcmIV)
|
gcm, err = goGCMWrapper(b, gcmIV)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user