From f85e5f0238dce494aa570983c613da6d3104b5a5 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Wed, 3 Feb 2021 10:10:25 +0300 Subject: [PATCH] [#202] object/eacl: Fix algorithm for checking eACL table Add SignWithRFC6979 option to signature verification function since eACL table are signed by users with this option. Signed-off-by: Leonard Lyubich --- pkg/services/object/acl/eacl/opts.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/services/object/acl/eacl/opts.go b/pkg/services/object/acl/eacl/opts.go index 562d04c3..41199847 100644 --- a/pkg/services/object/acl/eacl/opts.go +++ b/pkg/services/object/acl/eacl/opts.go @@ -35,6 +35,7 @@ func (s *morphStorage) GetEACL(cid *container.ID) (*eacl.Table, error) { func() ([]byte, []byte) { return sig.Key(), sig.Sign() }, + signature.SignWithRFC6979(), ); err != nil { return nil, errors.Wrap(err, "incorrect signature") }