UNPKG

pkcs-ts

Version:

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

25 lines 1.75 kB
import { ASN1Element as _Element, OPTIONAL } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { Attributes } from "../AsymmetricKeyPackageModuleV1/Attributes.ta"; import { PrivateKey } from "../AsymmetricKeyPackageModuleV1/PrivateKey.ta"; import { PrivateKeyAlgorithmIdentifier } from "../AsymmetricKeyPackageModuleV1/PrivateKeyAlgorithmIdentifier.ta"; import { Version } from "../AsymmetricKeyPackageModuleV1/Version.ta"; import { PublicKey } from "../AsymmetricKeyPackageModuleV1/PublicKey.ta"; export declare class OneAsymmetricKey { readonly version: Version; readonly privateKeyAlgorithm: PrivateKeyAlgorithmIdentifier; readonly privateKey: PrivateKey; readonly attributes: OPTIONAL<Attributes>; readonly publicKey: OPTIONAL<PublicKey>; readonly _unrecognizedExtensionsList: _Element[]; constructor(version: Version, privateKeyAlgorithm: PrivateKeyAlgorithmIdentifier, privateKey: PrivateKey, attributes: OPTIONAL<Attributes>, publicKey: OPTIONAL<PublicKey>, _unrecognizedExtensionsList?: _Element[]); static _from_object(_o: { [_K in keyof OneAsymmetricKey]: OneAsymmetricKey[_K]; }): OneAsymmetricKey; } export declare const _root_component_type_list_1_spec_for_OneAsymmetricKey: $.ComponentSpec[]; export declare const _root_component_type_list_2_spec_for_OneAsymmetricKey: $.ComponentSpec[]; export declare const _extension_additions_list_spec_for_OneAsymmetricKey: $.ComponentSpec[]; export declare function _decode_OneAsymmetricKey(el: _Element): OneAsymmetricKey; export declare function _encode_OneAsymmetricKey(value: OneAsymmetricKey, elGetter: $.ASN1Encoder<OneAsymmetricKey>): _Element; //# sourceMappingURL=OneAsymmetricKey.ta.d.ts.map