File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @tls/enum" ,
3- "version" : " 0.7.7 " ,
3+ "version" : " 0.7.8 " ,
44 "exports" : " ./src/mod.ts" ,
55 "publish" : {
66 "exclude" : [" dist/" ]
Original file line number Diff line number Diff line change @@ -78,28 +78,29 @@ export class SignatureScheme extends Enum {
7878
7979 get algo ( ) {
8080 switch ( this ) {
81- case ' ECDSA_SECP256R1_SHA256' : return {
81+ case SignatureScheme . ECDSA_SECP256R1_SHA256 : return {
8282 name : "ECDSA" ,
8383 hash : "SHA-256"
8484 }
85- case ' ECDSA_SECP384R1_SHA384' : return {
85+ case SignatureScheme . ECDSA_SECP384R1_SHA384 : return {
8686 name : "ECDSA" ,
8787 hash : "SHA-384"
8888 }
89- case ' ECDSA_SECP521R1_SHA512' : return {
89+ case SignatureScheme . ECDSA_SECP521R1_SHA512 : return {
9090 name : "ECDSA" ,
9191 hash : "SHA-512"
9292 }
93- case 'ED25519' : return { name : 'Ed25519' }
94- case 'RSA_PSS_PSS_SHA384' : return {
93+ case SignatureScheme . ED25519 : return { name : 'Ed25519' }
94+ case SignatureScheme . ED448 : return { name : 'Ed448' }
95+ case SignatureScheme . RSA_PSS_PSS_SHA384 : return {
9596 name : "RSA-PSS" , // RSAprivateKey.algorithm.name,
9697 saltLength : 384 / 8
9798 }
98- case ' RSA_PSS_PSS_SHA512' : return {
99+ case SignatureScheme . RSA_PSS_PSS_SHA512 : return {
99100 name : "RSA-PSS" , // RSAprivateKey.algorithm.name,
100101 saltLength : 512 / 8
101102 }
102- case ' RSA_PSS_PSS_SHA256' :
103+ case SignatureScheme . RSA_PSS_PSS_SHA256 :
103104 default : return {
104105 name : "RSA-PSS" , // RSAprivateKey.algorithm.name,
105106 saltLength : 256 / 8
You can’t perform that action at this time.
0 commit comments