Skip to content

Commit 251b391

Browse files
committed
add reserved code points for signature algorithms
1 parent af3f87e commit 251b391

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tls/enum",
3-
"version": "0.2.3",
3+
"version": "0.2.4",
44
"exports": "./src/mod.ts",
55
"publish": {
66
"exclude": ["dist/"]

src/signaturescheme.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ export class SignatureScheme extends Enum {
3737
static RSA_PKCS1_SHA1 = new SignatureScheme('RSA_PKCS1_SHA1', 0x0201);
3838
static ECDSA_SHA1 = new SignatureScheme('ECDSA_SHA1', 0x0203);
3939

40-
/* Reserved Code Points
40+
/* Reserved Code Points */
41+
static dsa_sha1_RESERVED = new SignatureScheme('dsa_sha1_RESERVED', 0x0202);
42+
static dsa_sha256_RESERVED = new SignatureScheme('dsa_sha256_RESERVED', 0x0402);
43+
static dsa_sha384_RESERVED = new SignatureScheme('dsa_sha384_RESERVED', 0x0502);
44+
static dsa_sha512_RESERVED = new SignatureScheme('dsa_sha512_RESERVED', 0x0602)
45+
/*
4146
static PRIVATE_USE_START = new SignatureScheme('PRIVATE_USE_START', 0xFE00);
4247
static PRIVATE_USE_END = new SignatureScheme('PRIVATE_USE_END', 0xFFFF);
4348
static PRIVATE_USE = new SignatureScheme('PRIVATE_USE', 0xFFFF);

0 commit comments

Comments
 (0)