diff options
author | Matthew Miller <matthew@millerti.me> | 2020-05-19 01:06:15 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2020-05-19 01:06:15 -0700 |
commit | dab86b946146b6d4507a66df955b2372e7a08984 (patch) | |
tree | 7ee888e2ee987d7739d0fd785d0847400ed6023e /src/helpers/constants.ts | |
parent | d7e689a6f3aea5bfe83d1670f0dc02cb1b32e061 (diff) |
Add ability to verify Packed response
Diffstat (limited to 'src/helpers/constants.ts')
-rw-r--r-- | src/helpers/constants.ts | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/src/helpers/constants.ts b/src/helpers/constants.ts index 5168671..ab2efa9 100644 --- a/src/helpers/constants.ts +++ b/src/helpers/constants.ts @@ -1,54 +1,4 @@ /** - * U2F Presence constant - */ -export const U2F_USER_PRESENTED = 0x01; - -export const COSEKEYS = { - 'kty' : 1, - 'alg' : 3, - 'crv' : -1, - 'x' : -2, - 'y' : -3, - 'n' : -1, - 'e' : -2 -} - -export const COSEKTY = { - 'OKP': 1, - 'EC2': 2, - 'RSA': 3 -} - -export const COSERSASCHEME = { - '-3': 'pss-sha256', - '-39': 'pss-sha512', - '-38': 'pss-sha384', - '-65535': 'pkcs1-sha1', - '-257': 'pkcs1-sha256', - '-258': 'pkcs1-sha384', - '-259': 'pkcs1-sha512' -} - -export const COSEALGHASH = { - '-257': 'sha256', - '-258': 'sha384', - '-259': 'sha512', - '-65535': 'sha1', - '-39': 'sha512', - '-38': 'sha384', - '-37': 'sha256', - '-7': 'sha256', - '-8': 'sha512', - '-36': 'sha512' -} - -export const COSECRV = { - 1: 'p256', - 2: 'p384', - 3: 'p521', -}; - -/** * This "GS Root R2" root certificate was downloaded from https://pki.goog/gsr2/GSR2.crt * on 08/10/2019 and then run through `base64url.encode()` to get this representation. * |