[#290] object/rangehash: Apply salt to data before hashing

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-01-11 16:50:49 +03:00 committed by Alex Vanin
parent 0e2c761481
commit 3a7f6701d8
2 changed files with 4 additions and 3 deletions

View file

@ -2,7 +2,7 @@ package getsvc
import (
"crypto/ecdsa"
"hash"
"io"
"github.com/nspcc-dev/neofs-api-go/pkg/client"
objectSDK "github.com/nspcc-dev/neofs-api-go/pkg/object"
@ -40,7 +40,7 @@ type partWriter struct {
}
type hasherWrapper struct {
hash hash.Hash
hash io.Writer
}
func NewSimpleObjectWriter() *SimpleObjectWriter {