mirror of
https://github.com/restic/restic.git
synced 2026-10-25 01:58:54 +00:00
Rename HashReader -> HashAppendReader, add HashingReader
This commit is contained in:
1 parent
842dea173c
commit
64f7b4e5e9
4 files changed
+105
-51
No files matched your search
@@ -341,7 +341,7 @@ func (k *Key) encryptFrom(ks *keys, rd io.Reader) io.Reader {
|
||||
S: cipher.NewCTR(c, iv),
|
||||
}
|
||||
|
||||
return backend.NewHashReader(io.MultiReader(ivReader, encryptReader),
|
||||
return backend.NewHashAppendReader(io.MultiReader(ivReader, encryptReader),
|
||||
hmac.New(sha256.New, ks.Sign))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user