Change documentation

This commit is contained in:
alexmullins 2015-11-26 14:38:53 -06:00
parent 8ac7f2d858
commit 9b6aff4be2
1 changed files with 1 additions and 0 deletions

View File

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