Skip to content

Commit

Permalink
update digest interfaces to not use embedding
Browse files Browse the repository at this point in the history
Signed-off-by: qmuntal <qmuntaldiaz@microsoft.com>
  • Loading branch information
qmuntal committed Jul 18, 2023
1 parent 2893601 commit bbfd793
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ type Signer interface {

// DigestSigner is an interface for private keys to sign digested COSE signatures.
type DigestSigner interface {
Signer
// Algorithm returns the signing algorithm associated with the private key.
Algorithm() Algorithm

// SignDigest signs message digest with the private key, possibly using
// entropy from rand.
Expand Down
3 changes: 2 additions & 1 deletion verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ type Verifier interface {

// DigestVerifier is an interface for public keys to verify digested COSE signatures.
type DigestVerifier interface {
Verifier
// Algorithm returns the signing algorithm associated with the public key.
Algorithm() Algorithm

// VerifyDigest verifies message digest with the public key, returning nil
// for success.
Expand Down

0 comments on commit bbfd793

Please sign in to comment.