Skip to content

Commit

Permalink
Update sign.go
Browse files Browse the repository at this point in the history
Co-authored-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Steve Lasker <stevenlasker@hotmail.com>
  • Loading branch information
SteveLasker and shizhMSFT authored Sep 13, 2024
1 parent fa0344c commit 9a459d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,9 @@ func (m *SignMessage) VerifyDetached(detached, external []byte, verifiers ...Ver
if detached == nil {
return ErrMissingPayload
}
return m.verify(detached, external, verifiers...)
msg := *m
msg.Payload = detached
return msg.Verify(external, verifiers...)
}

func (m *SignMessage) verify(detached, external []byte, verifiers ...Verifier) error {
Expand Down

0 comments on commit 9a459d1

Please sign in to comment.