Skip to content

Commit e23896f

Browse files
committed
Added ctx parameter to Sign and Verify interfaces to allow context passing in the case of remote calls to sign/verify an envelope (i.e. a KMS call)
1 parent 1913e3c commit e23896f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dsse/sign_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ func TestPAE(t *testing.T) {
4141

4242
type nilsigner int
4343

44-
func (n nilsigner) Sign(_ context.Context, data []byte) ([]byte, error) {
44+
func (n nilsigner) Sign(ctx context.Context, data []byte) ([]byte, error) {
4545
return data, nil
4646
}
4747

48-
func (n nilsigner) Verify(_ context.Context, data, sig []byte) error {
48+
func (n nilsigner) Verify(ctx context.Context, data, sig []byte) error {
4949
if len(data) != len(sig) {
5050
return errLength
5151
}

0 commit comments

Comments
 (0)