summaryrefslogtreecommitdiffhomepage
path: root/src/types.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2020-05-19 08:32:55 -0700
committerMatthew Miller <matthew@millerti.me>2020-05-19 08:32:55 -0700
commit754b098c4cb2aa0645a278c63a807211ac7a0eb8 (patch)
tree3f941eb9d9d97c4c7f4bf62c761fd3cf50b26dee /src/types.ts
parentb9697f0cfe458530e24524f06c8f6153955b8af2 (diff)
Move COSEKeys into types
Diffstat (limited to 'src/types.ts')
-rw-r--r--src/types.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/types.ts b/src/types.ts
index 9c69c05..3773a8b 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -73,3 +73,15 @@ export type CertificateInfo = {
version: number,
basicConstraintsCA: boolean,
};
+
+export enum COSEKEYS {
+ kty = 1,
+ alg = 3,
+ crv = -1,
+ x = -2,
+ y = -3,
+ n = -1,
+ e = -2,
+};
+
+export type COSEPublicKey = Map<COSEAlgorithmIdentifier, number | Buffer>;