Skip to content

Commit

Permalink
layer: Replace copy func with bytes.Clone
Browse files Browse the repository at this point in the history
Signed-off-by: Evgenii Baidakov <evgenii@nspcc.io>
  • Loading branch information
smallhive committed Feb 29, 2024
1 parent ff86d36 commit 768e9aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/layer/encryption/encryption.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func NewParams(key []byte) (*Params, error) {
}
var p Params
p.customerKey = make([]byte, aes256KeySize)
copy(p.customerKey, key)
p.customerKey = bytes.Clone(key)
return &p, nil
}

Expand Down

0 comments on commit 768e9aa

Please sign in to comment.