forked from TrueCloudLab/frostfs-node
[#290] object/rangehash: Apply salt to data before hashing
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
0e2c761481
commit
3a7f6701d8
2 changed files with 4 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue