diff options
author | Matthew Miller <matthew@millerti.me> | 2022-08-16 00:13:51 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2022-08-16 00:13:51 -0700 |
commit | 773ab1d2e93daa786efcfe81f95c8fa057fdec2d (patch) | |
tree | acbccf4426a0a6276f54c5cc79e5e94ff00dbedc | |
parent | ce26047e0526370fcfe1a28d32e6ee1fca3f03dd (diff) |
Add support for -35 hash alg
-rw-r--r-- | packages/server/src/helpers/convertCOSEtoPKCS.ts | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/packages/server/src/helpers/convertCOSEtoPKCS.ts b/packages/server/src/helpers/convertCOSEtoPKCS.ts index 5108209..bd4a4c6 100644 --- a/packages/server/src/helpers/convertCOSEtoPKCS.ts +++ b/packages/server/src/helpers/convertCOSEtoPKCS.ts @@ -64,14 +64,15 @@ export const COSECRV: { [key: number]: string } = { }; export const COSEALGHASH: { [key: string]: string } = { - '-257': 'sha256', - '-258': 'sha384', - '-259': 'sha512', '-65535': 'sha1', + '-259': 'sha512', + '-258': 'sha384', + '-257': 'sha256', '-39': 'sha512', '-38': 'sha384', '-37': 'sha256', - '-7': 'sha256', - '-8': 'sha512', '-36': 'sha512', + '-35': 'sha384', + '-8': 'sha512', + '-7': 'sha256', }; |