From 28f035ac68ab68c51b54bae520fe284a68a4cf37 Mon Sep 17 00:00:00 2001 From: larabr <7375870+larabr@users.noreply.github.com> Date: Thu, 19 Aug 2021 17:16:33 +0200 Subject: [PATCH] Add TS definitions --- openpgp.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/openpgp.d.ts b/openpgp.d.ts index a5972551f..1854f88ea 100644 --- a/openpgp.d.ts +++ b/openpgp.d.ts @@ -337,6 +337,7 @@ interface Config { rejectHashAlgorithms: Set; rejectMessageHashAlgorithms: Set; rejectPublicKeyAlgorithms: Set; + rejectCurves: Set; } export var config: Config; @@ -814,6 +815,18 @@ export namespace enums { aedsa = 24, } + enum curve { + p256 = 'p256', + p384 = 'p384', + p521 = 'p521', + ed25519 = 'ed25519', + curve25519 = 'curve25519', + secp256k1 = 'secp256k1', + brainpoolP256r1 = 'brainpoolP256r1', + brainpoolP384r1 = 'brainpoolP384r1', + brainpoolP512r1 = 'brainpoolP512r1' + } + export type symmetricNames = 'plaintext' | 'idea' | 'tripledes' | 'cast5' | 'blowfish' | 'aes128' | 'aes192' | 'aes256' | 'twofish'; enum symmetric { plaintext = 0,