@@ -60,83 +60,5 @@ export declare class SignatureScheme extends Enum {
6060 */
6161 get algo ( ) : { name : string ; hash ?: string ; saltLength ?: number } ;
6262
63- /**
64- * Verifies a certificate using the provided messages and private key.
65- * @param clientHelloMsg The client hello message.
66- * @param serverHelloMsg The server hello message.
67- * @param encryptedExtensionsMsg The encrypted extensions message.
68- * @param certificateMsg The certificate message.
69- * @param RSAprivateKey The private RSA key.
70- * @returns A promise that resolves to a CertificateVerify instance.
71- */
72- certificateVerify (
73- clientHelloMsg : Uint8Array ,
74- serverHelloMsg : Uint8Array ,
75- encryptedExtensionsMsg : Uint8Array ,
76- certificateMsg : Uint8Array ,
77- RSAprivateKey : CryptoKey ,
78- ) : Promise < CertificateVerify > ;
79- }
80-
81- export declare class CertificateVerify extends Uint8Array {
82- static fromMsg ( array : Uint8Array ) : CertificateVerify ;
83- static from ( array : Uint8Array ) : CertificateVerify ;
84- constructor ( signatureScheme : SignatureScheme , signature : Uint8Array ) ;
85- algorithm : SignatureScheme ;
86- signature : Uint8Array ;
8763}
8864
89- export declare class Signature extends Constrained {
90- static from ( array : Uint8Array ) : Signature ;
91- constructor ( opaque : Uint8Array ) ;
92- opaque : Uint8Array ;
93- }
94-
95- /**
96- * Generates a signature from the provided messages and key.
97- * @param clientHelloMsg The client hello message.
98- * @param serverHelloMsg The server hello message.
99- * @param encryptedExtensionsMsg The encrypted extensions message.
100- * @param certificateMsg The certificate message.
101- * @param RSAprivateKey The private RSA key.
102- * @param algo The algorithm to use for signing.
103- * @returns A promise that resolves to the generated signature as a Uint8Array.
104- */
105- export declare function signatureFrom (
106- clientHelloMsg : Uint8Array ,
107- serverHelloMsg : Uint8Array ,
108- encryptedExtensionsMsg : Uint8Array ,
109- certificateMsg : Uint8Array ,
110- RSAprivateKey : CryptoKey ,
111- algo : { name : string ; hash ?: string ; saltLength ?: number } ,
112- ) : Promise < Uint8Array > ;
113-
114- /**
115- * Computes the hash function based on the provided algorithm.
116- * @param algo The algorithm details.
117- * @returns The appropriate hash instance.
118- */
119- export declare function hashFromAlgo (
120- algo : { hash ?: string ; saltLength ?: number } ,
121- ) : ReturnType <
122- typeof sha256 . create | typeof sha384 . create | typeof sha512 . create
123- > ;
124-
125- /**
126- * Creates a Finished instance from the provided key and messages.
127- * @param finishedKey The HMAC key used for the finished computation.
128- * @param sha The SHA variant to use (256, 384, etc.).
129- * @param messages The messages to include in the transcript.
130- * @returns A promise that resolves to a Finished instance.
131- */
132- export declare function finished (
133- finishedKey : Uint8Array ,
134- sha : number ,
135- ...messages : Uint8Array [ ]
136- ) : Promise < Finished > ;
137-
138- export declare class Finished extends Uint8Array {
139- static fromMsg ( message : Uint8Array ) : Finished ;
140- constructor ( verify_data : Uint8Array ) ;
141- verify_data : Uint8Array ;
142- }
0 commit comments