Skip to content

Commit

Permalink
Update cwt_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Fossati <[email protected]>
Signed-off-by: steve lasker <[email protected]>
  • Loading branch information
SteveLasker and thomas-fossati committed Jun 21, 2024
1 parent 479710f commit c9f2ab1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cwt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ func ExampleCWTMessage() {
msgToSign.Headers.Protected.SetAlgorithm(cose.AlgorithmES512)

msgToSign.Headers.Protected.SetType("application/cwt")
claims := make(cose.CWTClaims)
claims[cose.CWTClaimIssuer] = "issuer.example"
claims[cose.CWTClaimSubject] = "subject.example"
claims := cose.CWTClaims{
cose.CWTClaimIssuer: "issuer.example",
cose.CWTClaimSubject: "subject.example",
}
msgToSign.Headers.Protected.SetCWTClaims(claims)

msgToSign.Headers.Unprotected[cose.HeaderLabelKeyID] = []byte("1")
Expand Down

0 comments on commit c9f2ab1

Please sign in to comment.