@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
166 lines • 4.73 kB
text/typescript
import { ASN1Element as _Element, INTEGER, OPTIONAL } from "@wildboar/asn1";
import * as $ from "@wildboar/asn1/functional";
/**
* @summary RecordInfo
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* RecordInfo ::= SEQUENCE {
* oDFRecordLength [0] INTEGER (0..pkcs15-ub-recordLength) OPTIONAL,
* prKDFRecordLength [1] INTEGER (0..pkcs15-ub-recordLength) OPTIONAL,
* puKDFRecordLength [2] INTEGER (0..pkcs15-ub-recordLength) OPTIONAL,
* sKDFRecordLength [3] INTEGER (0..pkcs15-ub-recordLength) OPTIONAL,
* cDFRecordLength [4] INTEGER (0..pkcs15-ub-recordLength) OPTIONAL,
* dODFRecordLength [5] INTEGER (0..pkcs15-ub-recordLength) OPTIONAL,
* aODFRecordLength [6] INTEGER (0..pkcs15-ub-recordLength) OPTIONAL
* }
* ```
*
*/
export declare class RecordInfo {
/**
* @summary `oDFRecordLength`.
* @public
* @readonly
*/
readonly oDFRecordLength?: OPTIONAL<INTEGER>;
/**
* @summary `prKDFRecordLength`.
* @public
* @readonly
*/
readonly prKDFRecordLength?: OPTIONAL<INTEGER>;
/**
* @summary `puKDFRecordLength`.
* @public
* @readonly
*/
readonly puKDFRecordLength?: OPTIONAL<INTEGER>;
/**
* @summary `sKDFRecordLength`.
* @public
* @readonly
*/
readonly sKDFRecordLength?: OPTIONAL<INTEGER>;
/**
* @summary `cDFRecordLength`.
* @public
* @readonly
*/
readonly cDFRecordLength?: OPTIONAL<INTEGER>;
/**
* @summary `dODFRecordLength`.
* @public
* @readonly
*/
readonly dODFRecordLength?: OPTIONAL<INTEGER>;
/**
* @summary `aODFRecordLength`.
* @public
* @readonly
*/
readonly aODFRecordLength?: OPTIONAL<INTEGER>;
constructor(
/**
* @summary `oDFRecordLength`.
* @public
* @readonly
*/
oDFRecordLength?: OPTIONAL<INTEGER>,
/**
* @summary `prKDFRecordLength`.
* @public
* @readonly
*/
prKDFRecordLength?: OPTIONAL<INTEGER>,
/**
* @summary `puKDFRecordLength`.
* @public
* @readonly
*/
puKDFRecordLength?: OPTIONAL<INTEGER>,
/**
* @summary `sKDFRecordLength`.
* @public
* @readonly
*/
sKDFRecordLength?: OPTIONAL<INTEGER>,
/**
* @summary `cDFRecordLength`.
* @public
* @readonly
*/
cDFRecordLength?: OPTIONAL<INTEGER>,
/**
* @summary `dODFRecordLength`.
* @public
* @readonly
*/
dODFRecordLength?: OPTIONAL<INTEGER>,
/**
* @summary `aODFRecordLength`.
* @public
* @readonly
*/
aODFRecordLength?: OPTIONAL<INTEGER>);
/**
* @summary Restructures an object into a RecordInfo
* @description
*
* This takes an `object` and converts it to a `RecordInfo`.
*
* @public
* @static
* @method
* @param {Object} _o An object having all of the keys and values of a `RecordInfo`.
* @returns {RecordInfo}
*/
static _from_object(_o: {
[_K in keyof RecordInfo]: RecordInfo[_K];
}): RecordInfo;
}
/**
* @summary The Leading Root Component Types of RecordInfo
* @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_RecordInfo: $.ComponentSpec[];
/**
* @summary The Trailing Root Component Types of RecordInfo
* @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_RecordInfo: $.ComponentSpec[];
/**
* @summary The Extension Addition Component Types of RecordInfo
* @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_RecordInfo: $.ComponentSpec[];
/**
* @summary Decodes an ASN.1 element into a(n) RecordInfo
* @function
* @param {_Element} el The element being decoded.
* @returns {RecordInfo} The decoded data structure.
*/
export declare function _decode_RecordInfo(el: _Element): RecordInfo;
/**
* @summary Encodes a(n) RecordInfo into an ASN.1 Element.
* @function
* @param value The element being encoded.
* @param elGetter A function that can be used to get new ASN.1 elements.
* @returns {_Element} The RecordInfo, encoded as an ASN.1 Element.
*/
export declare function _encode_RecordInfo(value: RecordInfo, elGetter: $.ASN1Encoder<RecordInfo>): _Element;
//# sourceMappingURL=RecordInfo.ta.d.mts.map