File: cwt.go

package info (click to toggle)
golang-github-veraison-go-cose 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,132 kB
  • sloc: sh: 8; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 537 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package cose

// https://www.iana.org/assignments/cwt/cwt.xhtml#claims-registry
const (
	CWTClaimIssuer         int64 = 1
	CWTClaimSubject        int64 = 2
	CWTClaimAudience       int64 = 3
	CWTClaimExpirationTime int64 = 4
	CWTClaimNotBefore      int64 = 5
	CWTClaimIssuedAt       int64 = 6
	CWTClaimCWTID          int64 = 7
	CWTClaimConfirmation   int64 = 8
	CWTClaimScope          int64 = 9

	// TODO: the rest upon request
)

// CWTClaims contains parameters that are to be cryptographically
// protected.
type CWTClaims map[any]any