UNPKG

@wildboar/pkcs

Version:
102 lines (101 loc) 3.08 kB
import { ASN1Element as _Element, INTEGER, OCTET_STRING, OPTIONAL } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; /** * @summary RC2_CBC_Parameter * @description * * ### ASN.1 Definition: * * ```asn1 * RC2-CBC-Parameter ::= SEQUENCE { * rc2ParameterVersion INTEGER OPTIONAL, * iv OCTET STRING (SIZE(8)) * } * ``` * * @class */ export declare class RC2_CBC_Parameter { /** * @summary `rc2ParameterVersion`. * @public * @readonly */ readonly rc2ParameterVersion: OPTIONAL<INTEGER>; /** * @summary `iv`. * @public * @readonly */ readonly iv: OCTET_STRING; constructor( /** * @summary `rc2ParameterVersion`. * @public * @readonly */ rc2ParameterVersion: OPTIONAL<INTEGER>, /** * @summary `iv`. * @public * @readonly */ iv: OCTET_STRING); /** * @summary Restructures an object into a RC2_CBC_Parameter * @description * * This takes an `object` and converts it to a `RC2_CBC_Parameter`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `RC2_CBC_Parameter`. * @returns {RC2_CBC_Parameter} */ static _from_object(_o: { [_K in keyof RC2_CBC_Parameter]: RC2_CBC_Parameter[_K]; }): RC2_CBC_Parameter; } /** * @summary The Leading Root Component Types of RC2_CBC_Parameter * @description * * This is an array of `ComponentSpec`s that define how to decode the leading root component type list of a SET or SEQUENCE. * * @constant */ export declare const _root_component_type_list_1_spec_for_RC2_CBC_Parameter: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of RC2_CBC_Parameter * @description * * This is an array of `ComponentSpec`s that define how to decode the trailing root component type list of a SET or SEQUENCE. * * @constant */ export declare const _root_component_type_list_2_spec_for_RC2_CBC_Parameter: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of RC2_CBC_Parameter * @description * * This is an array of `ComponentSpec`s that define how to decode the extension addition component type list of a SET or SEQUENCE. * * @constant */ export declare const _extension_additions_list_spec_for_RC2_CBC_Parameter: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) RC2_CBC_Parameter * @function * @param {_Element} el The element being decoded. * @returns {RC2_CBC_Parameter} The decoded data structure. */ export declare function _decode_RC2_CBC_Parameter(el: _Element): RC2_CBC_Parameter; /** * @summary Encodes a(n) RC2_CBC_Parameter into an ASN.1 Element. * @function * @param {value} el The element being decoded. * @param elGetter A function that can be used to get new ASN.1 elements. * @returns {_Element} The RC2_CBC_Parameter, encoded as an ASN.1 Element. */ export declare function _encode_RC2_CBC_Parameter(value: RC2_CBC_Parameter, elGetter: $.ASN1Encoder<RC2_CBC_Parameter>): _Element;