From 9b6aff4be2a0b8fbbfb4bca9fda07d401dfd077f Mon Sep 17 00:00:00 2001 From: alexmullins Date: Thu, 26 Nov 2015 14:38:53 -0600 Subject: [PATCH] Change documentation --- crypto.go | 1 + 1 file changed, 1 insertion(+) 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