@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
128 lines • 3.81 kB
text/typescript
import { ASN1Element as _Element } from "@wildboar/asn1";
import * as $ from "@wildboar/asn1/functional";
import { FingerPrint_finger, _enum_for_FingerPrint_finger } from "../PKCS-15/FingerPrint-finger.ta.mjs";
import { FingerPrint_hand, _enum_for_FingerPrint_hand } from "../PKCS-15/FingerPrint-hand.ta.mjs";
/**
* @summary FingerPrint
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* FingerPrint ::= SEQUENCE {
* hand ENUMERATED {left, right},
* finger ENUMERATED {thumb, pointerFinger, middleFinger, ringFinger, littleFinger},
* ...
* }
* ```
*
*/
export declare class FingerPrint {
/**
* @summary `hand`.
* @public
* @readonly
*/
readonly hand: FingerPrint_hand;
/**
* @summary `finger`.
* @public
* @readonly
*/
readonly finger: FingerPrint_finger;
/**
* @summary Extensions that are not recognized.
* @public
* @readonly
*/
readonly _unrecognizedExtensionsList: _Element[];
constructor(
/**
* @summary `hand`.
* @public
* @readonly
*/
hand: FingerPrint_hand,
/**
* @summary `finger`.
* @public
* @readonly
*/
finger: FingerPrint_finger,
/**
* @summary Extensions that are not recognized.
* @public
* @readonly
*/
_unrecognizedExtensionsList?: _Element[]);
/**
* @summary Restructures an object into a FingerPrint
* @description
*
* This takes an `object` and converts it to a `FingerPrint`.
*
* @public
* @static
* @method
* @param {Object} _o An object having all of the keys and values of a `FingerPrint`.
* @returns {FingerPrint}
*/
static _from_object(_o: {
[_K in keyof FingerPrint]: FingerPrint[_K];
}): FingerPrint;
/**
* @summary The enum used as the type of the component `hand`
* @public
* @static
*/
static _enum_for_hand: typeof _enum_for_FingerPrint_hand;
/**
* @summary The enum used as the type of the component `finger`
* @public
* @static
*/
static _enum_for_finger: typeof _enum_for_FingerPrint_finger;
}
/**
* @summary The Leading Root Component Types of FingerPrint
* @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_FingerPrint: $.ComponentSpec[];
/**
* @summary The Trailing Root Component Types of FingerPrint
* @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_FingerPrint: $.ComponentSpec[];
/**
* @summary The Extension Addition Component Types of FingerPrint
* @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_FingerPrint: $.ComponentSpec[];
/**
* @summary Decodes an ASN.1 element into a(n) FingerPrint
* @function
* @param {_Element} el The element being decoded.
* @returns {FingerPrint} The decoded data structure.
*/
export declare function _decode_FingerPrint(el: _Element): FingerPrint;
/**
* @summary Encodes a(n) FingerPrint 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 FingerPrint, encoded as an ASN.1 Element.
*/
export declare function _encode_FingerPrint(value: FingerPrint, elGetter: $.ASN1Encoder<FingerPrint>): _Element;
//# sourceMappingURL=FingerPrint.ta.d.mts.map