]> git.kaiwu.me - njs.git/commitdiff
Types: fixed CipherAlgorithm and Pbkdf2Params
authorMartin Kaesberger <git@martin-kaesberger.de>
Sun, 14 Dec 2025 15:29:17 +0000 (16:29 +0100)
committerDmitry Volyntsev <xeioexception@gmail.com>
Mon, 15 Dec 2025 23:11:59 +0000 (15:11 -0800)
ts/njs_webcrypto.d.ts

index 4e6f2057798028a1b0840ae4c8917eecbc7d6908..97139a22564300bb9f2f121f5ce8abb5dc8d66cc 100644 (file)
@@ -24,7 +24,7 @@ type CipherAlgorithm =
     | RsaOaepParams
     | AesCtrParams
     | AesCbcParams
-    | AesCbcParams;
+    | AesGcmParams;
 
 type HashVariants = "SHA-256" | "SHA-384" | "SHA-512" | "SHA-1";
 
@@ -97,7 +97,7 @@ interface   Pbkdf2Params {
     name: "PBKDF2";
     hash: HashVariants;
     salt: NjsStringOrBuffer;
-    interations: number;
+    iterations: number;
 }
 
 interface   EcdhParams {