UNPKG

pkcs-ts

Version:

PKCS #1 through #15 (Except #11) - Private and Public Keys, Certificates, and More

28 lines 1.86 kB
import { ASN1Element as _Element, OCTET_STRING, OPTIONAL } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { OtherPrimeInfos } from "../PKCS-1/OtherPrimeInfos.ta"; import { Version } from "../PKCS-1/Version.ta"; export { OtherPrimeInfos, _decode_OtherPrimeInfos, _encode_OtherPrimeInfos, } from "../PKCS-1/OtherPrimeInfos.ta"; export { multi, two_prime, Version, Version_multi, Version_two_prime, _decode_Version, _encode_Version, } from "../PKCS-1/Version.ta"; export declare class RSAPrivateKey { readonly version: Version; readonly modulus: OCTET_STRING; readonly publicExponent: OCTET_STRING; readonly privateExponent: OCTET_STRING; readonly prime1: OCTET_STRING; readonly prime2: OCTET_STRING; readonly exponent1: OCTET_STRING; readonly exponent2: OCTET_STRING; readonly coefficient: OCTET_STRING; readonly otherPrimeInfos: OPTIONAL<OtherPrimeInfos>; constructor(version: Version, modulus: OCTET_STRING, publicExponent: OCTET_STRING, privateExponent: OCTET_STRING, prime1: OCTET_STRING, prime2: OCTET_STRING, exponent1: OCTET_STRING, exponent2: OCTET_STRING, coefficient: OCTET_STRING, otherPrimeInfos: OPTIONAL<OtherPrimeInfos>); static _from_object(_o: { [_K in keyof RSAPrivateKey]: RSAPrivateKey[_K]; }): RSAPrivateKey; } export declare const _root_component_type_list_1_spec_for_RSAPrivateKey: $.ComponentSpec[]; export declare const _root_component_type_list_2_spec_for_RSAPrivateKey: $.ComponentSpec[]; export declare const _extension_additions_list_spec_for_RSAPrivateKey: $.ComponentSpec[]; export declare function _decode_RSAPrivateKey(el: _Element): RSAPrivateKey; export declare function _encode_RSAPrivateKey(value: RSAPrivateKey, elGetter: $.ASN1Encoder<RSAPrivateKey>): _Element; //# sourceMappingURL=RSAPrivateKey.ta.d.ts.map