diff --git a/crypto.go b/crypto.go index e83df6a..b62c3e0 100644 --- a/crypto.go +++ b/crypto.go @@ -250,6 +250,7 @@ func generateKeys(password, salt []byte, keySize int) (encKey, authKey, pwv []by return } +// newDecryptionReader returns an authenticated, decryption reader func newDecryptionReader(r *io.SectionReader, f *File) (io.Reader, error) { keyLen := aesKeyLen(f.aesStrength) saltLen := keyLen / 2 // salt is half of key len