Skip to content

Commit

Permalink
more params
Browse files Browse the repository at this point in the history
  • Loading branch information
OR13 committed Aug 13, 2024
1 parent e1453c9 commit 9a6a28f
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions src/cose/Params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,20 +117,29 @@ export const Direct = {

export const EC2 = 2

export const KeyType = {
export const KeyTypes = {
EC2
}

export const KeyType = 1
export const KeyAlg = 3
export const KeyCurve = -1

export const Epk = {
Kty: 1,
Crv: -1,
Alg: 3
Kty: KeyType,
Crv: KeyCurve,
Alg: KeyAlg
}

export const Curve = {
P256: 1,
export const Key = {
Kty: KeyType,
Crv: KeyCurve,
Alg: KeyAlg
}

export const Curves = {
P256: 1,
}

export const COSE_Encrypt0 = 16
export const COSE_Sign1 = 18
Expand Down

0 comments on commit 9a6a28f

Please sign in to comment.