/*! * oids - OIDs encoding for javascript * Copyright (c) 2018-2019, Christopher Jeffrey (MIT License). * https://github.com/bcoin-org/bcrypto * * Parts of this software are based on golang/go: * Copyright (c) 2009, The Go Authors. All rights reserved. * https://github.com/golang/go * * Resources: * https://www.ietf.org/rfc/rfc2459.txt * https://tools.ietf.org/html/rfc3279 * http://oid-info.com/get/1.2.840.10040.4 * http://oid-info.com/get/1.2.840.113549.1.1 * http://oid-info.com/get/1.2.840.10045.4.3 * https://tools.ietf.org/html/draft-jivsov-openpgp-sha3-01 * https://github.com/golang/go/blob/master/src/crypto/x509/x509.go * https://github.com/golang/go/blob/master/src/crypto/x509/pkix/pkix.go * https://tools.ietf.org/html/draft-josefsson-pkix-eddsa-01 * https://tools.ietf.org/html/rfc5480 * https://tools.ietf.org/html/draft-josefsson-pkix-newcurves-00 * https://tools.ietf.org/id/draft-ietf-curdle-pkix-06.html * https://tools.ietf.org/html/rfc7693 */ declare function findHashBySig(sigIdOrName: string): string | null; declare function foid(oidOrName: string): string; declare function fname(nameOrOid: string): string; declare function goid(oidOrName: string): string; declare function gname(nameOrOid: string): string; export declare const oids: { NONE: string; attrs: { COUNTRY: string; ORGANIZATION: string; ORGANIZATIONALUNIT: string; COMMONNAME: string; SERIALNUMBER: string; LOCALITY: string; PROVINCE: string; STREETADDRESS: string; POSTALCODE: string; EMAIL: string; }; attrsByVal: { [x: string]: string; }; keyAlgs: { DH: string; DSA: string; DSA_ALT: string; RSA: string; ECDSA: string; EDDSA: string; }; keyAlgsByVal: { [x: string]: string; }; hashes: { BLAKE2B160: string; BLAKE2B256: string; BLAKE2B384: string; BLAKE2B512: string; BLAKE2S128: string; BLAKE2S160: string; BLAKE2S224: string; BLAKE2S256: string; GOST94: string; MD2: string; MD4: string; MD5: string; MDC2: string; RIPEMD160: string; RIPEMD160_ALT: string; SHA1: string; SHA224: string; SHA256: string; SHA384: string; SHA512: string; SHA3_224: string; SHA3_256: string; SHA3_384: string; SHA3_512: string; SHAKE128: string; SHAKE256: string; SM3: string; WHIRLPOOL: string; }; hashesByVal: { [x: string]: string; }; curves: { P192: string; P224: string; P256: string; P384: string; P521: string; SECP192K1: string; SECP224K1: string; SECP256K1: string; BRAINPOOLP256: string; BRAINPOOLP384: string; BRAINPOOLP512: string; X25519: string; X25519_ALT: string; ED25519: string; X448: string; X448_ALT: string; ED448: string; ED1174: string; ED41417: string; M221: string; E222: string; M383: string; E382: string; M511: string; E521: string; }; curvesByVal: { [x: string]: string; }; sigAlgs: { DSASHA1: string; RSAMD2: string; RSAMD4: string; RSAMD5: string; RSASHA1: string; RSASHA1_MS: string; RSAPSS: string; RSASHA256: string; RSASHA384: string; RSASHA512: string; RSASHA224: string; MGF1: string; RSASHA3_256: string; RSASHA3_384: string; RSASHA3_512: string; ECDSASHA1: string; ECDSASHA224: string; ECDSASHA256: string; ECDSASHA384: string; ECDSASHA512: string; EDDSA: string; }; sigAlgsByVal: { [x: string]: string; }; sigToHash: { [x: string]: string | null; }; exts: { NS_CERT_TYPE: string; KEY_ATTRIBUTES: string; KEY_USAGE_RESTRICTION: string; SUBTREES_CONSTRAINT: string; SUBJECT_DIRECTORY_ATTRIBUTES: string; SUBJECT_KEY_IDENTIFIER: string; KEY_USAGE: string; PRIVATE_KEY_USAGE_PERIOD: string; SUBJECT_ALT_NAME: string; ISSUER_ALT_NAME: string; BASIC_CONSTRAINTS: string; CRL_NUMBER: string; CRL_REASON: string; EXPIRATION_DATE: string; INSTRUCTION_CODE: string; INVALIDITY_DATE: string; DELTA_CRL_INDICATOR: string; ISSUING_DISTRIBUTION_POINT: string; CERTIFICATE_ISSUER: string; NAME_CONSTRAINTS: string; CRL_DISTRIBUTION_POINTS: string; CERTIFICATE_POLICIES: string; POLICY_MAPPINGS: string; AUTHORITY_KEY_IDENTIFIER: string; POLICY_CONSTRAINTS: string; EXT_KEY_USAGE: string; FRESHEST_CRL: string; INHIBIT_ANY_POLICY: string; }; extsByVal: { [x: string]: string; }; findHashBySig: typeof findHashBySig; foid: typeof foid; fname: typeof fname; goid: typeof goid; gname: typeof gname; }; export {};