}
interface EcKeyImportParams {
- name: "ECDSA";
+ name: "ECDSA" | "ECDH";
namedCurve: "P-256" | "P-384" | "P-521";
}
interface EcKeyGenParams {
- name: "ECDSA";
+ name: "ECDSA" | "ECDH";
namedCurve: "P-256" | "P-384" | "P-521";
}
| AesImportParams
| AesVariants
| "PBKDF2"
- | "HKDF";
+ | "HKDF"
+ | "ECDH";
type GenerateAlgorithm =
| RsaHashedKeyGenParams
interations: number;
}
+interface EcdhParams {
+ name: "ECDH";
+ public: CryptoKey;
+}
+
type DeriveAlgorithm =
| HkdfParams
- | Pbkdf2Params;
+ | Pbkdf2Params
+ | EcdhParams;
interface HmacKeyGenParams {
name: "HMAC";