Skip to content

Commit 3cbab87

Browse files
committed
chore: adapt to go-securesystemslib v0.6.0
1 parent 4bd65bc commit 3cbab87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/integrity/dsse.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func newDSSEEncoder(ss []signature.Signer, opts ...signature.SignOption) (*dsseE
4141
opts = append(opts, options.WithCryptoSignerOpts(so))
4242
}
4343

44-
dss := make([]dsse.SignVerifier, 0, len(ss))
44+
dss := make([]dsse.SignerVerifier, 0, len(ss))
4545
for _, s := range ss {
4646
ds, err := newDSSESigner(s, opts...)
4747
if err != nil {
@@ -141,7 +141,7 @@ type dsseSigner struct {
141141
pub crypto.PublicKey
142142
}
143143

144-
// newDSSESigner returns a dsse.SignVerifier that uses s to sign according to opts. Note that the
144+
// newDSSESigner returns a dsse.SignerVerifier that uses s to sign according to opts. Note that the
145145
// returned value is suitable only for signing, and not verification.
146146
func newDSSESigner(s signature.Signer, opts ...signature.SignOption) (*dsseSigner, error) {
147147
pub, err := s.PublicKey()
@@ -166,7 +166,7 @@ func (s *dsseSigner) Sign(ctx context.Context, data []byte) ([]byte, error) {
166166

167167
var errSignNotImplemented = errors.New("sign not implemented")
168168

169-
// Verify is not implemented, but required for the dsse.SignVerifier interface.
169+
// Verify is not implemented, but required for the dsse.SignerVerifier interface.
170170
func (s *dsseSigner) Verify(_ context.Context, _, _ []byte) error {
171171
return errSignNotImplemented
172172
}

0 commit comments

Comments
 (0)