@@ -161,13 +161,13 @@ export function signatureFrom(
161161/**
162162 * Verifies and generates the HMAC for the given data.
163163 *
164- * @param {Uint8Array } serverHS_secret - The server handshake secret used for key derivation .
164+ * @param {Uint8Array } finishedKey - The key used to compute the finished message. .
165165 * @param {object } certificateVerifyMsg - The certificate verify message object.
166166 * @param {Uint8Array } certificateVerifyMsg.message.transcriptHash - The transcript hash from the message.
167167 * @returns {Promise<Uint8Array> } A promise that resolves to the verify_data HMAC value as a Uint8Array.
168168 */
169169export declare function finished (
170- serverHS_secret : Uint8Array ,
170+ finishedKey : Uint8Array ,
171171 certificateVerifyMsg : {
172172 message : {
173173 transcriptHash : Uint8Array ;
@@ -176,13 +176,22 @@ export declare function finished(
176176) : Promise < Uint8Array > ;
177177
178178/**
179- * Represents the Finished message as a Uint8Array .
179+ * Represents the output of the `finished` function .
180180 */
181- export declare class Finished extends Uint8Array {
181+ export declare class Finished {
182182 /**
183- * Creates a Finished message instance.
184- *
185- * @param {Uint8Array } verify_data - The verify_data HMAC value.
183+ * Constructs a Finished instance.
184+ * @param verifyData - The computed verify data.
186185 */
187- constructor ( verify_data : Uint8Array ) ;
186+ constructor ( verifyData : ArrayBuffer ) ;
187+
188+ /**
189+ * The computed verify data.
190+ */
191+ verifyData : ArrayBuffer ;
192+
193+ /**
194+ * The hash of the handshake transcript.
195+ */
196+ transcriptHash : ArrayBuffer ;
188197}
0 commit comments