Skip to content

Commit

Permalink
Add TS definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
larabr committed Aug 19, 2021
1 parent 350e457 commit 28f035a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions openpgp.d.ts
Expand Up @@ -337,6 +337,7 @@ interface Config {
rejectHashAlgorithms: Set<enums.hash>;
rejectMessageHashAlgorithms: Set<enums.hash>;
rejectPublicKeyAlgorithms: Set<enums.publicKey>;
rejectCurves: Set<enums.curve>;
}
export var config: Config;

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 28f035a

Please sign in to comment.