UNPKG

openpgp

Version:

OpenPGP.js is a Javascript implementation of the OpenPGP protocol. This is defined in RFC 4880.

47 lines (43 loc) 1.53 kB
/** * Global configuration values. */ import enums from '../enums'; export interface Config { preferredHashAlgorithm: enums.hash; preferredSymmetricAlgorithm: enums.symmetric; preferredCompressionAlgorithm: enums.compression; showVersion: boolean; showComment: boolean; aeadProtect: boolean; allowUnauthenticatedMessages: boolean; allowUnauthenticatedStream: boolean; minRSABits: number; passwordCollisionCheck: boolean; ignoreUnsupportedPackets: boolean; ignoreMalformedPackets: boolean; enforceGrammar: boolean; additionalAllowedPackets: Array<{ new(): any, tag: enums.packet }>; versionString: string; commentString: string; allowInsecureDecryptionWithSigningKeys: boolean; allowInsecureVerificationWithReformattedKeys: boolean; allowMissingKeyFlags: boolean; constantTimePKCS1Decryption: boolean; constantTimePKCS1DecryptionSupportedSymmetricAlgorithms: Set<enums.symmetric>; v6Keys: boolean; enableParsingV5Entities: boolean; preferredAEADAlgorithm: enums.aead; aeadChunkSizeByte: number; s2kType: enums.s2k.iterated | enums.s2k.argon2; s2kIterationCountByte: number; s2kArgon2Params: { passes: number, parallelism: number; memoryExponent: number; }; maxUserIDLength: number; knownNotations: string[]; useEllipticFallback: boolean; rejectHashAlgorithms: Set<enums.hash>; rejectMessageHashAlgorithms: Set<enums.hash>; rejectPublicKeyAlgorithms: Set<enums.publicKey>; rejectCurves: Set<enums.curve>; } declare const config: Config; export default config;